LinuxQuestions.org
Visit Jeremy's Blog.
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-05-2005, 06:49 AM   #1
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,079

Rep: Reputation: 59
Is Linux prepared for the dual-core era?


Now that dual-core processors are taking part of the market (specially those running WinXp Media Center), do you think Linux is really prepared to take advantatge of those dual-core processors?
AFAIK, to take full advantatge of it (assuming you don't do heavy multitask) the program(s) you're running must have to split into several threads so each core takes one of the threads. Do Linux apps behave like this? If not, how long we will wait until we cas ee this?

I think this is a really crucial question to those who are planning to upgrade their systems to get something better. Nobody wants to spent more money on something they won't take advantatge of.

Replies welcomed
 
Old 12-05-2005, 07:02 AM   #2
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
Well right now, I'm content with how they function and I will expect that once we see more and more dual core pc's in the market, that a lot more software support will come.

I currently use an AMD 64 X2 3800(2.0ghz) and I run VMware inside linux to run Windows XP. It allows me to use both operating systems without seeing any slow down.
 
Old 12-05-2005, 07:37 AM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I've been running the SMP release of Fedora Core for a couple of years now, on a Intel "Hyperthread" 686, and I've had no problems. "GLrellM" shows it as a 2-processor system, and many applications just use one, but the kernel does a good job of distributing the load.
 
Old 12-05-2005, 11:03 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,311
Blog Entries: 4

Rep: Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152Reputation: 4152
It is still true that most of the workloads that are actually presented to a computer are I/O-bound, not CPU-bound. (That terminology simply means that the primary thing "slowing down" the process, or determining its rate of execution, is the speed with which it can perform I/O, not the speed of the CPU.) If you graphed the CPU-utilization of your system over time, it might be 98% idle most of the time.

Given such workloads, full utilization of dual-core systems might never come about. Especially if the motherboards containing these sexy chips continue to have indifferent, EIDE-based I/O channels. But that won't stop the chip-makers from building them; it won't stop customers from demanding them and buying them in large numbers...

As for "can Linux handle it" ... most of the test-bed systems that chip makers use for testing are based on ... Linux. Most of the CPU-intensive <=>CENSORED<=> work that is being done on these systems is being done in ... Unix and Linux.
 
Old 12-05-2005, 12:08 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
I would say most of the workloads present on a computer are neither I/O bound, nor CPU bound, but really "user" bound, so really not bound at all.

When the computer is really the bottleneck, I don't agree I/Os are mostly in cause, it really depends on what task(s) the server or the desktop is executing, and the CPU is often 100% for long periods on many machines.
 
Old 12-05-2005, 02:02 PM   #6
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Rep: Reputation: 52
Let me add a comment from a professional application. Where I work, we are using Red Hat Enterprise to run a very large database on a box with dual Xeon processors. The OS sees it as eight processors (four cores, each hyperthreaded) and acts accordingly. Although not every distribution has this capability, I believe Linux is up to the task.
 
Old 12-05-2005, 09:36 PM   #7
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
short answer -- YES
long answer -- Linux can support something like up to 32 CPUs
and has special support for dual core so the non apropriate concepts for multiple cpus are not used for dual core. Different processes and kernel-threads are distributed among different processors. Single User-space threads are not. Threads are like processes in Linux following the general principle of no unique cases. With the exception of info shared with parent process. As far a parallel threading in applications -- i think programmers do this where they feel it is apropriate and do not or should not think about dual core machines or machines with many processors. There are limitations on the usefullness of dual core or multiple processor machines in a limited workload or single task environment for various reasons. they are cool and help -- i like them -- but we can't or really shouldn't expect application developers to change threading style or underlying reasons for threading because of what might turn out to be a marketing fad. Or we break portability and the general rule of NO SPECIAL CASES.
 
Old 12-06-2005, 06:12 PM   #8
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Linux runs on so many hardware... Hardware is not relevant anymore. You can run linux on a fridge if you feel like it.
Dual-core processors are of course supported by linux, more than any other system. Maybe some applications like freecell don't take advantage of some special features of your hardware, but who cares? A 386 machine is already too fast for freecell. For more power consuming applications, like The Gimp or Blender, of course multiprocessor or dual-core is supported and OpenGL is designed for that. You can run those applications in a clustered environment, or in a multi-processor or a dual core environment and take the full advantage of it. And if you find that the critical application you need isn't optimized for dual-core, and that application is open-source, you can do it yourself.
 
Old 12-06-2005, 08:05 PM   #9
ket
LQ Newbie
 
Registered: Aug 2004
Posts: 22

Rep: Reputation: 15
I know linux supports multi processor. but isn't dual-core is different architecture? I think the OS will still recognise the dual-core processor as a single processor instead of double.



http://www.alllinuxcd.com
262 distributions-platform combinations and counting.....
 
Old 12-06-2005, 09:22 PM   #10
xanas3712
Member
 
Registered: Apr 2004
Distribution: Slackware/Mandrake/Debian (sarge)
Posts: 266

Rep: Reputation: 30
Dual core is supported natively, I can assure you that as I have both my cores running and have made very good use of both of them.

I have an Athlon 64 X2 3800 + and it's been great with gentoo

Some applications are threaded and some arent, but if you are a multi-tasker you can still get good benefit out of dual core.
 
Old 12-06-2005, 10:30 PM   #11
leandean
Member
 
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, Debian
Posts: 278

Rep: Reputation: Disabled
To answer the original question, as well as any other OS. There is almost no consumer software at present written specifically to take advantage of dual-core (or 64-bit for that matter). The software guys have a lot of catching up to do.
 
Old 12-07-2005, 01:31 AM   #12
ket
LQ Newbie
 
Registered: Aug 2004
Posts: 22

Rep: Reputation: 15
I am a bit ignorant about dual core technology. What benefit dual dual core bring? In terms of memory addressing and threading, what kind breakthrough can dual core offer to software builders?



http://www.alllinuxcd.com
262 distributions-platform combinations and counting.....
 
Old 12-07-2005, 02:19 AM   #13
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
Dual-core is essentially two CPU's closely interconnected in a single chip.

The technology is not limited to two cores, servers with the new UltraSPARC T1 CPUs having up to eight cores, and 4 threads per core were launched yesterday.

At the software level, this appears like a 32 CPUs machine.

The hardware is planned to be open source too:

http://opensparc.sunsource.net/nonav/index.html
 
Old 12-08-2005, 12:18 AM   #14
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Quote:
Originally Posted by leandean
To answer the original question, as well as any other OS. There is almost no consumer software at present written specifically to take advantage of dual-core (or 64-bit for that matter). The software guys have a lot of catching up to do.
exactly what would this take to "catch up" ?

software design is a complex thing that has always attempted from the very beginning to make the most of resources. I'm not going to go into software threading issues because the concepts are HUGE but statements like the one above are born straight out of corporate propaganda machine and nothing else.

Quote:
"The game is over for software that is written only for a single processor," said Robert Crooke, vice president, Digital Enterprise Group and general manager, Business Client Division, Intel. "Intel is providing the platform and tools to help out the game developers as they start the transition to a multi-core and multi-thread environment."
This kind of crap is based in fact the same way everything donald rumsfeld says about some made up terrorist villian is based on facts.
It's just marketing bull designed specifically to contain no real information whatsoever accept "buy my thing i'm selling".
 
Old 12-08-2005, 12:39 AM   #15
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
Quote:
Originally Posted by ket
I know linux supports multi processor. but isn't dual-core is different architecture? I think the OS will still recognise the dual-core processor as a single processor instead of double.
Nope, as long as you're running an SMP kernel, then your Dual-Core cpu will display as 2 separate processor units.

cpu 0: AMD Athlon(tm) 64 Dual Core Processor 3800+
cpu 1: AMD Athlon(tm) 64 Dual Core Processor 3800+

There you have it.
 
  


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
Fedora Core 4 x86_64 on a Shuttle XPC SN25P with an AMD 64 X2 (Dual core) gwiesenekker Linux - Hardware 4 12-06-2005 11:53 PM
Problem with installing Debian Linux on a AMD64 dual core machine brianq Linux - Software 1 10-07-2005 08:34 PM
linux and dual core 64 bits sytems pumkindan Linux - Hardware 4 06-11-2005 05:34 PM
Dual processor vs. Dual core cs. single on home machine fincher69 Linux - Hardware 3 03-04-2005 12:37 PM
Installing FC2 to already partitioned/prepared 2nd HD Equisilus Fedora - Installation 2 06-20-2004 03:48 PM

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

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