andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Maxing out a Raspberry

Fri Mar 28, 2014 9:07 pm

Hi guys,

I am trying to max out my raspberry pi. I have a USB3 16gb flashdrive, Class 10 8gb sandisk SD, 1.5 amp power supply, heatsinks and a fan, running frodo. It is currently running at 109F playing a 1080 movie with 97-100% cpu usage and around 25% memory.

Can I dedicate more RAM to the GPU?
Is there a way to speed up the LAN transfer, it seems like it skips frames sometimes.

What other settings can I change to max it out?

Thanks

Here are my settings:

# default GPU memory split (do not change if you do not know what you are doing)
gpu_mem=128

# SDRAM size based GPU memory split, uncomment and setup to override 'gpu_mem'
gpu_mem_256=100
gpu_mem_512=128

################################################################################​
# Overclocking settings
# WARNING: Do not change/enable if you do not know what you are doing!
# The System may become unstable or you can have data corruption or
# you can loose your warranty if you set wrong settings
#
# please read: http://elinux.org/RPi_config.txt#Overclo...figuration
################################################################################​

# Overclock mode settings.
#
# default recommended values are: arm_freq | core_freq | sdram_freq | over_voltage
# no overclocking : 700 | 250 | 400 | 0
# mode 'Modest' : 800 | 300 | 400 | 0
# mode 'Medium' : 900 | 333 | 450 | 2
# mode 'High' : 950 | 450 | 450 | 6
# mode 'Turbo' : 1000 | 500 | 500 | 6

arm_freq=1100
core_freq=550
h264_freq=300
isp_freq=0
v3d_freq=300
sdram_freq=600
over_voltage_sdram=6
over_voltage=8
temp_limit=176
avoid_pwm_pll=1

# set to 'force_turbo=1' to disable dynamic overclocking (you can lose your warranty!)
force_turbo=1

# If you have any data corruption using Turbo Mode and overclocking
# try with this setting uncommented
# If this still fails, try to use Medium mode without "over_voltage=2"
# If it ultimately keeps failing, forget about this until it gets fixed
# Use a more conservative mode that will works fine in any cases:
# initial_turbo=30

################################################################################​
# Overscan settings
################################################################################​

# Make display smaller to stop text spilling off the screen
# see also http://www.raspberrypi.org/phpBB3/viewto...67&t=15700
# overscan_scale=1
# disable_overscan=1

# Adapt overscan values to your needs
# overscan_left=57
# overscan_right=59
# overscan_top=20
# overscan_bottom=20

################################################################################​
# various settings see also: http://elinux.org/RPi_config.txt
################################################################################​

# Force HDMI even if unplugged or powered off
# hdmi_force_hotplug=1

################################################################################​
# License keys to enable GPU hardware decoding for various codecs
# to obtain keys visit the shop at http://www.raspberrypi.com
################################################################################​

# decode_MPG2=0x00000000
# decode_WVC1=0x00000000
# decode_DTS=0x00000000
# decode_DDP=0x00000000

################################################################################​
# End of default configuration
# all values below this line were inserted from config.txt.bk (your old config)
# and can be merged with the above values
################################################################################​

RobHenry
Posts: 452
Joined: Fri Sep 21, 2012 9:04 pm
Location: UK

Re: Maxing out a Raspberry

Fri Mar 28, 2014 9:52 pm

Heatsinks and fan are unnecessary, unless you think they look good.

You could allocate more ram to the gpu, but I don't think it will ever need more than the 128MB you have given it.

It shouldn't be using 97-100 % cpu playing 1080p movies, it's usual for cpu usage to be high when using the gui and considerably lower when playing a movie. I'm not sure why you might be seeing usage this high.

You don't mention what os you are using. Reports are mixed, and very subjective, but I find openelec to be the most efficient in terms of the load that it puts onto the device (this is a contentious point and it won't be long before someone comes along and states that raspbmc puts less strain on the pi).

Your overclock settings are around the highest that have been reported to work so it looks like you're pretty close to the limit of how far you can soup up the device.

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: Maxing out a Raspberry

Fri Mar 28, 2014 10:06 pm

1/ You've set the temperature limit to over twice the recommended safe maximum, so it's effectively disabled and worthless.

