You are not logged in.

#1 2015-09-01 17:50:12

PrismaPhonic
Member
Registered: 2015-07-21
Posts: 2

lspcu lists a wrong number of CPUs. How to fix?

Hi,

When I run lspcu on my computer I get:

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    2
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 58
Model name:            Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Stepping:              9
CPU MHz:               1645.015
CPU max MHz:           3900.0000
CPU min MHz:           1600.0000
BogoMIPS:              6786.95
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              8192K
NUMA node0 CPU(s):     0-7

While I do have an Intel Core i7-3770 CPU, it has 4 CPUs, not 8.  It does however show that there are 4 cores per socket, and 1 socket, implying that there are 4 total cores.  Why then does it list the number of CPUs as 8?  is it because each core has 2 threads?  if so, when I'm configuring conky, should I configure it for 8 CPUS or for 4?  Is each thread considered an independent monitor-able process?

Offline

#2 2015-09-01 18:02:33

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: lspcu lists a wrong number of CPUs. How to fix?

PrismaPhonic wrote:

is it because each core has 2 threads?

Yes.

PrismaPhonic wrote:

if so, when I'm configuring conky, should I configure it for 8 CPUS or for 4?  Is each thread considered an independent monitor-able process?

8 "CPU"s -- check `htop`, that will show 8 CPU bars.

`cat /proc/cpuinfo` will give you more information than `lscpu`


Jin, Jîyan, Azadî

Offline

#3 2015-09-01 18:42:56

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: lspcu lists a wrong number of CPUs. How to fix?

Head_on_a_Stick wrote:

`cat /proc/cpuinfo` will give you more information than `lscpu`

More data, not necessarily more information. wink


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB