Help With Quad CPU's

Discussion in 'Kernel Questions' started by FallenDevil, Nov 19, 2006.

  1. FallenDevil

    FallenDevil New Member

    Hi, I am having difficulties getting my distro (Fedora core 4) to see and use all 4 CPU's.
    As far as i can tell it's only seeing and using 1.

    I have kernel-2.6.11 installed and it is setup as SMP.
    if i do "uname" i just get "Linux"
    i thought i would have got "Linux-smp" or something like.

    I have looked at the KinfoCentre , and it only shows CPU0, not CPU0 - 3??

    I need to know if there is a command i can run to show how many CPU's are detected and in use.

    Any help appreciated.

    Thanks in advance.

    FD
     
  2. edge

    edge Active Member Moderator

    Try this:

    Code:
    uname -a
    This should give you something like:
    Linux host.domain.tld 2.6.15-3-686-smp #1 SMP Thu Sep 32 04:39:15 UTC 2008 i686 GNU/Linux

    You can also do a:
    Code:
    cat /proc/cpuinfo
    An other thing that you can do is a
    Code:
    top
    and than press 1 to enable/disable the view of the other CPU's
     
    Last edited: Nov 20, 2006
  3. FallenDevil

    FallenDevil New Member

    Thanks - but...........

    Thanks for the responce Edge.

    This is the output of the /proc/cpuinfo

    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 7
    model name : Pentium III (Katmai)
    stepping : 3
    cpu MHz : 499.939
    cache size : 1024 KB
    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 mtrr pge mca cmov pat pse36 mmx fxsr sse up
    bogomips : 1001.71


    Again only CPU0??

    also you were right about the -a on the uname - thanks again.

    if i do a top - then i only see 1 CPU and if i press 1 the all that i see change is the wording changes to CPU(s) from CPU0.

    Extract

    top - 13:56:09 up 3:36, 3 users, load average: 0.34, 0.43, 0.28
    Tasks: 91 total, 2 running, 88 sleeping, 0 stopped, 1 zombie
    Cpu0 : 14.6% us, 2.1% sy, 0.2% ni, 82.9% id, 0.0% wa, 0.1% hi, 0.0% si
    Mem: 385024k total, 352372k used, 32652k free, 31840k buffers
    Swap: 1048552k total, 0k used, 1048552k free, 171480k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    2192 root 15 0 110m 35m 5232 S 3.3 9.5 3:34.41 X
    2853 root 16 0 31440 15m 13m R 2.3 4.2 0:07.79 konsole
    4379 root 15 0 2016 1000 788 R 0.7 0.3 0:05.42 top
    2391 root 15 0 30876 13m 9752 S 0.3 3.5 0:05.20 kwin
    1 root 15 0 1748 568 492 S 0.0 0.1 0:00.96 init
    2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
    3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
    4 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
    5 root 10 -5 0 0 0 S 0.0 0.0 0:00.09 events/0
    6 root 14 -5 0 0 0 S 0.0 0.0 0:00.02 khelper
    7 root 10 -5 0 0 0 S 0.0 0.0 0:00.01 kthread
    9 root 10 -5 0 0 0 S 0.0 0.0 0:00.01 kblockd/0
    12 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
    14 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
    85 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
    86 root 15 0 0 0 0 S 0.0 0.0 0:00.03 pdflush
    87 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0
    88 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
    242 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kpsmoused
    277 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
    314 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
    354 root 10 -5 0 0 0 S 0.0 0.0 0:00.22 kjournald
    811 root 16 -4 1640 544 468 S 0.0 0.1 0:00.20 udevd
    854 root 25 0 0 0 0 S 0.0 0.0 0:00.00 phpd_event
    990 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald
    995 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald
    1307 root 15 0 2184 552 260 S 0.0 0.1 0:00.02 dhclient
    1412 root 15 0 1620 560 468 S 0.0 0.1 0:00.09 syslogd
    1414 root 15 0 1568 388 324 S 0.0 0.1 0:00.01 klogd
    1424 rpc 16 0 1700 536 440 S 0.0 0.1 0:00.00 portmap
    1442 rpcuser 24 0 1748 708 612 S 0.0 0.2 0:00.01 rpc.statd
    1456 root 13 -3 11908 448 348 S 0.0 0.1 0:00.00 auditd
    1460 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kauditd


    WITH 1 PRESSED EXTRACT

    top - 13:57:01 up 3:37, 3 users, load average: 0.31, 0.42, 0.28
    Tasks: 91 total, 2 running, 88 sleeping, 0 stopped, 1 zombie
    Cpu(s): 3.6% us, 0.3% sy, 0.0% ni, 96.0% id, 0.0% wa, 0.0% hi, 0.0% si
    Mem: 385024k total, 352148k used, 32876k free, 31848k buffers
    Swap: 1048552k total, 0k used, 1048552k free, 171472k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    2192 root 15 0 110m 35m 5232 S 2.3 9.5 3:39.18 X
    2853 root 15 0 31440 15m 13m S 1.0 4.2 0:08.24 konsole
    4583 root 15 0 2016 992 784 R 1.0 0.3 0:00.06 top
    2393 root 15 0 38988 18m 14m S 0.3 5.0 0:06.08 kdesktop
    1 root 15 0 1748 568 492 S 0.0 0.1 0:00.96 init
    2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
    3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
    4 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
    5 root 10 -5 0 0 0 S 0.0 0.0 0:00.09 events/0
    6 root 14 -5 0 0 0 S 0.0 0.0 0:00.02 khelper
    7 root 10 -5 0 0 0 S 0.0 0.0 0:00.01 kthread
    9 root 10 -5 0 0 0 S 0.0 0.0 0:00.01 kblockd/0
    12 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
    14 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
    85 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
    86 root 15 0 0 0 0 S 0.0 0.0 0:00.03 pdflush
    87 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0
    88 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
    242 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kpsmoused
    277 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
    314 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
    354 root 10 -5 0 0 0 S 0.0 0.0 0:00.22 kjournald
    811 root 16 -4 1640 544 468 S 0.0 0.1 0:00.20 udevd
    854 root 25 0 0 0 0 S 0.0 0.0 0:00.00 phpd_event
    990 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald
    995 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald
    1307 root 15 0 2184 552 260 S 0.0 0.1 0:00.02 dhclient
    1412 root 16 0 1620 560 468 S 0.0 0.1 0:00.09 syslogd
    1414 root 15 0 1568 388 324 S 0.0 0.1 0:00.01 klogd
    1424 rpc 16 0 1700 536 440 S 0.0 0.1 0:00.00 portmap
    1442 rpcuser 24 0 1748 708 612 S 0.0 0.2 0:00.01 rpc.statd
    1456 root 13 -3 11908 448 348 S 0.0 0.1 0:00.00 auditd
    1460 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kauditd


    Thanks again - I need :confused: some more help?
     
  4. edge

    edge Active Member Moderator

    What is the output of: uname -a
     
  5. FallenDevil

    FallenDevil New Member

    Linux FireWall.Home.Local 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 i686 i386 GNU/Linux

    I take it the #1 SMP = 1 CPU ????

    Thanks
     
  6. falko

    falko Super Moderator ISPConfig Developer

    We have a processor with two cores and had to install a kernel newer than 2.6.12. Your kernel version seems new enough, but maybe quad core support came in a later version? :confused:

    You can search for other available kernels like this:
    Code:
    yum search kernel
    It's also possible that you can enable support for your four cores somewhere in /etc/sysconfig...
     
  7. edge

    edge Active Member Moderator

    Or... Did you disable the "hyper threading" in the BIOS?


    re: I take it the #1 SMP = 1 CPU ????

    No. I have this also, and for me it's showing all 4 CPU's
     
  8. FallenDevil

    FallenDevil New Member

    Still on the go

    Sorry for the delay guys! the box mainboard went down and i had to source another.

    I am Running on a quad 500 PIII Compaq Server.

    On startup all 4 CPU's are shown in post.

    they are all enabled and i have rebuilt the box so many times with different fedora ditros that i've lost count.

    any more help appreciated.:confused:
     
    Last edited: Nov 26, 2006
  9. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -l /etc/sysconfig
    and
    Code:
    grep SMP /boot/config-`uname -r`
    ?
     
  10. FallenDevil

    FallenDevil New Member

    Update

    Thanks Falko, I appreciate your help and time.

    Just an update...........

    I have compiled a new kernel for my system and now the outputs are.....

    1) uname -r
    2.6.18-custom-2.6.18.2

    2) uname -a
    Linux Firewall.home.local 2.6.18-custom-2.6.18.2 #4 SMP Fri Nov 24 11:24:41 GMT 2006 i686 i686 i386 GNU/Linux

    3) cat /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 7
    model name : Pentium III (Katmai)
    stepping : 3
    cpu MHz : 499.865
    cache size : 1024 KB
    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 mtrr pge mca cmov pat pse36 mmx fxsr sse up
    bogomips : 1000.85


    4) ls -l /etc/sysconfig
    total 372
    -rw-r--r-- 1 root root 4765 Aug 22 14:55 apmd
    drwxr-xr-x 2 root root 4096 Nov 23 10:05 apm-scripts
    -rw-r--r-- 1 root root 245 Nov 23 11:02 authconfig
    -rw-r--r-- 1 root root 1313 Nov 8 04:53 autofs
    -rw-r--r-- 1 root root 232 Oct 2 23:40 bluetooth
    drwxr-xr-x 2 root root 4096 Nov 23 09:58 cbq
    -rw-r--r-- 1 root root 178 Nov 23 18:26 clock
    drwxr-xr-x 2 root root 4096 Nov 1 22:00 console
    -rw-r--r-- 1 root root 512 Sep 5 13:14 crond
    -rw-r--r-- 1 root root 0 Nov 23 11:02 desktop
    -rw-r--r-- 1 root root 3173 Jul 12 08:50 diskdump
    -rw-r--r-- 1 root root 31 Oct 2 23:40 dund
    -rw-r--r-- 1 root root 17 Nov 23 18:26 firstboot
    -rw-r--r-- 1 root root 30 Nov 23 11:02 grub
    -rw-r--r-- 1 root root 20 Oct 2 23:40 hidd
    -rw-r--r-- 1 root root 616 Sep 11 14:44 httpd
    -rw-r--r-- 1 root root 4891 Nov 24 13:56 hwconf
    -rw-r--r-- 1 root root 47 Nov 23 11:02 i18n
    -rw-r--r-- 1 root root 1068 Jul 21 16:33 init
    -rw------- 1 root root 1753 Jul 14 01:19 ip6tables-config
    -rwxr-xr-x 1 root root 4570 Nov 23 18:32 iptables
    -rw-r--r-- 1 root root 1780 Nov 23 11:10 iptables-config
    -rw-r--r-- 1 root root 58 Aug 1 13:47 irda
    -rw-r--r-- 1 root root 358 Sep 13 19:07 irqbalance
    -rw-r--r-- 1 root root 180 Nov 23 19:44 kernel
    -rw-r--r-- 1 root root 32 Nov 23 11:02 keyboard
    -rw-r--r-- 1 root root 168 Oct 1 21:25 kudzu
    -rw-r--r-- 1 root root 134 Jul 13 07:23 lm_sensors
    drwxr-xr-x 2 root root 4096 Nov 1 22:00 modules
    -rw-r----- 1 root named 1587 Nov 23 20:00 named
    -rw-r--r-- 1 root root 1940 Jul 13 21:18 netdump
    -rw------- 1 root root 668 Nov 23 10:05 netdump_id_dsa
    -rw-r--r-- 1 root root 616 Nov 23 10:05 netdump_id_dsa.pub
    -rw-r--r-- 1 root root 64 Nov 23 09:53 network
    drwxr-xr-x 4 root root 4096 Nov 1 22:00 networking
    drwxr-xr-x 2 root root 4096 Nov 23 19:22 network-scripts
    -rw-r--r-- 1 root root 156 Aug 18 14:04 ntpd
    -rw-r--r-- 1 root root 71 Oct 2 23:40 pand
    -rw-r--r-- 1 root root 1459 Nov 23 2004 prelink
    -rw-r--r-- 1 root root 544 Oct 4 22:53 readonly-root
    -rw-r--r-- 1 root root 111 Sep 2 03:59 samba
    -rw-r--r-- 1 root root 433 Sep 29 22:14 saslauthd
    lrwxrwxrwx 1 root root 17 Nov 23 10:02 selinux -> ../selinux/config
    -rw-r--r-- 1 root root 20 Sep 5 14:27 sendmail
    -rw-r--r-- 1 root root 57 Aug 18 21:53 smartmontools
    -rw-r--r-- 1 root root 47 Aug 2 18:44 spamassassin
    -rw-r--r-- 1 root root 297 Nov 7 16:34 squid
    -rw-r--r-- 1 root root 610 Sep 13 11:52 syslog
    -rw-r--r-- 1 root root 93 Nov 23 11:10 system-config-securitylevel
    -rw-r--r-- 1 root root 304 Oct 14 11:13 system-config-users
    -rw-r--r-- 1 root root 1750 Aug 23 10:41 tux
    -rw-r--r-- 1 root root 847 Nov 15 18:00 vncservers
    -rw-r--r-- 1 root root 152 Oct 27 20:35 wpa_supplicant

    5) grep SMP /boot/config-2.6.18-custom-2.6.18.2
    CONFIG_SMP=y
    # CONFIG_X86_BIGSMP is not set
    CONFIG_SUSPEND_SMP=y
    CONFIG_X86_FIND_SMP_CONFIG=y
    CONFIG_X86_SMP=y

    I believe that when using TOP and pressing the 1 key it should cycle through the CPU's - mine only goes from CPU(s) > CPU0

    I hope this is enough to give you an idea of whats wrong Falko
     
  11. falko

    falko Super Moderator ISPConfig Developer

    I'm not sure, but maybe you must set
    Code:
    CONFIG_X86_BIGSMP=y
    with
    Code:
    make menuconfig
    when you compile a new kernel.
     
  12. FallenDevil

    FallenDevil New Member

    I will give it a try bud, thanks for the reply.

    Steve
     

Share This Page