LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-02-2002, 09:21 PM   #1
El Kid
Member
 
Registered: Sep 2002
Posts: 50

Rep: Reputation: 15
Dual CPU Linux?


I've just purchased an old Dell 410 workstation with two 400mhz PII. I know that programs need to be dual cpu "aware" if they are to utilize both cpu's. My question is this: Are linux programs (as they come from Mandrake or RedHat for example) dual cpu aware? and If I compile a program from source on my dual cpu system, will it then be dual cpu aware and utilize both cpu's?

Thanks
 
Old 12-02-2002, 09:25 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Well not all the apps are getting multi-processor awareness, but some I am sure are, I just have no idea which one 'cause I never had a system with more than one processor (I'm a uniprocessor dude ), just make sure you are using SMP kernel.
 
Old 12-02-2002, 11:11 PM   #3
El Kid
Member
 
Registered: Sep 2002
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks for the SMP kernel tip. What if I used Gentoo Linux and compiled everything from source would that make all the apps SMP aware?
 
Old 12-02-2002, 11:31 PM   #4
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
It still depends on the app, those that are will and those that are not won't, some may have a configure option and "./configure --help" will help with those ones.
 
Old 12-03-2002, 01:35 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
only if the program was made with dual-processor in mind,
and if you happen to own a compiler that knows about
multi-processors .... gcc doesn't.

Cheers,
Tink

P.S.: However, the SMP Kernel will know about the second
CPU and do load-balancing
 
Old 12-03-2002, 01:18 PM   #6
El Kid
Member
 
Registered: Sep 2002
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks guys. We'll see how it goes. This will be a dual cpu all scsi system, that windows will never see.
 
Old 12-03-2002, 01:34 PM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Don't forget, however, that individual program may or may not be advantaged by having a second CPU. The reason that most stuff is not developed to be SMP aware is because they will not benefit from being able to use both. That does not mean, however, that you will not benefit from being able to use both. As was mentioned above, the SMP kernel is aware and practices load balancing. The only reason that I mention this is because my bro bought a dual 400 system a couple of years ago, and was under the impression that it would run as a uni 800 system... wrong!
 
Old 12-04-2002, 01:15 PM   #8
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
Well, My system, as some of you know, is an All Scsi Duel 600mhz p3

And, things like web browsers, word processors, EVEN compiling your kernel, all gets used by the two processors.
I can see that with gkrellm.

Whether it is Gaim, or X-Cdroast, or Xmms, they all run really cool in my duel box.

I can actually top off my 1.8 p4 cpu back home, than I can top off both of these cpu's at the same time.

Plus the super speed of scisi...it''s made my pc able, not to be upgraded at all since I built it in 4 years ago. And it will compete, no problem, with any 1+ gig comp.


Okay, cool....I'm going to get busy now upgrading to kernel 2.4.20
 
Old 12-06-2002, 05:39 PM   #9
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Ok, whether or not GCC knows about smp or not is irrelivent. Basically, any application written with threads can be run across multiple processors (since the threads run indepent of each other). Many programs you use aren't written in a threaded manner because they don't benifit from threads. However, with SMP compiled into the kernel it will run some applications on one processor, and some on the other, so you will still get a performance boost by having the two chips. Theoretically a single threaded application would run no faster on an SMP system, but running multiple single threaded apps would load the system down less on an SMP system then a UP system.

Some people talk about single threaded applications running faster but in reality what is happening is the processor is less busy with other things so it has more time to spend on the particular task.
 
Old 12-06-2002, 09:24 PM   #10
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
yep, you are right jtshaw.

smp cpu machines aren't faster than the same cpu speed in a single cpu machine....they simply don't slow down and lag like single cpu machines do.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual CPU? yelrah Slackware 5 08-05-2005 01:28 PM
free linux that support dual cpu? prince amir Linux - Hardware 5 02-22-2005 02:47 PM
Dual CPU zer0snr Linux - Newbie 1 04-25-2004 08:54 AM
Cluster vs. Dual CPU Stephanie General 4 01-13-2004 01:20 AM
SMP (Dual CPU) Linux pitfalls. bluceree Linux - Software 0 10-14-2003 12:46 PM

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

All times are GMT -5. The time now is 09:11 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