giangiacomo
Posts: 3
Joined: Thu May 05, 2016 12:00 pm

CPU Disabled?

Fri May 06, 2016 11:11 pm

Hello everybody,
doing a "lshw" on my Raspberry PI 2 I got this result that I cannot understand:

root@thatsmyhomeserver:/home/pi# lshw
thatsmyhomeserver
description: Computer
product: Raspberry Pi 2 Model B Rev 1.1
width: 32 bits
*-core
description: Motherboard
physical id: 0
capabilities: brcm_bcm2709
*-cpu:0
description: CPU
product: cpu
physical id: 0
bus info: cpu@0
size: 950MHz
capacity: 950MHz
capabilities: cpufreq
*-cpu:1 DISABLED
description: CPU
product: cpu
physical id: 1
bus info: cpu@1
size: 950MHz
capacity: 950MHz
capabilities: cpufreq
*-cpu:2 DISABLED
description: CPU
product: cpu
physical id: 2
bus info: cpu@2
size: 950MHz
capacity: 950MHz
capabilities: cpufreq
*-cpu:3 DISABLED
description: CPU
product: cpu
physical id: 3
bus info: cpu@3
size: 950MHz
capacity: 950MHz
capabilities: cpufreq
*-memory
description: System memory
physical id: 4
size: 973MiB
*-network
description: Ethernet interface
physical id: 1
logical name: eth0
serial: b8:27:eb:09:1f:12
size: 100Mbit/s
capacity: 100Mbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=smsc95xx driverversion=22-Aug-2005 duplex=full firmware=smsc95xx USB 2.0 Ethernet ip=12.7.80.200 link=yes multicast=yes port=MII speed=100Mbit/s

I can't figure out why 3 core are marked as disabled?

Any hints?

Thanks,
Gian

DirkS
Posts: 10867
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: CPU Disabled?

Fri May 06, 2016 11:24 pm

Crappy software?
Run 'top', press '1' and you will see that all the cores are being used.

giangiacomo
Posts: 3
Joined: Thu May 05, 2016 12:00 pm

Re: CPU Disabled?

Fri May 06, 2016 11:33 pm

Aha make sense

top - 01:31:42 up 1 day, 5:06, 4 users, load average: 7,79, 6,61, 6
Tasks: 138 total, 1 running, 137 sleeping, 0 stopped, 0 zombie
%Cpu0 : 0,0 us, 1,0 sy, 0,0 ni, 0,0 id, 99,0 wa, 0,0 hi, 0,0 si
%Cpu1 : 0,0 us, 0,0 sy, 0,0 ni,100,0 id, 0,0 wa, 0,0 hi, 0,0 si
%Cpu2 : 0,0 us, 0,0 sy, 0,0 ni,100,0 id, 0,0 wa, 0,0 hi, 0,0 si
%Cpu3 : 0,3 us, 0,0 sy, 0,0 ni, 0,0 id, 99,7 wa, 0,0 hi, 0,0 si
KiB Mem: 996736 total, 903936 used, 92800 free, 159040 buffe
KiB Swap: 102396 total, 8 used, 102388 free, 378044 cache

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
17613 root 20 0 4704 2512 2120 R 1,0 0,3 0:03.03
17651 root 20 0 13616 10m 3648 D 0,7 1,1 0:01.06
17583 root 20 0 0 0 0 S 0,3 0,0 0:00.06

Thanks man :D

User avatar
Paeryn
Posts: 3559
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: CPU Disabled?

Sat May 07, 2016 12:21 am

At a guess the version in the repo isn't the most up-to-date and probably that version doesn't correctly parse the cpu info. I just compiled the latest version and got the correct info.

Code: Select all

pi@rpi3:~/Public/lshw/lshw-master/src $ ./lshw
WARNING: you should run this program as super-user.
rpi3
    description: ARMv7 Processor rev 4 (v7l)
    product: Raspberry Pi 3 Model B Rev 1.2
    width: 32 bits
    capabilities: smp
  *-core
       description: Motherboard
       physical id: 0
     *-cpu:0
          description: CPU
          product: cpu
          physical id: 0
          bus info: cpu@0
          size: 1200MHz
          capacity: 1200MHz
          capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
     *-cpu:1
          description: CPU
          product: cpu
          physical id: 1
          bus info: cpu@1
          size: 1200MHz
          capacity: 1200MHz
          capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
     *-cpu:2
          description: CPU
          product: cpu
          physical id: 2
          bus info: cpu@2
          size: 1200MHz
          capacity: 1200MHz
          capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
     *-cpu:3
          description: CPU
          product: cpu
          physical id: 3
          bus info: cpu@3
          size: 1200MHz
          capacity: 1200MHz
          capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 cpufreq
She who travels light — forgot something.
Please note that my name doesn't start with the @ character so can people please stop writing it as if it does!

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

Re: CPU Disabled?

Sat May 07, 2016 7:47 am

My guess is that crappy software has hard-coded parsing for the stuff that you get from /proc/cpuinfo on an Intel X86/X86_64 machine and doesn't have a clue about the different stuff that comes from the Raspberry Pi kernel.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

User avatar
jahboater
Posts: 8690
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: CPU Disabled?

Sat May 07, 2016 8:47 am

DougieLawson wrote:My guess is that crappy software has hard-coded parsing for the stuff that you get from /proc/cpuinfo on an Intel X86/X86_64 machine and doesn't have a clue about the different stuff that comes from the Raspberry Pi kernel.
I think the format of /proc/cpuinfo has changed on the Pi. From memory, I think the CPU brand string field was called "Processor" or "cpu model", but is now called "model name" which is the same as x86.

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

Re: CPU Disabled?

Sat May 07, 2016 9:17 am

The source code is here: https://ezix.org/src/pkg/lshw/src/master/src
If I could be bothered I'd look at fixing it to recognise the RPi.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

Return to “General discussion”