2/ You've disabled thermal throttling by forcing the overclock with 'force_turbo=1', not that it's going to work properly anyway (see #1).

3/ You've set the ARM voltage potentially dangerously high.

4/ The RAM is being over-volted to the safe maximum limit which most likely isn't even necessary.

5/ The settings you've used have blown the warranty bit, so you no longer have a manufacturer's guarantee.

Not wishing to sound rude, but if you're trying to kill your Pi then you're going the right way about it. :D
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.

andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Re: Maxing out a Raspberry

Fri Mar 28, 2014 11:02 pm

GTR2Fan wrote:1/ You've set the temperature limit to over twice the recommended safe maximum, so it's effectively disabled and worthless.

2/ You've disabled thermal throttling by forcing the overclock with 'force_turbo=1', not that it's going to work properly anyway (see #1).

3/ You've set the ARM voltage potentially dangerously high.

4/ The RAM is being over-volted to the safe maximum limit which most likely isn't even necessary.

5/ The settings you've used have blown the warranty bit, so you no longer have a manufacturer's guarantee.

Not wishing to sound rude, but if you're trying to kill your Pi then you're going the right way about it. :D
Thanks for stating the obvious and not answering any of the questions. :)
1. The temp is in Fahrenheit.
2. Yes, I want it running at full speed all the time.
3. Probably, now do you think I can get more out with this?
4. Yes, as stated, I am trying to max it out.
5. Obviously I don't care about the warranty. I am not rich, but loss of $35 is not the end of the world.

Thanks :)

User avatar
ragnarjensen
Posts: 333
Joined: Wed May 15, 2013 6:13 pm
Location: Stockholm, Sweden
Contact: Website

Re: Maxing out a Raspberry

Fri Mar 28, 2014 11:50 pm

andrzej b wrote: 1. The temp is in Fahrenheit.
No, the temp limit is in Celsius. Your 176 C is 348.8 F
--
Ragnar

User avatar
chrisryall
Posts: 155
Joined: Wed Nov 27, 2013 11:45 am
Location: Wirral UK
Contact: Website

Re: Maxing out a Raspberry

Sat Mar 29, 2014 12:06 am

What is a Fahrenheit? I'm 61 now and have used the Internationally standard C system since I was 15.

Encourage anyone else interested in the future to do the same!

andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Re: Maxing out a Raspberry

Sat Mar 29, 2014 1:24 am

ragnarjensen wrote:
andrzej b wrote: 1. The temp is in Fahrenheit.
No, the temp limit is in Celsius. Your 176 C is 348.8 F
--
Ragnar
Doesn't it depend on the time zone setting? I read somewhere that it does, and since I'm in US, it's "Standard".

Well, it doesn't matter, what is the max limit, 80C? my temp is nowhere near that.

andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Re: Maxing out a Raspberry

Sat Mar 29, 2014 1:29 am

chrisryall wrote:What is a Fahrenheit? I'm 61 now and have used the Internationally standard C system since I was 15.

Encourage anyone else interested in the future to do the same!
:lol: You know, USA has to be different; so, it will stick with the past. :D

andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Re: Maxing out a Raspberry

Sat Mar 29, 2014 1:34 am

Come on guys, does anyone have anything constructive to say on the subject and not just "smart" remarks? I know you're all smart, and don't need to be proving it by pointing out meaningless and obvious things. :D

andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Re: Maxing out a Raspberry

Sat Mar 29, 2014 2:41 am

Ok, I installed Gotham and increased arm and core frequencies. It is noticeably faster, and the cpu usage felt 20% (at around 80%) while playing the same 1080 movie. The temp is at 115F, 46C for my metric friends, while playing a 1080 movie. Arm freq of 1200 would cause the xbmc to freeze.
How can I stress test it? And what else can I do to max it out?

arm_freq=1150
core_freq=600
h264_freq=300
isp_freq=0
v3d_freq=300
sdram_freq=600
over_voltage_sdram=6
over_voltage=8
temp_limit=176
avoid_pwm_pll=1

User avatar
ragnarjensen
Posts: 333
Joined: Wed May 15, 2013 6:13 pm
Location: Stockholm, Sweden
Contact: Website

Re: Maxing out a Raspberry

Sat Mar 29, 2014 9:39 am

andrzej b wrote: Doesn't it depend on the time zone setting?
config.txt is read before the Pi has any notion of what time zones are.
How can I stress test it?
You could try something computationally intensive. Compute PI to a couple of million decimals. And build a Linux kernel at the same time.

--
Ragnar
Last edited by ragnarjensen on Sat Mar 29, 2014 9:42 am, edited 1 time in total.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Maxing out a Raspberry

Sat Mar 29, 2014 9:41 am

Try running Samba and sharing an external (NTFS) harddisk ,
then from a Windows client run a random access benchmark
on the share.

Should be close to real-world usage and put a lot of stress on
the Pi , especially through the USB subsytem. Should heat up
the LAN9512 nicely , too.


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: Maxing out a Raspberry

Sat Mar 29, 2014 10:47 am

andrzej wrote:...what is the max limit, 80C? my temp is nowhere near that.
The maximum guaranteed safe temperature is 85°C. If you remove your 'temp_limit' entry then it defaults to that. Setting 'force_turbo=0' will have no effect on performance whatsoever unless the hardware is getting dangerously hot.

There are plenty of benchmarks and a few stress tests available HERE.

Heatsinks and even a fan are necessary under some circumstances when overclocking and running very demanding applications despite many saying otherwise. Mine certainly gets very close to the 85°C limit when running certain games even with a small heatsink, and that's at an ambient room temperature of 20°C, so I'm looking to improve the cooling before summer arrives to prevent thermal-throttling.

Now I know that your Pi is dispensible, enjoy pushing it until it probably goes pop. ;)
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.

andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Re: Maxing out a Raspberry

Sat Mar 29, 2014 1:52 pm

ragnarjensen wrote:
andrzej b wrote: Doesn't it depend on the time zone setting?
config.txt is read before the Pi has any notion of what time zones are.
How can I stress test it?
You could try something computationally intensive. Compute PI to a couple of million decimals. And build a Linux kernel at the same time.

--
Ragnar
Makes sense. Will change that.

Can you walk me through the stress test, or link me to a site? I know almost nothing about linux.

andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Re: Maxing out a Raspberry

Sat Mar 29, 2014 1:59 pm

ghans wrote:Try running Samba and sharing an external (NTFS) harddisk ,
then from a Windows client run a random access benchmark
on the share.

Should be close to real-world usage and put a lot of stress on
the Pi , especially through the USB subsytem. Should heat up
the LAN9512 nicely , too.


ghans
That is my setuIp now. I'm connecting to the windows homegroup through Samba, and that is how I play the movies. The LAN does heat up (too hot to touch for more than a second), although now with the heatsink and the fan, it is probably 20 degrees cooler.

After installing Ghotham, it doesn't seem like it is dropping frames anymore.
Can you walk me through on how to run a random access benchmark

andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Re: Maxing out a Raspberry

Sat Mar 29, 2014 2:07 pm

GTR2Fan wrote:
andrzej wrote:...what is the max limit, 80C? my temp is nowhere near that.
The maximum guaranteed safe temperature is 85°C. If you remove your 'temp_limit' entry then it defaults to that. Setting 'force_turbo=0' will have no effect on performance whatsoever unless the hardware is getting dangerously hot.

There are plenty of benchmarks and a few stress tests available HERE.

Heatsinks and even a fan are necessary under some circumstances when overclocking and running very demanding applications despite many saying otherwise. Mine certainly gets very close to the 85°C limit when running certain games even with a small heatsink, and that's at an ambient room temperature of 20°C, so I'm looking to improve the cooling before summer arrives to prevent thermal-throttling.

Now I know that your Pi is dispensible, enjoy pushing it until it probably goes pop. ;)
Yeah, I just removed the entry.

I'll check those benchmarks out.

LoL, will do enjoy, and will let you know when it pops :D

andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Re: Maxing out a Raspberry

Sat Mar 29, 2014 10:13 pm

GTR2Fan wrote:
andrzej wrote:...what is the max limit, 80C? my temp is nowhere near that.
The maximum guaranteed safe temperature is 85°C. If you remove your 'temp_limit' entry then it defaults to that. Setting 'force_turbo=0' will have no effect on performance whatsoever unless the hardware is getting dangerously hot.

There are plenty of benchmarks and a few stress tests available HERE.

