User avatar
Milliways
Posts: 534
Joined: Fri Apr 25, 2014 12:18 am
Location: Sydney, Australia

Pi B 2 Processors

Wed Feb 11, 2015 5:00 am

I have just received my B2.
I noticed `/proc/cpuinfo` shows 4 processors but `lshw` shows cpu 1-3 disabled.

Are they in fact disabled?
I didn't really expect the new kernel to be using all cores yet, but how else would you explain benchmarking showing 6x performance?

ktb
Posts: 1447
Joined: Fri Dec 26, 2014 7:53 pm

Re: Pi B 2 Processors

Wed Feb 11, 2015 5:30 am

Interesting. I don't know. I do see the same thing using lshw.

I'm fairly sure more than one core is working. I suppose conky could be lying.

riklaunim
Posts: 265
Joined: Tue Apr 22, 2014 7:34 pm

Re: Pi B 2 Processors

Wed Feb 11, 2015 7:11 am

Many ARM SoCs disables cores if there is no work for them. If you star many resource hungry processes you should see how those cores start to work. Power saving feature :)

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Pi B 2 Processors

Wed Feb 11, 2015 9:04 am

https://packages.debian.org/wheezy/lshw

I'd suspect a bug in the code (or the info it uses is unavailable on an ARM).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26660
Joined: Sat Jul 30, 2011 7:41 pm

Re: Pi B 2 Processors

Wed Feb 11, 2015 10:43 am

DougieLawson wrote:https://packages.debian.org/wheezy/lshw

I'd suspect a bug in the code (or the info it uses is unavailable on an ARM).
+1, my tests show all cores working fine.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Pi B 2 Processors

Wed Feb 11, 2015 1:38 pm

Even plain old top shows four cores running

Code: Select all

top - 13:37:46 up 10 min,  2 users,  load average: 0.13, 0.20, 0.13
Tasks: 120 total,   1 running, 119 sleeping,   0 stopped,   0 zombie
%Cpu0  :  1.3 us,  1.7 sy,  0.0 ni, 97.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu1  :  0.3 us,  0.7 sy,  0.0 ni, 99.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu2  :  1.0 us,  0.7 sy,  0.0 ni, 98.4 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu3  :  0.0 us,  0.3 sy,  0.0 ni, 99.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:    884304 total,   384512 used,   499792 free,    33460 buffers
KiB Swap:   102396 total,        0 used,   102396 free.   193276 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 1748 root      20   0   29004  10356   4984 S   1.3  1.2   0:03.42 wicd
 2386 root      20   0    5044   2416   2056 R   1.0  0.3   0:00.38 top
  731 message+  20   0    5508   3152   2692 S   0.7  0.4   0:01.78 dbus-daemon
 1752 root      20   0   18976  12308   7964 S   0.7  1.4   0:01.33 wicd-monit+
  981 mysql     20   0  568772  55324  11976 S   0.3  6.3   0:01.33 mysqld
 1392 root      20   0   22104   4508   3352 S   0.3  0.5   0:00.05 nmbd
 2260 root      20   0   11788   5196   4504 S   0.3  0.6   0:00.94 sshd
    1 root      20   0   31652   4284   2728 S   0.0  0.5   0:08.31 systemd
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kthreadd
    3 root      20   0       0      0      0 S   0.0  0.0   0:00.11 ksoftirqd/0
    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:+
    6 root      20   0       0      0      0 S   0.0  0.0   0:00.13 kworker/u8+
    7 root      20   0       0      0      0 S   0.0  0.0   0:00.36 rcu_preempt
    8 root      20   0       0      0      0 S   0.0  0.0   0:00.01 rcu_sched
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

caldimerda
Posts: 69
Joined: Tue Oct 09, 2012 9:41 am

Re: Pi B 2 Processors

Wed Feb 11, 2015 2:43 pm

I agree the processors are working fine. I'm using handbrake to generate an mpeg and ps tells me it's so far clocked up more than 9 hours of processor time in just 2.5 hours.

I don't think I'll be repeating the exercise since it still says it has 7 hours to go.

hare9821
Posts: 1
Joined: Fri Mar 06, 2015 4:05 pm

Re: Pi B 2 Processors

Fri Mar 06, 2015 4:43 pm

I have same problem

my lshw dump : http://pastebin.com/ayDeUjVU

I put system on a high cpu usage situation (with a heavy calculation python code) but nothing changed in lshw.

interesting note:
during heavy code execution, I see %99 cpu usage in top (command) output BUT in my GUI task manager, cpu usage does not exceed %20 - %30.

another interesting note:
mpstat command (from sysstat package) shows that more than one cpu is working. but @ 1% - 2%
mpstat output : http://pastebin.com/P8FhXxTB

i think something is not correct here.
expert friends please help

Return to “Advanced users”