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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
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:
cheers
__________________
Raj Linux rulz. I have never turned back in my life ; I shall not do so today.. haha |
|
|||
|
Quote:
Thanx for that point raj
__________________
LivE Free 0r DiE L!nux rul3z aLL |
|
|||
|
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 |
![]() |
| Bookmarks |
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 | 01-19-2008 04:12 PM |
| Script to display number of lines and words from a file | newbewie | Shell scripting | 2 | 12-07-2007 11:37 PM |
| UNIX Display or list number of files in a current directory | raj | Getting started tutorials | 1 | 12-07-2007 11:55 AM |
| Display Linux kernel information | sweta | Getting started tutorials | 0 | 07-27-2007 08:00 AM |
| SuSe 10.0 doesn't recognize dual processors | lacloai | Linux software | 6 | 07-22-2007 12:55 AM |