Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38

Thread: Why Isn't Linux Fully MultiProcessor Ready?

  1. #1
    Join Date
    Feb 2009
    Beans
    Hidden!
    Distro
    Ubuntu

    Why Isn't Linux Fully MultiProcessor Ready?

    As the Top Says Its something that bothered me for awhile. Why Linux Cannot Seem to thread a CPU task well. Take OS X for example. If i have 3 apps going my CPU on both cores stay the same, both doing the same amount of work as the other. On Linux One is going crazy and the other one isn't doing much. Why is this, Not trying to seem like a brat or anything, but i never understood that. I mean a Multi-cored CPU should have the kernel, drivers, libraries, and Extensions all multi-Core Ready. Some one Explain... Express your opinion.

  2. #2
    Join Date
    Aug 2006
    Location
    Australia
    Beans
    1,438

    Re: Why Isn't Linux Fully MultiProcessor Ready?

    It really depends what workload you're giving it.
    For instance, if you're doing a lot of heavy stuff in firefox, it'll only consume 1 core, because firefox is simply not coded (yet) to support multiple cores.

    There are many many apps that'll only work on the 1 core, while there are only a few that support multiple cores.

    Some multi-core supporting apps:
    make - by default compiling only uses 1 core, but if you use the -j2 option it'll compile with 2 cores.
    x264 - great codec for encoding videos, and supports 1 or many cores which you have to specify to get the performance boost.

    Some apps just aren't well suited for multicore use.

    Another thing that is noteworthy, is that apple has recently released Grand Central Dispatch as open source, so it's now possible to integrate this into Linux systems as well.

    On a related note, Linux is used for many of the world's top super computers, where they have thousands of CPUs - but these systems run customised applications on a customised linux distro.

    To sum up, if you run the same applications on your Mac as you do in Ubuntu, there really shouldn't be that much of a difference in CPU work loads.
    Work smart, not hard.

  3. #3
    Join Date
    Feb 2009
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Why Isn't Linux Fully MultiProcessor Ready?

    Quote Originally Posted by Rhubarb View Post
    It really depends what workload you're giving it.
    For instance, if you're doing a lot of heavy stuff in firefox, it'll only consume 1 core, because firefox is simply not coded (yet) to support multiple cores.

    There are many many apps that'll only work on the 1 core, while there are only a few that support multiple cores.

    Some multi-core supporting apps:
    make - by default compiling only uses 1 core, but if you use the -j2 option it'll compile with 2 cores.
    x264 - great codec for encoding videos, and supports 1 or many cores which you have to specify to get the performance boost.

    Some apps just aren't well suited for multicore use.

    Another thing that is noteworthy, is that apple has recently released Grand Central Dispatch as open source, so it's now possible to integrate this into Linux systems as well.

    On a related note, Linux is used for many of the world's top super computers, where they have thousands of CPUs - but these systems run customised applications on a customised linux distro.

    To sum up, if you run the same applications on your Mac as you do in Ubuntu, there really shouldn't be that much of a difference in CPU work loads.
    But there is... My OS X is Handling Apps better then Linux.... and thats saying something

  4. #4
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Why Isn't Linux Fully MultiProcessor Ready?

    Quote Originally Posted by Ravernomina View Post
    But there is... My OS X is Handling Apps better then Linux.... and thats saying something
    Maybe the difference is that Mac OS X is running less efficiently than Linux, and so it's putting heavy load into three cores to perform the same work accomplished by one core on Linux.

    Programs must be specifically written to split their work across multiple threads, and therefore across multiple cores. Either you can use these specially-written programs, or you can run multiple intensive programs at the same time.

    Some programs use a hybrid approach - for instance, an MP3 encoder algorithm can only use one thread at a time, and some video encoder algorithms are the same. Some programs like SoundConverter and Blacklight will encode multiple files simultaneously, and each file's encoding job will automatically be assigned to a different core.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

  5. #5
    Join Date
    Feb 2009
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Why Isn't Linux Fully MultiProcessor Ready?

    Quote Originally Posted by 3rdalbum View Post
    Maybe the difference is that Mac OS X is running less efficiently than Linux, and so it's putting heavy load into three cores to perform the same work accomplished by one core on Linux.

    Programs must be specifically written to split their work across multiple threads, and therefore across multiple cores. Either you can use these specially-written programs, or you can run multiple intensive programs at the same time.

    Some programs use a hybrid approach - for instance, an MP3 encoder algorithm can only use one thread at a time, and some video encoder algorithms are the same. Some programs like SoundConverter and Blacklight will encode multiple files simultaneously, and each file's encoding job will automatically be assigned to a different core.
    Um not not really.... im running WOW, and flash and their both using my CPU at 25% each... on Linux It runs 100%

  6. #6
    Join Date
    Nov 2008
    Beans
    381
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Why Isn't Linux Fully MultiProcessor Ready?

    On the same computer?

  7. #7
    Join Date
    Feb 2009
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Why Isn't Linux Fully MultiProcessor Ready?

    Quote Originally Posted by murderslastcrow View Post
    On the same computer?
    Yes

  8. #8
    Join Date
    Nov 2009
    Location
    Bullet Hell
    Beans
    Hidden!

    Re: Why Isn't Linux Fully MultiProcessor Ready?

    Is your processors by any chance lower than or equal to 2 GHz?

    If so, then that's your problem. Flash takes up a CONSIDERABLE amount of CPU in linux (in comparison to Windows), and the recommended spec from adobe (not minimum) is 2 GHz for one core, doing nothing else but flash. (as well as 64 MB of Video Memory.)

  9. #9
    Join Date
    Jan 2007
    Location
    in sunny & hot UK
    Beans
    214

    Re: Why Isn't Linux Fully MultiProcessor Ready?

    Quote Originally Posted by Psumi View Post
    If so, then that's your problem. Flash takes up a CONSIDERABLE amount of CPU in linux (in comparison to Windows), and the recommended spec from adobe (not minimum) is 2 GHz for one core, doing nothing else but flash. (as well as 64 MB of Video Memory.)
    lol. and people say that linux is better for older computers

    but ad rem: linux is multiprocessor ready from it's beginning- but, saying that, i mean some usefull programs, like databases, webservers, mailservers etc- not a typical desktop applications

  10. #10
    Join Date
    Jun 2007
    Location
    North London; England
    Beans
    697

    Re: Why Isn't Linux Fully MultiProcessor Ready?

    Quote Originally Posted by szymon_g View Post
    lol. and people say that linux is better for older computers
    flash isnt the linux devs responsibility, adobe really need to pull there finger out and sort it out, its been bad as long as i remember
    Desktop:i7 875k|4gb OCZ platinum ddr3 2000|Evga P55 LE mobo|OCZ RevoDrive 50gb|ATI 5850 Black Edition|Silverstone FT02|corsair tx650
    Portable: 13" Macbook Pro 2.8ghz i7 16gb RAM | Asus EEE TF101 | Samsung Galaxy S2

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •