LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-14-2003, 03:53 AM   #1
TongueTied
Member
 
Registered: Aug 2003
Distribution: SuSE 8.1 pro
Posts: 94

Rep: Reputation: 15
Should I add a second processor? Is it worth it?


I have the opportunity to add a second processor to my linux server and was wondering if it was worth doing. My server is the primary domain controller for a network of about 6 client machines. It servers as the file server, internet gateway, print server, mail server and intranet server for the network. I am not running any server based applications. It is a Dell 1400 server that is dual processor capable but when I bought it I only got one processor. I am running hardware Raid on a series of scsi drives so I donít think drive access would be affected. Now I have the opportunity to put in a second one if I want but was wondering if anyone could advise:

1 Can Linux accommodate multiple processors? I heard it can support up to 4 processors, is this correct?
2 Iím using SuSE 8.1 Pro (kernel 2.4.19), can I simply drop in another processor or do I have to recompile the kernel or reinstall?
3 What benefit does Linux get from a multi processor system over a single processor system?
4 Considering what the server does, is it worth bothering with and would I be better off adding more ram?
 
Old 09-14-2003, 05:55 AM   #2
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
If you want to use multiple processors, I think you have to have a kernel compiled with symmetric multi-processing support compiled in. This is under "processor type and features" in menuconfig.
 
Old 09-14-2003, 10:37 AM   #3
quantumechanix
Member
 
Registered: Jan 2003
Posts: 47

Rep: Reputation: 15
i think ram is the easiest solution to pep up any computer. but, what processor do you currently have in it, and how much ram do you have and how much can the computer hold? also, the processors have to be the same in a multiprocessor system (you prob knew that). i agree with vasudevadas, smp is required and i don't think that is a simple rpm package. i think you'd possibly be looking at a kernel recompile. i'd like to know what you figure out though.
 
Old 09-14-2003, 09:05 PM   #4
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
Linux does scale above 4 CPU's, but it gets less and less worthwhile as you add more... here's a decent explanation:

http://groups.google.ca/groups?q=lin....uio.no&rnum=1

B.
 
Old 09-14-2003, 09:26 PM   #5
TongueTied
Member
 
Registered: Aug 2003
Distribution: SuSE 8.1 pro
Posts: 94

Original Poster
Rep: Reputation: 15
Please excuse the stupid question but how can I tell is smp is enabled? I donít seem to have a menuconfig file and canít find any reference to smp in any of the information or config files.
 
Old 09-14-2003, 09:30 PM   #6
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
type "dmesg | grep -i cpu" and see if there's a cpu0 and cpu1, or two cpu entries that are not the same # after. If dmesg shows 2 cpu's initialized, then SMP is enabled. Some Asus motherboards required disabling stuff in the BIOS or SMP kernels crash.

HTH

B.
 
Old 09-14-2003, 09:46 PM   #7
TongueTied
Member
 
Registered: Aug 2003
Distribution: SuSE 8.1 pro
Posts: 94

Original Poster
Rep: Reputation: 15
Here is what I got:

Initializing CPU#0
CPU: Before vendor init, caps: 0383fbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After vendor init, caps: 0383fbff 00000000 00000000 00000000
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383fbff 00000000 00000000 00000000
CPU: Common caps: 0383fbff 00000000 00000000 00000000
CPU: Intel Pentium III (Coppermine) stepping 06
cpu cycle saver enabled


So I guess smp is not enabled. Correct?

As you can cpu is a rather old PIII 800 Coppermine. A guy has offered to source another one the same for me if I want. Hence my questions.

I only have 128meg Ram on the system which is probably a bit low and should be increased.
 
Old 09-18-2003, 10:30 AM   #8
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
You have to boot an SMP kernel. For distros like RH, when you install it detects whether or not you can use SMP, and installs an SMP kernel alongside your default one, which you can choose in lilo (there will be an entry "Linux", and one "Linux-UP". UP is Uni Processor, or "No SMP").

Here's what dmesg | grep -i cpu returns on my dual P3-1gHz RedHat box.

Initializing CPU#0
CPU: Before vendor init, caps: 0383fbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After vendor init, caps: 0383fbff 00000000 00000000 00000000
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383fbff 00000000 00000000 00000000
CPU: Common caps: 0383fbff 00000000 00000000 00000000
CPU: Before vendor init, caps: 0383fbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After vendor init, caps: 0383fbff 00000000 00000000 00000000
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0383fbff 00000000 00000000 00000000
CPU: Common caps: 0383fbff 00000000 00000000 00000000
CPU0: Intel Pentium III (Coppermine) stepping 0a
per-CPU timeslice cutoff: 731.82 usecs.
enabled ExtINT on CPU#0
Initializing CPU#1
masked ExtINT on CPU#1
CPU: Before vendor init, caps: 0383fbff 00000000 00000000, vendor = 0
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After vendor init, caps: 0383fbff 00000000 00000000 00000000
Intel machine check reporting enabled on CPU#1.
CPU: After generic, caps: 0383fbff 00000000 00000000 00000000
CPU: Common caps: 0383fbff 00000000 00000000 00000000
CPU1: Intel Pentium III (Coppermine) stepping 0a
..... CPU clock speed is 1004.5353 MHz.
cpu: 0, clocks: 1339379, slice: 446459
CPU0<T0:1339376,T1:892912,D:5,S:446459,C:1339379>
cpu: 1, clocks: 1339379, slice: 446459
CPU1<T0:1339376,T1:446448,D:10,S:446459,C:1339379>
checking TSC synchronization across CPUs: passed.

HTH

B.
 
  


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
Is it worth the extra $ for a 64bit processor? tomj88 Linux - Hardware 8 06-15-2005 09:39 PM
Add second processor - reinstall Fedora? vervet Linux - Hardware 5 09-12-2004 08:45 PM
Procedure to add a second processor chicko007 Linux - Networking 4 04-07-2004 04:54 PM
xinetd 100% utilization on one processor on a two processor system red hat 9 garnold Linux - General 0 02-02-2004 01:47 PM
add 2nd Processor adamj Linux - General 2 03-11-2002 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:41 AM.

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