LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-22-2005, 01:43 AM   #1
doctorcisco
Member
 
Registered: Nov 2003
Posts: 70

Rep: Reputation: 17
2-CPU System -- How Do I Tell If Both Are Being Used


Dumb question: I'm installing Debian testing with a 2.6 stock kernel on an old Proliant server with 2 P3's. Is there a way to tell from the command line if both CPU's are being used?

Thanks,
Doc
 
Old 06-22-2005, 01:51 AM   #2
Kdr Kane
Member
 
Registered: Jan 2005
Distribution: SUSE, LFS
Posts: 357

Rep: Reputation: 30
Use the command:

top
 
Old 06-22-2005, 09:19 AM   #3
doctorcisco
Member
 
Registered: Nov 2003
Posts: 70

Original Poster
Rep: Reputation: 17
top tells me what's running, what's consuming clock cycles and memory, etc., but I don't see where it tells me how many CPU's the kernel thinks it has available for use. I'm probably missing something?

doc
 
Old 06-22-2005, 07:39 PM   #4
doctorcisco
Member
 
Registered: Nov 2003
Posts: 70

Original Poster
Rep: Reputation: 17
For future reference, dmesg is the command, here's the top of the output:

doctorcisco@hisdebianbox:~$ dmesg
Linux version 2.6.8-2-386 (dilinger@toaster.hq.voxel.net) (gcc version 3.3.5 (Debian 1:3.3.5-6)) #1 Mon Jan 24 03:01:58 EST 2005
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000003fffc000 (usable)
BIOS-e820: 000000003fffc000 - 0000000040000000 (ACPI data)
BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee10000 (reserved)
BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
Warning only 896MB will be used.
Use a HIGHMEM enabled kernel.
896MB LOWMEM available.
found SMP MP-table at 000f4ff0
On node 0 totalpages: 229376
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 225280 pages, LIFO batch:16
HighMem zone: 0 pages, LIFO batch:1
DMI not present.
ACPI: RSDP (v000 COMPAQ ) @ 0x000f4fd0
>>> ERROR: Invalid checksum
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
OEM ID: COMPAQ Product ID: PROLIANT APIC at: 0xFEE00000
Processor #1 6:7 APIC version 16
Processor #0 6:7 APIC version 16
WARNING: NR_CPUS limit of 1 reached. Processor ignored.

Back to the drawing board ......

doc
 
Old 06-22-2005, 08:17 PM   #5
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Is that stock kernel an smp kernel?
 
Old 06-22-2005, 08:41 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
Check out gkrellm. It is a gui app that can display the processor usage. If more than one it will display both cpus in seperate boxes.

Brian1
 
Old 06-23-2005, 01:42 AM   #7
thandermax
Member
 
Registered: Jun 2005
Distribution: OpenSUSE 10.3 , 11.2 , Solaris 10, Ubuntu 9.10
Posts: 84

Rep: Reputation: 16
Talking Try using cat command

Try running command "cat /proc/cpuinfo"
 
Old 06-23-2005, 02:04 AM   #8
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
The utility top does tell you that there are two cpus or more. Processes that have /0 or /1 will be shown. These processes are kernel related. Not all programs are designed with multi-threading, so both processors will not be used for those programs.
 
Old 06-23-2005, 12:57 PM   #9
doctorcisco
Member
 
Registered: Nov 2003
Posts: 70

Original Poster
Rep: Reputation: 17
user@doctorcisco# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 598.375
cache size : 512 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 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips : 1179.64

So only 1 CPU being used. Stumbled around the web for a bit, and the fix was:

apt-get install kernel-image-2.6.8-2-686-smp

Now it shows:

user@doctorcisco# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 598.192
cache size : 512 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 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips : 1179.64

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 598.192
cache size : 512 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 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips : 1191.93

And yes, now I see /0 and /1 in top. Thanks for the help guys!

Now if I can just figure out the Compaq problem with the drive array, this thing will be ready to do its stuff! (The OS is on a 9-gig drive. There are 2 18 gig drives configured in a hardware RAID 1 pair in the Compaq 3200 drive array controller. Unfortunately, when you boot the box, it says it needs to recover data to one of the drives. It does that in the background for a couple of hours, and then the indicator light on one of the 18 gig drives goes amber, and it wants to recover data again at reboot. Seems to be a Compaq thing, not a Linux thing. The /home file system on the drive pair works fine, but it doesn't appear that the hardware RAID is healthy. However, the Compaq diagnostic CD says the hardware is fine, and the drive is ready for data recovery. But, of course, when it runs data recovery, we're back to the beginning of the cycle. Sigh.)

doc
 
Old 06-24-2005, 05:10 PM   #10
thandermax
Member
 
Registered: Jun 2005
Distribution: OpenSUSE 10.3 , 11.2 , Solaris 10, Ubuntu 9.10
Posts: 84

Rep: Reputation: 16
Exclamation Check this out

The RPM Given by Doc is usefull

as my HyperTherading P4 CPU is showing only "one " CPU !

Gonna try the rpm


I heard that Red Hat Enterprise Linux v.4 supports upto 32 CPU and HT, that's great but it's not free! View at www.redhat.com

But When will that upgrade of the KERNEL will be available in general public ????? (it uses 2.6.11 KERNEL but it is custom patched and hacked! )
 
Old 06-24-2005, 05:35 PM   #11
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You need SMP enabled in the kernel to use hyperthreading.
 
Old 06-24-2005, 05:37 PM   #12
thandermax
Member
 
Registered: Jun 2005
Distribution: OpenSUSE 10.3 , 11.2 , Solaris 10, Ubuntu 9.10
Posts: 84

Rep: Reputation: 16
How to ?

How to enable SMP ?

Can you help me?
 
Old 06-24-2005, 08:20 PM   #13
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The RHEL kernel sources are available and used by the free RHEL clones such as CentOS. You just need to install the Fedora Core SMP kernel (it will be on your install CDs or you can yum it).
 
Old 06-25-2005, 01:23 PM   #14
thandermax
Member
 
Registered: Jun 2005
Distribution: OpenSUSE 10.3 , 11.2 , Solaris 10, Ubuntu 9.10
Posts: 84

Rep: Reputation: 16
Sorry

Got already an SMP Kernel image in "/boot" directory. I didn't check it, now it is done , got two cpu back!

Thanks as I don't know about SMP kernel .

Can any body tell me what the SMP is really about ? is it S.Multi Processor ?
 
Old 06-25-2005, 03:41 PM   #15
thandermax
Member
 
Registered: Jun 2005
Distribution: OpenSUSE 10.3 , 11.2 , Solaris 10, Ubuntu 9.10
Posts: 84

Rep: Reputation: 16
See the thread for details aboutSystem Information at

"Details about /proc directory "
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Process System cpu rajesht Linux - General 1 05-19-2005 10:16 AM
Why do I have a High System CPU Usage Bottleneck linuxboy69 Linux - Software 3 09-02-2004 04:55 PM
FC2 Installer reboots on system with Via C3 CPU Ed-MtnBiker Fedora 4 05-25-2004 11:16 PM
Cannot start system (X?) after replacing motherboard and CPU J_Szucs Linux - General 3 10-17-2003 06:41 AM
How do I move existing system to new CPU? dnbrown Linux - Software 6 02-10-2003 04:52 PM


All times are GMT -5. The time now is 04:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration