LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do you find how many cpu are in your system and there details? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-find-how-many-cpu-are-in-your-system-and-there-details-4175584157/)

abhik 07-09-2016 01:41 AM

How do you find how many cpu are in your system and there details?
 
Hiiii,

How do you find how many cpu are in your system and there details?

hazel 07-09-2016 02:06 AM

Is this a homework question? If so, you won't get an answer here; that's against forum rules. But I can give you a clue. Go to the /proc directory and browse the files there. Look in any that have interesting names (they are text files, or at any rate behave like text files). You will find a lot of useful information about your system, including the cpu(s). Then remember where you saw it; that's how you learn things. You don't learn much from getting answers served up to you on a plate.

Shubham Dingar 07-09-2016 02:30 AM

Quote:

lscpu
will tell you about the number of cpu's which are present in your system. Well you must explore
Quote:

/proc
directory, hazel is right, it contains very useful information about you system. These kinda questions are just a google search away, so it's better that you first google your problem and do a little research about it.
Cheers!

jamison20000e 07-09-2016 02:48 AM

DuckDuckGo your model# and the term specs ;)

malekmustaq 07-09-2016 05:34 AM

Quote:

How do you find how many cpu are in your system and there details?
You will know how many cpu's you have and each details by running these as root:
Code:

sudo cat /proc/cpuinfo
Also your cpu's are listed with memory and swap consumption by viewing what is displayed on terminal by this command:
Code:

htop -d 5
reports are quick enough for you to notice what cpu load is taking and which of them is busiest. To return to the terminal prompt just press "q".

Hope that helps. Good luck and enjoy.

m.m.

jamison20000e 07-09-2016 05:47 AM

1 Attachment(s)
I should have said too, if it was a used box, open it up...

malekmustaq 07-09-2016 07:08 AM

Quote:

I should have said too, if it was a used box, open it up...
Ha ha ha jamison you are really smart. Your solution is the first in order.

Fred Caro 07-09-2016 08:44 PM

mmm, perhaps a homework problem but where do you find reliable info as to cpu's from native Windows tools, can you say they are threads or genuine cores on the Win system?

also
Quote:

htop -d 5
bash: htop: command not found
and no I have not installed htop

Fred.

bforster111 07-09-2016 09:05 PM

Quote:

Originally Posted by abhik (Post 5572945)
Hiiii,

How do you find how many cpu are in your system and there details?

As root, type

Code:

dmidecode --type processor
This will give all details about your cpus. The # of cores, the # of threads, the kitchen sink and everything.

Timothy Miller 07-09-2016 09:27 PM

Quote:

Originally Posted by bforster111 (Post 5573342)
As root, type

Code:

dmidecode --type processor
This will give all details about your cpus. The # of cores, the # of threads, the kitchen sink and everything.

Assuming, of course, that you have dmidecode installed.

bforster111 07-09-2016 09:32 PM

Quote:

Originally Posted by Timothy Miller (Post 5573351)
Assuming, of course, that you have dmidecode installed.

True, but I didn't want to sound like a broken record and repeat what already been said.

dmidecode can be installed very easily if needed.

jamison20000e 07-10-2016 04:12 AM

*passive and not or active*
 
Seems like an odd (((until you look at the OP's other 3 posts...
(...note time, date not so much space):scratch:))) and hinder(ed)ing HW-Q? :confused: :hattip: (No pun on ed(\*human!*) :D)

Shadow_7 07-10-2016 08:25 AM

$ sudo apt-get install cpuid hwinfo util-linux cpufrequtils

$ cat /proc/cpuinfo | less

$ cpuid | grep -i "cpu count"

$ lscpu

$ cpufreq-info

$ sudo hwinfo | grep -i units/processor

And probably a dozen other ways. BITD it would boot up with a penguin on top per CPU.

jamison20000e 07-10-2016 11:21 AM

Quote:

Originally Posted by bforster111 (Post 5573355)
True, but I didn't want to sound like a broken record and repeat what already been said.

dmidecode can be installed very easily if needed.

Like Links ;)
Quote:

Originally Posted by Shadow_7 (Post 5573515)
$ sudo apt-get install cpuid hwinfo util-linux cpufrequtils

$ cat /proc/cpuinfo | less

$ cpuid | grep -i "cpu count"

$ lscpu

$ cpufreq-info

$ sudo hwinfo | grep -i units/processor

And probably a dozen other ways. BITD it would boot up with a penguin on top per CPU.

...man that's good. :D

JeremyBoden 07-10-2016 11:46 AM

lscpu gives
Quote:

Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 21
Model: 2
Model name: AMD FX(tm)-4350 Quad-Core Processor
Stepping: 0
CPU MHz: 1400.000
CPU max MHz: 4200.0000
CPU min MHz: 1400.0000
BogoMIPS: 8428.37
Virtualization: AMD-V
L1d cache: 16K
L1i cache: 64K
L2 cache: 2048K
L3 cache: 8192K
NUMA node0 CPU(s): 0-3


All times are GMT -5. The time now is 08:32 AM.