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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-02-2002, 09:21 PM
|
#1
|
Member
Registered: Sep 2002
Posts: 50
Rep:
|
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
|
|
|
12-02-2002, 09:25 PM
|
#2
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
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.
|
|
|
12-02-2002, 11:11 PM
|
#3
|
Member
Registered: Sep 2002
Posts: 50
Original Poster
Rep:
|
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?
|
|
|
12-02-2002, 11:31 PM
|
#4
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
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.
|
|
|
12-03-2002, 01:35 AM
|
#5
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
12-03-2002, 01:18 PM
|
#6
|
Member
Registered: Sep 2002
Posts: 50
Original Poster
Rep:
|
Thanks guys. We'll see how it goes. This will be a dual cpu all scsi system, that windows will never see.
|
|
|
12-03-2002, 01:34 PM
|
#7
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
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!
|
|
|
12-04-2002, 01:15 PM
|
#8
|
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:
|
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
|
|
|
12-06-2002, 05:39 PM
|
#9
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
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.
|
|
|
12-06-2002, 09:24 PM
|
#10
|
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:
|
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.
|
|
|
All times are GMT -5. The time now is 09:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|