mechilless
Posts: 2
Joined: Fri Aug 03, 2012 8:02 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 6:47 pm

i got this error when i set turbo. and even with a load on it is seems to stay at 700MHz


update-rc.d: using dependency based boot sequencing
update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match switch_cpu_governor Default-Start values (S)
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match switch_cpu_governor Default-Stop values (none)

spectrepaul
Posts: 9
Joined: Mon Sep 10, 2012 11:05 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 6:57 pm

Fantastic, easy to upgrade and set up the turbo mode, just checked it with: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

Changes from 700 to 1g when needed!

Absolutely great guys

:)

asb
Forum Moderator
Forum Moderator
Posts: 853
Joined: Fri Sep 16, 2011 7:16 pm
Contact: Website

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 6:58 pm

mechilless wrote:i got this error when i set turbo. and even with a load on it is seems to stay at 700MHz


update-rc.d: using dependency based boot sequencing
update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match switch_cpu_governor Default-Start values (S)
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match switch_cpu_governor Default-Stop values (none)
It's a harmless warning.

mechilless
Posts: 2
Joined: Fri Aug 03, 2012 8:02 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 7:00 pm

Roger That ... thanks
Mitchell
asb wrote:
mechilless wrote:i got this error when i set turbo. and even with a load on it is seems to stay at 700MHz


update-rc.d: using dependency based boot sequencing
update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match switch_cpu_governor Default-Start values (S)
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match switch_cpu_governor Default-Stop values (none)
It's a harmless warning.

diplopi
Posts: 4
Joined: Wed Sep 19, 2012 7:25 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 7:27 pm

Hi,

did I miss something? When trying

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

I get a "No such file or directory" error.

Can you help me with that?

Thanks in advance. Regards, rob

User avatar
mister_wavey
Posts: 98
Joined: Sun Sep 02, 2012 8:23 am
Location: Abergavenny, Wales, UK
Contact: Website

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 7:44 pm

try

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

again. if it doesn't work, your kernel probably isn't in cpufreq mode properly. run the raspi-config again and select the overclock settings again.

User avatar
JulienV
Posts: 8
Joined: Mon Jun 18, 2012 2:00 pm
Location: Haute Normandie, France

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 8:24 pm

I found a package for those who want to check the increase in frequency when cpu is under stress.

Installation :

Code: Select all

sudo apt-get install stress
Then you can do something like that (on a single command line) :

Code: Select all

stress -c 1 & sleep 3 ; echo "CPU freq :" ; cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq ; killall stress
Last edited by JulienV on Wed Sep 19, 2012 8:36 pm, edited 2 times in total.

scorp
Posts: 96
Joined: Tue May 29, 2012 6:21 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 8:32 pm

I had previous(I think 07.08.2012) Raspbian but on usb hdd. Unfortunately update mentioned in the first post finished with error Sub-process /usr/bin/dpkg returned an error code (1). I don't have more details, just decided to install fresh image :(

Zxa
Posts: 7
Joined: Fri Sep 14, 2012 3:44 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 8:59 pm

For anyone else running a PHP web server on their Pi, here's a simple snippet to show the core temp and freq on a web page (with comments for anyone newish to PHP):

Code: Select all

Current core temperature: <?php
$temp = intval(file_get_contents("/sys/class/thermal/thermal_zone0/temp")); // read the file as a string[file_get_contents()], and convert to an int [intval()]so we can do math functions with it
$color = "#060"; // default colour
if($temp >= 60000) { $color = "#F00"; } //set to red if over 60 degrees (is in milliDegrees)
elseif($temp >= 50000) { $color = "#FC0"; } // set to yellow if over 50 degrees
echo "<span style=\"color:".$color.";\">".($temp/1000)."&deg;C / ".(($temp/1000)+271.15)."K</span>";
?><br />// display in correct colour and convert to degrees. Also in Kelvin because why not?! :)
Current core frequency: <?php
$freq = intval(file_get_contents("/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq"));
echo ($freq/1000)."MHz"; // covert to MHz from kHz
?><br />
The temperature colours I chose arbitrariy, and may make no sense regarding the actual temperature scale the Pi is designed to run at (I notice the foundation are happy up to about 85 degrees.) It's not the prettiest display, but I was just curious to see if you could read this info from a script. It also means I can easily check on my Pi's temp without SSHing in, as I run it headless.

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:03 pm

Ok - very nice - but .....

Very grateful for the new release but I'm just wondering if there is something missing in the way the new sanctioned overclocking turbo mode is configured (or maybe I'm just missing a simple setting somewhere)

We would all (unless trying to do some low power thingy) want our RPis to run as fast as reasonably possible for as much of the time as possible.

I'm looking at Scratch (which suffers from the basic low CPU power of the RPi) and any speed boost is welcome.

I've set my RPi to turbo mode and when Scratch loads - it uses a lot of CPU so turbo kicks in and boosts to 1GHz so Scratch ends up loading faster (approx 40% quicker) - great :)

Run a complicated game and it runs at 1GHz most of time - great - excellent boost :)

