thsBavR10
Posts: 233
Joined: Sat Jul 21, 2012 3:11 pm

Re: Overclocking

Tue Oct 23, 2012 10:00 am

could you try

Code: Select all

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
immediately after

Code: Select all

time echo "scale=2000;4*a(1)" | bc -l
?
better in one line:

Code: Select all

time echo "scale=2000;4*a(1)" | bc -l && cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq 
The output from /proc/cpuinfo seems to be static.

trn
Posts: 46
Joined: Wed May 09, 2012 11:30 am

Re: Overclocking

Tue Oct 23, 2012 10:31 am

after
time echo "scale=2000;4*a(1)" | bc -l && cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq


real 0m24.280s
user 0m23.610s
sys 0m0.030s
700000

thsBavR10
Posts: 233
Joined: Sat Jul 21, 2012 3:11 pm

Re: Overclocking

Tue Oct 23, 2012 10:37 am

please check with

Code: Select all

dmesg | grep cpufreq
if there is an line
e.g.

Code: Select all

bcm2835-cpufreq: min=700000 max=800000 cur=800000
.
This is indicating, wether your parameters in config.txt have been accepted.

trn
Posts: 46
Joined: Wed May 09, 2012 11:30 am

Re: Overclocking

Tue Oct 23, 2012 10:39 am

[ 1.977888] bcm2835-cpufreq: min=700000 max=900000 cur=700000
[ 1.983792] bcm2835-cpufreq: switching to governor powersave
[ 1.996165] bcm2835-cpufreq: switching to governor powersave

trn
Posts: 46
Joined: Wed May 09, 2012 11:30 am

Re: Overclocking

Tue Oct 23, 2012 10:55 am

When cpu work on 900?
Why on 700 when i get him to work ?

thsBavR10
Posts: 233
Joined: Sat Jul 21, 2012 3:11 pm

Re: Overclocking

Tue Oct 23, 2012 11:00 am

I'm missing lines with

Code: Select all

 bcm2835-cpufreq: switching to governor ondemand
Seems that your config.txt settings are not in use.
I don't know why.

trn
Posts: 46
Joined: Wed May 09, 2012 11:30 am

Re: Overclocking

Tue Oct 23, 2012 11:14 am

thsBavR10 wrote:I'm missing lines with

Code: Select all

 bcm2835-cpufreq: switching to governor ondemand
Seems that your config.txt settings are not in use.
I don't know why.
Anybody know?

thsBavR10
Posts: 233
Joined: Sat Jul 21, 2012 3:11 pm

Re: Overclocking

Tue Oct 23, 2012 11:35 am

Please give

Code: Select all

echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
a try.
(found it at http://www.raspberrypi.org/phpBB3/viewt ... nd#p188395).
"ondemand" should be the default value.

Edit found this:
Yes, we boot up with powersave governor and switch to ondemand with init script. "apt-get upgrade" should get you this bevaviour, but you can do it manually by adding:
echo “ondemand” > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
to /etc/rc.local.
http://www.raspberrypi.org/phpBB3/viewt ... or#p176976

trn
Posts: 46
Joined: Wed May 09, 2012 11:30 am

Re: Overclocking

Tue Oct 23, 2012 11:51 am

Thanx

now is ok
real 0m18.623s
user 0m18.390s
sys 0m0.040s
900000

jaromanda
Posts: 93
Joined: Wed Sep 12, 2012 12:33 pm

Re: Overclocking

Tue Oct 23, 2012 12:09 pm

Code: Select all

 echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 
then try again :D


edit: too slow
I now own 2 RPi - does that mean I own a circumference?

Coxeroni
Posts: 7
Joined: Fri Jul 20, 2012 6:18 pm

Re: Overclocking

Thu Oct 25, 2012 9:14 am

dom wrote:
Wanderlei wrote:Yes it only occurs only with overclocking, I try overclocking extremely mildly by 2 and first reboot it is corrupted. (the build of openelec used is actualy r192220)
gpu_mem=256
arm_freq=702
sdram_freq=402
gpu_freq=252
core_freq=252
Can you limit core_freq to 250. (gpu_freq has no effect). I think that is the setting that provokes corruption (for some boards).
You should be able to set arm_freq and sdram_freq much higher (and the arm_freq is the most important one).
Thanks for that remark. In my case, setting core to 333 MHz resolved my issue of Openelec freezing at high load. Now running

arm_freq=1000
sdram_freq=500
core_freq=333
over_voltage=6

butter smooth on my 512 MB pi with not lock-ups so far. Hope I don't get any corruption soon, this I will see with longer test runs.

User avatar
dliloch
Posts: 168
Joined: Wed Jun 27, 2012 6:28 pm
Location: cleveland, ohio usa

Re: Overclocking

Thu Oct 25, 2012 10:59 am

hello,
when I use vcgencmd get_config
I was expecting to see my current config ..
but all that came back was:
get_config [config|int|str]
does anyone know what the operands do?
and how do you list the config with vcgencmd?
thanks

gogiman
Posts: 14
Joined: Tue Jul 10, 2012 6:55 am

Re: Overclocking

Thu Oct 25, 2012 12:07 pm

Hi,

seems you need to do it like this:
vcgencmd get_config config
vcgencmd get_config int
vcgencmd get_config str
....

User avatar
dliloch
Posts: 168
Joined: Wed Jun 27, 2012 6:28 pm
Location: cleveland, ohio usa

Re: Overclocking

Thu Oct 25, 2012 12:19 pm

[email protected]spberrypi ~ $ vcgencmd get_config config
config is unknown
[email protected] ~ $ vcgencmd get_config int
arm_freq=1000
core_freq=500
sdram_freq=500
over_voltage=6
disable_overscan=1
boot_delay=1
temp_limit=85
[email protected] ~ $ vcgencmd get_config str
[email protected] ~ $
I guess int is for what it was initially.. then config is
for if you change while running?
str?? don't know

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5372
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Overclocking

Thu Oct 25, 2012 12:59 pm

gogiman wrote:Hi,

seems you need to do it like this:
vcgencmd get_config config
vcgencmd get_config int
vcgencmd get_config str
....
vcgencmd get_config int - lists all the integer config options that are set (non-zero)
vcgencmd get_config str - lists all the string config options that are set (non-null)
vcgencmd get_config <config> - lists that specifc config value. E.g. vcgencmd get_config arm_freq

User avatar
dliloch
Posts: 168
Joined: Wed Jun 27, 2012 6:28 pm
Location: cleveland, ohio usa

Re: Overclocking

Thu Oct 25, 2012 1:15 pm

thanks for the clarification of the parms..
however.. I have gpu_freq=300 and it comes back as zero
and gpu_mem is unknown? I have it set to 64
I could see maybe the program does not do gpu stuff but it does recognize the gpu_freq parm but returns zero ..
-don isenstadt

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5372
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Overclocking

Thu Oct 25, 2012 2:31 pm

dliloch wrote:thanks for the clarification of the parms..
however.. I have gpu_freq=300 and it comes back as zero
and gpu_mem is unknown? I have it set to 64
I could see maybe the program does not do gpu stuff but it does recognize the gpu_freq parm but returns zero ..
-don isenstadt
gpu_mem is parsed by bootcode.bin, rather than start.elf, so start.elf knows nothing about it. I guess I could parse it from start.elf just to make get_config work...
gpu_freq worked for me:

Code: Select all

vcgencmd get_config gpu_freq
gpu_freq=300

User avatar
dliloch
Posts: 168
Joined: Wed Jun 27, 2012 6:28 pm
Location: cleveland, ohio usa

Re: Overclocking

Thu Oct 25, 2012 6:14 pm

@346337 all is good re gpu_freq. I was using 345210 .. so now I will always begin my posts @......
I would also like to thank all of you @ the foundation the the great work that you have done with
this device.. and it's associated software ..
thanks so much.. the keys to the kingdom for $35! :-)

portets
Posts: 186
Joined: Sat Oct 29, 2011 6:24 am

Re: Overclocking

Fri Oct 26, 2012 12:53 am

dom wrote:Latest firmware now sets:

Code: Select all

init_emmc_clock=100000000
and

Code: Select all

sdhci-bcm2708.emmc_clock_freq=100000000
as I believe this helps the sdcard corruption problem when overclocking core_freq.
Although this got rid of my ext4 corruption on boot when overclocked and force_turbo=1(been using this firmware and later since), it may have caused corruption under high cpu/io load for me. Take my testing lightly though, as I've only done six test runs. Unless anyone else can confirm.

4/4 times that I've compiled pcsx-rearmed(ps1 emulator) for retroarch, it compiles to about 75% and then gcc spits out a long list of gibberish. It seems to appear when gcc runs out of ram and starts using swap space. I reboot to find my ext4 is completely corrupt. I then re-flashed this same exact disk image to my sd, with the only changes being:

Code: Select all

init_emmc_clock=50000000

Code: Select all

sdhci-bcm2708.emmc_clock_freq=50000000
2/2 times compiling pcsx-rearmed completed successfully.

If anyone wants to test, I was using gpu_mem=64 on a 256 pi, repository is here: https://github.com/libretro/pcsx_rearmed
./configure --platform=libretro
make
overclock was 1000/500/600(arm/core/sdram)

lmoss30
Posts: 66
Joined: Mon May 28, 2012 11:45 am

Re: Overclocking

Sun Oct 28, 2012 12:49 pm

Afternoon All,

I tried the settings that were posted on the elinix forums, so i reliase that was at own risk etc .. but since trying them i my first PI fails to boot it gets to a line that says.

[3.446958] smsc95xx 1-1.1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1-1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7e:64:8f

could any one shed some light on that might be going on. and any potentail fixes, i have tried clearing out the config.txt file so that it just have my hdmi settings on.

overclock settings were

arm_freq=1150
core_freq=500
sdram_freq=600
over_voltage=8

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5372
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Overclocking

Sun Oct 28, 2012 12:59 pm

lmoss30 wrote:I tried the settings that were posted on the elinix forums, so i reliase that was at own risk etc .. but since trying them i my first PI fails to boot it gets to a line that says.

[3.446958] smsc95xx 1-1.1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1-1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7e:64:8f

could any one shed some light on that might be going on. and any potentail fixes, i have tried clearing out the config.txt file so that it just have my hdmi settings on.

overclock settings were

arm_freq=1150
core_freq=500
sdram_freq=600
over_voltage=8
Very few boards will run reliably with those settings (mine doesn't). If yours doesn't boot, then you'll have to reduce the settings and find the hightest settings that work for you.
Note: a high overclock also requires more power from the power supply. You may want to verify you are still getting 5V with those settings:
http://elinux.org/R-Pi_Troubleshooting# ... r_problems

lmoss30
Posts: 66
Joined: Mon May 28, 2012 11:45 am

Re: Overclocking

Sun Oct 28, 2012 8:03 pm

dom wrote:
lmoss30 wrote:I tried the settings that were posted on the elinix forums, so i reliase that was at own risk etc .. but since trying them i my first PI fails to boot it gets to a line that says.

[3.446958] smsc95xx 1-1.1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1-1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7e:64:8f

could any one shed some light on that might be going on. and any potentail fixes, i have tried clearing out the config.txt file so that it just have my hdmi settings on.

overclock settings were

arm_freq=1150
core_freq=500
sdram_freq=600
over_voltage=8
Very few boards will run reliably with those settings (mine doesn't). If yours doesn't boot, then you'll have to reduce the settings and find the hightest settings that work for you.
Note: a high overclock also requires more power from the power supply. You may want to verify you are still getting 5V with those settings:
http://elinux.org/R-Pi_Troubleshooting# ... r_problems
Thanks for the response, i cleared out the config.txt file which i believed should reset the system to the standard 700Mhz setttings and i am still experiencing the same problems, power supply is ok at a stable 4.98v

is it possible to damage components by over clocking?

User avatar
wallarug
Posts: 460
Joined: Mon May 14, 2012 8:21 am
Location: Sydney, Australia

Re: Overclocking

Sun Oct 28, 2012 9:16 pm

lmoss30 wrote:
is it possible to damage components by over clocking?
Yes, if you are overvolting you void your warrenty.

jaromanda
Posts: 93
Joined: Wed Sep 12, 2012 12:33 pm

Re: Overclocking

Sun Oct 28, 2012 9:49 pm

wallarug wrote:
lmoss30 wrote:
is it possible to damage components by over clocking?
Yes, if you are overvolting you void your warrenty.
I thought overvolting with force_turbo=0 does NOT void warranty
I now own 2 RPi - does that mean I own a circumference?

Dilligaf
Posts: 283
Joined: Wed May 23, 2012 6:48 pm

Re: Overclocking

Sun Oct 28, 2012 11:16 pm

jaromanda wrote:
wallarug wrote:
lmoss30 wrote:
is it possible to damage components by over clocking?
Yes, if you are overvolting you void your warrenty.
I thought overvolting with force_turbo=0 does NOT void warranty
Only overvolt of 6 or less.

Return to “Advanced users”