Linux / UNIX Tech Support Forum
This is a discussion on Display number of processors on linux within the Getting started tutorials forums, part of the Linux Getting Started category; Quick question - How do I display number of processors on linux? Simply use top command: Code: top Get info ...
|
|||||||
| Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Quick question - How do I display number of processors on linux?
Simply use top command: Code:
top Code:
grep -c processor /proc/cpuinfo |
| Sponsored Links | ||
|
|
|
|||
|
Quote:
correction Code:
grep -c processor /proc/cpuinfo right info for cpu grep CPU /proc/cpuinfo grep cpu /proc/cpuinfo and to see the process in the linux machine? start searching in /proc/ best way? man lsof |
|
|||
|
How can I Get only the correct number of CPU's, the following output shows that my server has 8 CPU's but physically how many does it have? now I know it's not 8 of them???
grep CPU /proc/cpuinfo model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz grep cpu /proc/cpuinfo cpu family : 6 cpu MHz : 2333.400 cpu cores : 4 cpuid level : 10 cpu family : 6 cpu MHz : 2333.400 cpu cores : 4 cpuid level : 10 cpu family : 6 cpu MHz : 2333.400 cpu cores : 4 cpuid level : 10 cpu family : 6 cpu MHz : 2333.400 cpu cores : 4 cpuid level : 10 cpu family : 6 cpu MHz : 2333.400 cpu cores : 4 cpuid level : 10 cpu family : 6 cpu MHz : 2333.400 cpu cores : 4 cpuid level : 10 cpu family : 6 cpu MHz : 2333.400 cpu cores : 4 cpuid level : 10 cpu family : 6 cpu MHz : 2333.400 cpu cores : 4 cpuid level : 10 |
|
||||
|
Try
Code:
dmidecode --type 4 dmidecode --type 4 | grep -c Socket
__________________
Vivek Gite Linux Evangelist |
|
|||
|
top and grep -c processor /proc/cpuinfotop
commands are not same sir.. ple describe me... i m getting from it that the top comm and is showing the total process info. (tasks ). which are currently on but grep -c ......XXXXXXXX...........command showing how many no of process going on.. how they are same.. plz ans me Last edited by pritam.linux; 20-12-2008 at 01:48 PM. |
|
||||
|
You need to only type:
Code:
grep -c processor /proc/cpuinfo
__________________
Vivek Gite Linux Evangelist |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command to find which process is utilizing max number of resources in Red hat Linux | Santosh Sharma | Linux software | 0 | 19-01-2008 03:12 PM |
| Script to display number of lines and words from a file | newbewie | Shell scripting | 2 | 07-12-2007 10:37 PM |
| UNIX Display or list number of files in a current directory | raj | Getting started tutorials | 1 | 07-12-2007 10:55 AM |
| Display Linux kernel information | sweta | Getting started tutorials | 0 | 27-07-2007 07:00 AM |
| SuSe 10.0 doesn't recognize dual processors | lacloai | Linux software | 6 | 21-07-2007 11:55 PM |