How many processors?
How do I find the number and type of processors on the server
|
Quote:
|
How many penguins appear on the screen when you boot? That'll give you the number.
But for more detailed info about type, look at /proc/cpuinfo. |
procinfo can't distinguish between cores and processors, as far as I know. A tool like dmidecode might be a better solution.
Red Hat has this to say about the subject: https://access.redhat.com/discussions/480953. |
Quote:
|
Quote:
|
Quote:
But for most desktop (home-usage) machines, the answer is 1 As far as I know only XEON motherboards, mostly used for servers, have multiple (up to 4) CPU sockets. But, of course, it might be that by now even Core * cpu's have real multi-processor capabilities. But a "normal" Core i? (or such) motherboard only has a single cpu socket, so only a single cpu (and only a single memory controller). It can have multiple cores, of course, but a core is NOT a full separate processor (among that because of the single memory processor, so all cores have to wait on each other to get/store data from/to RAM (or even L2 cache). |
lscpu
Code:
CPU op-mode(s): 32-bit, 64-bit |
Quote:
At least my system gives Code:
Architecture: i686 Another way is Code:
$ cat /proc/cpuinfo The OP hasn't told us yet if he wants to know the real physical number of cpu's or "how many parallel instruction streams can be processed", which will include cores and thread per core too. |
I think you all are being very helpful with the OPs homework in both of their threads.
These threads will definitely help others in the future. ;) I for one, was pleased to learn about lscpu -- I've always just looked at Webmin's System Information page, but, of course, that requires installing and configuring Webmin |
nproc
|
Quote:
|
Quote:
Code:
hazel@bigboy:~ |
Another simple way to tell, start top and then press "1".
top - 12:07:30 up 10 days, 17:08, 1 user, load average: 0.26, 0.10, 0.07 Tasks: 277 total, 1 running, 275 sleeping, 0 stopped, 1 zombie %Cpu0 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu1 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu2 : 0.0 us, 0.3 sy, 0.0 ni, 99.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu3 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu4 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu5 : 0.0 us, 0.3 sy, 0.0 ni, 99.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu6 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu7 : 17.0 us, 2.3 sy, 0.0 ni, 80.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu8 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu9 : 0.3 us, 0.0 sy, 0.0 ni, 99.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu10 : 1.3 us, 0.0 sy, 0.0 ni, 98.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu11 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 16379904 total, 11147844 free, 1504144 used, 3727916 buff/cache KiB Swap: 16653308 total, 16653308 free, 0 used. 14348768 avail Mem |
All times are GMT -5. The time now is 12:51 PM. |