But....
if CPU load not high in a less demanding game - speed drops back to 700Mhz and no visible boost in performance :(
The shift from 1Ghz to 700Mhz is enough to cause a quite noticeable stutter (most noticeable when drawing a new sprite) or when a game crosses over the turbo CPU threshold and suddenly speeds up or slows down. :(

I'm thinking that we need a minimum overclock setting so that it doesn't go back down to 700Mhz so that we can all feel the benefit for longer :)

regards

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

nummy
Posts: 35
Joined: Tue Aug 14, 2012 12:07 am

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:12 pm

how do we do the nbench?

I downloaded nbench 2.2.3 from http://www.tux.org/~mayer/linux/bmark.html
do I just do "make" in the directory?

what about all these other compiler options I see posted in other threads?

Yggdrasil
Posts: 138
Joined: Sun Aug 26, 2012 8:45 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:18 pm

Thanks for this great update!

User avatar
williamhbell
Posts: 291
Joined: Mon Dec 26, 2011 5:13 pm
Contact: Website Twitter

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:22 pm

williamhbell wrote:Hi,

During the update, the Pi was turned off so that the update many not have completed correctly. How can the update be re-run? Is it enough to force the script in the deb file to re-run?

On the second Pi the update script is still running after 2hrs.

Thanks and best regards,

Will
After 6hrs the apt-get upgrade is still running. This is nothing fancy, just the default configuration with X running.

Regards, Will

tytoons
Posts: 3
Joined: Fri Aug 03, 2012 1:50 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:23 pm

dom wrote:
RaTTuS wrote:/opt/vc/bin/vcgencmd measure_temp
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

Code: Select all

cat /sys/class/thermal/thermal_zone0/temp
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
is a better way. Temperature is in milli-degrees C. Freq in kHz.

I ran sudo apt-get update && sudo apt-get install raspberrypi* raspi-config

Then I try cat /sys/class/thermal/thermal_zone0/temp it can't find it. Am I missing something?

*EDIT* - I rebooted it again and now it works!
Last edited by tytoons on Wed Sep 19, 2012 9:33 pm, edited 1 time in total.

User avatar
Sander
Posts: 174
Joined: Wed Aug 31, 2011 1:01 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:25 pm

nummy wrote:how do we do the nbench?

I downloaded nbench 2.2.3 from http://www.tux.org/~mayer/linux/bmark.html
do I just do "make" in the directory?
Yes, here's how:

Code: Select all

cd
wget  http://www.tux.org/~mayer/linux/nbench-byte-2.2.3.tar.gz
tar xvzf nbench-byte-2.2.3.tar.gz 
cd nbench-byte-2.2.3/
make
./nbench 
FWIW: I was not yet able to reach higher performance :(

Code: Select all

TEST                : Iterations/sec.  : Old Index   : New Index
                    :                  : Pentium 90* : AMD K6/233*
--------------------:------------------:-------------:------------
NUMERIC SORT        :           216.6  :       5.55  :       1.82
STRING SORT         :          30.711  :      13.72  :       2.12
To be continued

asb
Forum Moderator
Forum Moderator
Posts: 853
Joined: Fri Sep 16, 2011 7:16 pm
Contact: Website

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:33 pm

tytoons: did you reboot?

sghazagh
Posts: 8
Joined: Wed Sep 19, 2012 9:27 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:36 pm

dom wrote:
RaTTuS wrote:/opt/vc/bin/vcgencmd measure_temp
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

Code: Select all

cat /sys/class/thermal/thermal_zone0/temp
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
is a better way. Temperature is in milli-degrees C. Freq in kHz.

I cannot run this two command!
It says, " No such file or directory"

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

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:37 pm

Sander wrote:FWIW: I was not yet able to reach higher performance :(
I built mine on linux PC with this toolchain:
https://github.com/raspberrypi/tools/tr ... f-raspbian

You can get the binary here:
https://dl.dropbox.com/u/3669512/temp/nbench_linaro
You need NNET.DAT and COM.DAT in the same directory (they are in nbench-byte-2.2.3.tar.gz)

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

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:38 pm

sghazagh wrote:I cannot run this two command!
It says, " No such file or directory"
It suggests you haven't done one of: updating, enabling overclock or rebooting.

tytoons
Posts: 3
Joined: Fri Aug 03, 2012 1:50 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:47 pm

asb wrote:tytoons: did you reboot?
Nope totally forgot! :mrgreen:

Thank you, works now!

diplopi
Posts: 4
Joined: Wed Sep 19, 2012 7:25 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:49 pm

When trying to active overclocking, I get this:

Code: Select all

update-rc.d: using dependency based boot sequencing
update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match switch_cpu_governor Default-Start values (S)
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match switch_cpu_governor Default-Stop values (none)
insserv: warning: script 'K01mountdisk' missing LSB tags and overrides
insserv: warning: script 'mountdisk' missing LSB tags and overrides

asb
Forum Moderator
Forum Moderator
Posts: 853
Joined: Fri Sep 16, 2011 7:16 pm
Contact: Website

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:51 pm

diplopi: just warnings, it's fine. Be aware you want to reboot after enabling overclock (raspi-config suggests you do this upon exit).

diplopi
Posts: 4
Joined: Wed Sep 19, 2012 7:25 pm

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 9:57 pm

Hi asb,

I did reboot and it still says: No such file or directory

I did upgrade and update. Set overclock, reboot and still "No such file or directory".

:/

Regards, Robert

pygmy_giant
Posts: 1562
Joined: Sun Mar 04, 2012 12:49 am

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 10:01 pm

How do you enable overclock - I just updated and rebooted - should I do something else to feel the benefits of turbo mode?
Ostendo ignarus addo scientia.

r0nnie
Posts: 49
Joined: Fri Aug 03, 2012 1:53 am

Re: Updating to the 2012-09-18-wheezy-raspbian image

Wed Sep 19, 2012 10:04 pm

pygmy_giant wrote:How do you enable overclock - I just updated and rebooted - should I do something else to feel the benefits of turbo mode?
in terminal type - sudo raspi-config
then select overclock then reboot
Last edited by r0nnie on Wed Sep 19, 2012 10:07 pm, edited 1 time in total.

Return to “Raspberry Pi OS”