Heatsinks and even a fan are necessary under some circumstances when overclocking and running very demanding applications despite many saying otherwise. Mine certainly gets very close to the 85°C limit when running certain games even with a small heatsink, and that's at an ambient room temperature of 20°C, so I'm looking to improve the cooling before summer arrives to prevent thermal-throttling.

Now I know that your Pi is dispensible, enjoy pushing it until it probably goes pop. ;)
Ok, I am a noob. I got lost at the site; too many words and choices.
I have downloaded the Raspberry pi benchmark zip. Unpacked it. What do I do now? I am on windows 7, connected to raspberry pi by LAN switch.
How do I run these benchmarks... can you give me step by step...

R1nzler
Posts: 33
Joined: Thu Mar 20, 2014 6:30 pm

Re: Maxing out a Raspberry

Sun Mar 30, 2014 4:30 am

Ide use magnets....MAGNETS

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: Maxing out a Raspberry

Sun Mar 30, 2014 11:36 am

I think the question is what else can you do to get more performance?

As far as I am concerned the biggest throttle on the Rpi's performance is the IO bandwidth. It is also the one thing that can't be improved on as a user.

You have overclocked it to the max so nothing else is left there.

The next thing is use and tuning. If you use a gui desktop, then running the X server on another computer should help overall performance. Even better is not running any X applications.

I believe you are done. You have found the "Go faster" knob and cranked it to the max. Nothing else is left except a fork-lift upgrade. :o

Richard

PS. I have played with overclocking for years and in general it just doesn't pay. All works well until one day the system won't boot or it starts crashing. Lower the clock speed and then it boots again. What happened? Obviously the die in the CPU chip aged and now it won't run as fast. The one overclock that did work well was raising the clock speed of a WE32000 CPU. I raised the clock speed by about 20% and it still worked but it was the traces on the motherboard that was the limiting factor on that chip. A good board would work right when overclocked. A early board would not.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Re: Maxing out a Raspberry

Sun Mar 30, 2014 9:07 pm

Is 600 the limit for gpu core and sdram? Cause I can go higher, just don't know if it is actually working, or if it is just defaulting to 600. Note I am using openelec

andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Re: Maxing out a Raspberry

Sun Mar 30, 2014 9:10 pm

Richard-TX wrote:I think the question is what else can you do to get more performance?

I believe you are done. You have found the "Go faster" knob and cranked it to the max. Nothing else is left except a fork-lift upgrade. :o
:lol: Yeah, that may be the limit. Well, had fun overcklocking it. :)

andrzej b
Posts: 13
Joined: Fri Mar 28, 2014 9:04 pm

Re: Maxing out a Raspberry

Sun Mar 30, 2014 9:11 pm

R1nzler wrote:Ide use magnets....MAGNETS
:lol: I will definitely give those a try!

mlarma
Posts: 1
Joined: Wed Aug 27, 2014 1:47 pm

Re: Maxing out a Raspberry

Wed Aug 27, 2014 1:54 pm

I've been running with the following settings for like ever. Notice that the ratios are in sync with one another. That was intentional. Never did testing to verify it was faster, but based on prior experiences in the PC world, asynchronous interfaces create waits. Info on this from others would be helpful. I also use heatsinks, which helped get to these levels safely and temps stay low. Without them, it would not only be completely unstable, it would more than likely fail.

arm_freq=1100
force_turbo=1
core_freq=550
sdram_freq=550
h264_freq=275
isp_freq=275
v3d_freq=275
over_voltage=8

Not related to the settings above, I also allocate 128MB to the GPU on my Pi B.

gpu_mem=128

Cheers,

Mark

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Maxing out a Raspberry

Wed Aug 27, 2014 7:11 pm

Sounds like people are looking for this thread: http://www.raspberrypi.org/forums/viewt ... =29&t=6201

Wommit
Posts: 2
Joined: Wed Aug 27, 2014 7:50 pm

Re: Maxing out a Raspberry

Thu Aug 28, 2014 11:02 am

ragnarjensen wrote:
andrzej b wrote: 1. The temp is in Fahrenheit.
No, the temp limit is in Celsius. Your 176 C is 348.8 F
--
Ragnar

348F !!!!!

Isn't that over the spontainious combustion point?

I thing he might have noticed if his Pi started burning.

Just sayin' like.

Wommit

Return to “General discussion”