owncloud-archive / pi-image

Scripts and configurations for Raspberry PI disk images
29 stars 8 forks source link

Overclocking #32

Open WaaromZoMoeilijk opened 8 years ago

WaaromZoMoeilijk commented 8 years ago

Cloned from https://github.com/owncloud/ubuntu-snap/issues/15

Here I will post my findings in overclocking the Snap build.

In comparison to yesterday, ownCloud feels more "snappy" with overclock settings then without. Today I got it running at the max settings that don't void warranty (Still investigating if we could get arm up to 1100 and sdram to 600)

1 Question for you guys, at what temp do we set the safety measure? 85 degree seems quite high doesn't it?

Benchmarking in progress

config.txt

For more options and information see 
http://www.raspberrypi.org/documentation/configuration/config-txt.md
Some settings may impact device functionality. See link above for details

kernel=uboot.bin

gpu_mem=16
boot_delay=1
initial_turbo=30
temp_limit=85
arm_freq=1000
core_freq=500
sdram_freq=500
over_voltage=6
over_voltage_sdram=6

temp_limit=85

Overclocking and overvoltage will be disabled at runtime when the SoC reaches 85°C, in order to cool it down. You should not hit the limit, even with maximum settings at 25°C ambient temperature;for more information see here.

I want to set dynamic overclocking to not put stress on the board when its not needed. Still testing if SD ram can be dynamically set.

I will change it in to:

# For more options and information see 
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

kernel=uboot.bin

# GPU memory in megabyte. Sets the memory split between the ARM and GPU. ARM gets the remaining memory.
gpu_mem=16

# Avoids the rainbow splash screen on boot.
disable_splash=1

boot_delay=1
# Enables turbo mode from boot for the given value in seconds (up to 60) or until cpufreq sets a frequency. 
initial_turbo=30

# Overheat protection. Sets clocks and voltages to default when the SoC reaches this Celsius value. Setting this higher than default voids warranty. Default 85
temp_limit=75

# Arm - dynamic overclocking
arm_freq=1000
arm_freq_min=700

# Core - dynamic overclocking
core_freq=500
core_freq_min=250

# Sdram - dynamic overclocking
sdram_freq=500
sdram_freq_min=400

# Overvoltage - dynamic
over_voltage=6
over_voltage_min=0

# Overvoltage sdram
over_voltage_sdram=6

Monitoring temperature and voltage

To view the Pi's temperature, type: cat /sys/class/thermal/thermal_zone0/temp. Divide the result by 1000 to get the value in Celsius.

To view the Pi's current frequency, type: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq. Divide the result by 1000 to get the value in MHz.

To monitor the Pi's PSU voltage, you'll need a multimeter to measure between the TP1 and TP2 power supply test points; more information is available in power.

It's generally a good idea to keep the core temperature below 70 degrees and the voltage above 4.8V. Note that some USB power supplies fall as low as 4.2V; this is because they are usually designed to charge a 3.7V LiPo battery, rather than to supply 5V to a computer. If your overclocked Raspberry Pi is getting hot a heatsink can be helpful, especially if the Pi is to be run inside a case. A suitable heatsink is the self-adhesive 14x14x10 mm heatsink. Also a fan would do if your running max settings.

Overclocking problems

Most overclocking issues show up immediately with a failure to boot. If this occurs, hold down the shift key during the next boot which will temporarily disable all overclocking; this will allow you to boot successfully and then edit your settings.

cmdline.txt

smsc95xx.turbo_mode=N dwc_otg.fiq_fix_enable=1 elevator=deadline

Where smsc95xx.turbo_mode=N is explained here #14 And dwc_otg.fiq_fix_enable=1 here #13

https://www.raspberrypi.org/blog/introducing-turbo-mode-up-to-50-more-performance-for-free/ https://github.com/raspberrypi/documentation/blob/e003ea4889ac3fcabf2f148f74c39fec2b50dcc0/configuration/config-txt.md


Benchmark tests to be ran:

For some tests I will have to wait until I get a WD test kit, like apache bench and HD, don't have one now.

Standard Profiles: arm core sdram voltage * None * 700 250 400 0 * Modest * 800 300 400 0 * Medium * 900 333 450 2 * High * 950 450 450 6 * Turbo * 1000 500 500 6