LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-03-2005, 05:40 AM   #1
cing
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Rep: Reputation: 0
how i check my multicpu


Quote:
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 2.40GHz
stepping : 9
cpu MHz : 2400.182
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips : 4751.36

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 2.40GHz
stepping : 9
cpu MHz : 2400.182
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips : 4784.12

processor : 2
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 2.40GHz
stepping : 5
cpu MHz : 2400.182
cache size : 512 KB
physical id : 3
siblings : 2
core id : 3
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips : 4784.12

processor : 3
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 2.40GHz
stepping : 5
cpu MHz : 2400.182
cache size : 512 KB
physical id : 3
siblings : 2
core id : 3
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips : 4784.12
question
1. how many process run on each CPU
2. i have only 2 pysical cpu why i /proc/cpuinfo show 0-3 CPU
that mean i have 4 CPU ?

my server HP DL140

thanks advance
 
Old 11-03-2005, 06:23 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
if you run top, it will show all the processes and have a number at the end. That shows which process is on CPU0 and which is on CPU1.

My guess is the kernel was compiled with SMP and the number specified was 4. Just a guess though.
 
Old 11-03-2005, 07:17 AM   #3
cing
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
top - 20:14:10 up 5:56, 2 users, load average: 1.54, 1.54, 1.37
Tasks: 233 total, 3 running, 230 sleeping, 0 stopped, 0 zombie
Cpu(s): 39.6% us, 3.2% sy, 0.0% ni, 55.2% id, 1.6% wa, 0.0% hi, 0.4% si
Mem: 1554704k total, 1510572k used, 44132k free, 389956k buffers
Swap: 1052216k total, 780k used, 1051436k free, 740004k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6442 apache 15 0 29968 16m 8332 S 7.6 1.1 0:01.75 httpd
6515 apache 15 0 30012 16m 8360 S 5.6 1.1 0:00.71 httpd
6529 apache 15 0 30144 16m 8380 S 5.3 1.1 0:01.25 httpd
6253 apache 15 0 30104 16m 8396 S 5.0 1.1 0:02.53 httpd
6357 apache 15 0 30028 16m 8380 S 4.3 1.1 0:01.67 httpd
5986 apache 16 0 30444 17m 8508 S 4.0 1.1 0:02.42 httpd
5175 apache 15 0 30412 17m 8400 S 3.3 1.1 0:05.46 httpd
6524 apache 16 0 29964 16m 8328 S 3.0 1.1 0:01.15 httpd
6526 apache 15 0 29868 16m 8332 S 3.0 1.1 0:00.74 httpd
5588 apache 15 0 30248 16m 8356 S 2.7 1.1 0:04.37 httpd
5760 apache 16 0 29988 16m 8388 S 2.7 1.1 0:02.82 httpd
5156 apache 16 0 37560 22m 8608 S 2.0 1.5 0:05.73 httpd
6447 apache 16 0 29952 16m 8320 R 2.0 1.1 0:01.08 httpd
6528 apache 16 0 29856 16m 8268 S 2.0 1.1 0:00.57 httpd
6637 apache 16 0 30012 16m 8260 S 2.0 1.1 0:00.34 httpd
4076 mysql 15 0 234m 45m 2564 S 1.7 3.0 0:09.95 mysqld
4955 apache 15 0 30268 17m 8524 S 1.3 1.1 0:05.12 httpd
5181 apache 15 0 31360 18m 8356 S 1.3 1.2 0:03.83 httpd
5186 apache 15 0 30248 16m 8408 S 1.3 1.1 0:04.42 httpd
5249 apache 15 0 30040 16m 8408 S 1.3 1.1 0:04.07 httpd
5996 apache 16 0 29888 16m 8364 S 1.3 1.1 0:02.33 httpd
6513 apache 15 0 30212 16m 8352 S 1.3 1.1 0:00.76 httpd
4993 apache 16 0 29980 16m 8408 S 1.0 1.1 0:05.02 httpd
5340 apache 16 0 30116 16m 8408 S 1.0 1.1 0:03.91 httpd
5776 apache 16 0 30228 16m 8380 S 1.0 1.1 0:03.67 httpd
6445 apache 15 0 30104 16m 8372 S 1.0 1.1 0:01.40 httpd
6639 apache 16 0 30220 16m 8316 S 1.0 1.1 0:00.93 httpd
5250 apache 15 0 30020 16m 8408 S 0.7 1.1 0:03.74 httpd
5410 mysql 16 0 234m 45m 2564 S 0.7 3.0 0:04.95 mysqld
6377 apache 15 0 30064 16m 8356 S 0.7 1.1 0:01.37 httpd
6457 apache 16 0 30044 16m 8316 S 0.7 1.1 0:00.79 httpd
6647 apache 16 0 29884 16m 8320 S 0.7 1.1 0:00.43 httpd
6666 root 16 0 2156 1084 784 R 0.7 0.1 0:00.38 top
6675 mysql 16 0 234m 45m 2564 S 0.7 3.0 0:00.28 mysqld
this from top commnad
not show All CPU
this from uname -a
Quote:
Linux xxx.Com 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT 2005 i686 i686 i386 GNU/Linux
i think use SMP already
 
Old 12-06-2005, 03:27 PM   #4
tjugo
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
You have HT enabled in your cpus. You have 2 physical threads and 4 logical threads.

It is OK that your Kernel is compiled for SMP regardless if you want HT.

Last edited by tjugo; 12-06-2005 at 03:29 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition check, check double check Vincentius Linux - General 0 12-25-2004 05:47 AM
Media Check= FAIL - MDSUMs Check out tgrier Linux - Newbie 6 11-26-2004 10:07 PM
ATI's drivers -- How do I check... (check.sh) onthos Linux - Hardware 3 08-20-2004 05:05 PM
gcc-3.3.1 make -k check - make [check] Error 2 BarryM45 Linux From Scratch 1 02-05-2004 08:44 AM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration