URN Logo
UNIX Resources » Linux » Linux Forum » Linux Motherboard, Chipsets, CPU, Memory » Page.1 » My "top" comand shows 4 cpus...is this correct?
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
My "top" comand shows 4 cpus...is this correct?
Subject: My "top" comand shows 4 cpus...is this correct?
Author: photo312    Posted: 2006-10-19 10:22:34    Length: 2,591 byte(s)
[Original] [Print] [Top]
Here is the output of my "top" command on :

Linux earth.domain.com 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686 i686 i386 GNU/Linux
 

11:17:53  up 46 days,  5:55,  4 users,  load average: 0.10, 0.19, 0.27
138 processes: 137 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  cpu    user    nice  system    irq  softirq  iowait    idle
           total    5.7%    0.0%    3.3%   0.0%     0.0%    0.2%   90.6%
           cpu00    7.3%    0.0%    2.7%   0.0%     0.0%    0.1%   89.6%
           cpu01    5.3%    0.0%    5.5%   0.0%     0.0%    0.3%   88.6%
           cpu02    3.5%    0.0%    2.3%   0.0%     0.0%    0.1%   93.8%
           cpu03    6.5%    0.0%    2.5%   0.0%     0.0%    0.1%   90.6%
Mem:  2055424k av, 2021780k used,   33644k free,       0k shrd,  313208k buff
                   1253468k actv,  229072k in_d,   30880k in_c
Swap: 2096376k av,       0k used, 2096376k free                  925672k cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
18604 apache    16   0 16080  15M  5012 S     1.8  0.7   0:18   0 httpd
31229 apache    16   0 15280  14M  4992 S     1.1  0.7   0:21   3 httpd
25015 apache    16   0 14300  13M  4584 S     1.0  0.6   0:08   2 httpd
18577 apache    15   0 15940  15M  4612 S     0.1  0.7   0:15   1 httpd
 


 

how many CPUs do I have?
[Original] [Print] [Top]
Subject: Re: My "top" comand shows 4 cpus...is this correct?
Author: pa4wdh    Posted: 2006-10-19 11:19:02    Length: 1,443 byte(s)
[Original] [Print] [Top]
Hi,

There are three options:
1) You have a quad CPU system
2) You have a dual CPU system with hyperthreading
3) You have one dual core CPU with hyperthreading (but i'm not sure if this exists)

If your system is an ordinary desktop, i don't think 1 is correct. 2 could be correct if you're a real die hard tweaker, or your system is an ex-server system. 3 might be the case if you just bought a new system.

One part of the puzzle might be solved by checking /proc/cpuinfo. Open a terminal and give the command cat /proc/cpuinfo .

If you look at the flags, there is a list of abbriviations there. If you see ht there (short for hyperthreading), you have hypertheading, and should devide the number of cpu's to get the number of cores in your system.

There are two interesting lines there: one called "model name" and one called "flags". The model name contais the info of the processor name, if it's an intel D processor or core 2 duo system, it's a dual core (and in that case 2 cores is one physical cpu on the board).

So if (for example) you processor is a pentium D and you see the HT flag, there's one CPU in the system (one CPU with 2 cores, and both are acting as two to the OS because of hyperthreading).

In unsure post the output of /proc/cpuinfo here.

Best regards,
pa4wdh
----
The biggest difference between M$ stuff and the rest ? Most stuff is secure by design, M$ stuff is secure by accident.

bash# killall gaim
killall: Don't shoot the messenger !

If we have /dev/powerbutton, what would touch /dev/powerbutton do ?
[Original] [Print] [Top]
Subject: Re: My "top" comand shows 4 cpus...is this correct?
Author: photo312    Posted: 2006-10-19 11:52:46    Length: 4,736 byte(s)
[Original] [Print] [Top]
here is what it says:

 cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Xeon(TM) CPU 2.80GHz
stepping        : 5
cpu MHz         : 2800.147
cache size      : 512 KB
physical id     : 0
siblings        : 2
runqueue        : 0
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 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips        : 5583.66

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Xeon(TM) CPU 2.80GHz
stepping        : 5
cpu MHz         : 2800.147
cache size      : 512 KB
physical id     : 0
siblings        : 2
runqueue        : 0
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 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips        : 5596.77

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Xeon(TM) CPU 2.80GHz
stepping        : 5
cpu MHz         : 2800.147
cache size      : 512 KB
physical id     : 3
siblings        : 2
runqueue        : 2
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 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips        : 5596.77

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Xeon(TM) CPU 2.80GHz
stepping        : 5
cpu MHz         : 2800.147
cache size      : 512 KB
physical id     : 3
siblings        : 2
runqueue        : 2
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 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips        : 5596.77




so what does this mean?
[Original] [Print] [Top]
Subject: Re: My "top" comand shows 4 cpus...is this correct?
Author: pa4wdh    Posted: 2006-10-19 13:41:01    Length: 301 byte(s)
[Original] [Print] [Top]
As far as i know, Xeon is not available in dual core version, and the flags list ht, so there are two physical CPU's in your system, but hyperthreading makes it look like 4.

It also means that it's quite a good machine :-) (Well, as far as i can see from the processor specs :-) )
----
The biggest difference between M$ stuff and the rest ? Most stuff is secure by design, M$ stuff is secure by accident.

bash# killall gaim
killall: Don't shoot the messenger !

If we have /dev/powerbutton, what would touch /dev/powerbutton do ?
[Original] [Print] [Top]
« Previous thread
Booting Two Seperate Hard Disks
Linux Motherboard, Chipsets, CPU, Memory
Page. 1
Next thread »
SUSE Linux with AMD Athlon 64 X2
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 11:59:48, cost 0.030498027801514 ms.