Slashdot Mirror


The ~200 Line Linux Kernel Patch That Does Wonders

An anonymous reader writes "There is a relatively miniscule patch to the Linux kernel scheduler being queued up for Linux 2.6.38 that is proving to have dramatic results for those multi-tasking on the desktop. Phoronix is reporting the ~200 line Linux kernel patch that does wonders with before and after videos demonstrating the much-improved responsiveness and interactivity of the Linux desktop. While compiling the Linux kernel with 64 parallel jobs, 1080p video playback was still smooth, windows could be moved fluidly, and there was not nearly as much of a slowdown compared to when this patch was applied. Linus Torvalds has shared his thoughts on this patch: So I think this is firmly one of those 'real improvement' patches. Good job. Group scheduling goes from 'useful for some specific server loads' to 'that's a killer feature.'"

119 of 603 comments (clear)

  1. Compiling the kernel by suso · · Score: 2, Funny

    Compiling the kernel isn't a useful benchmark. How well does it deal with running Adobe Air?

    1. Re:Compiling the kernel by spiffmastercow · · Score: 3, Funny

      Obviously you're not running Gentoo.

    2. Re:Compiling the kernel by suso · · Score: 5, Funny

      I used to. For 3 years. But I wanted my time back.

    3. Re:Compiling the kernel by fuzzyfuzzyfungus · · Score: 5, Informative

      They aren't compiling the kernel to see how long it will take(which, as you say, is rarely of all that much interest, few people do it and a fast build-box isn't going to break the budget of a serious project), they are using a multithreaded kernel compilation as an easy way to generate lots of non-interactive system load to see how much that degrades the performance, actual and perceived, of the various interactive tasks of interest to the desktop user.

      This isn't about improving performance of any one specific program; but about making a reasonably heavily-loaded system much more pleasant to use. Compiling the kernel is just a trivial way to generate a large amount of non-interactive CPU load and a bit of disk thrashing...

    4. Re:Compiling the kernel by laffer1 · · Score: 4, Interesting

      Compiling the kernel doesn't prove true userspace improvements, but it does show an improvement with scheduling.

      I see. It creates "groups" based on the tty and then tries to even out the CPU utilization between groups. This helps if there is a crazy background process eating up CPU and it might even help control flash crushing system performance a bit.

    5. Re:Compiling the kernel by ArsenneLupin · · Score: 2, Interesting

      It creates "groups" based on the tty and then tries to even out the CPU utilization between groups.

      Works fine if there are groups than can be distinguished by tty (such as the kernel compilation which has one, versus most interactive apps, which don't, or have a different one).

      But it won't necessarily work if the task creating the load is also a ttyless GUI task (such as programs such as dvdstyler)

    6. Re:Compiling the kernel by arivanov · · Score: 4, Insightful

      The answer is very very very badly.

      This is a "NERD Feature" patch which does very little to the improve the way Joe Average Luser uses his desktop. In fact it leads to some seriously goofy allocation artefacts.

      What it does (if I read it right) is that it puts all processes with the same controlling TTY into the same group. Well, anything launched in X has no controlling TTY. So it all gets lumped into one group. Now you open a xterm and you launch something from there. Miracle, halleluyah, that actually got into a separate schedule group which can now hog a CPU while the rest of apps will fight for the other one on a two core machine. So what am I supposed to do? Start every one of my X applications from a different Xterm so they have a different controlling TTY (and do not close any of them)?

      Screw that for laughs.

      Process grouping is too difficult to be done based on such simplistic criteria. It is best to provider an interface through which a user can group all of the processes with his UID and leave the Desktop environment do the grouping. Or put something on the dbus which listens and follows who talks to whom to do the same. This will provide much better results than putting yet another simplistic euristic in the kernel.

      --
      Baker's Law: Misery no longer loves company. Nowadays it insists on it
      http://www.sigsegv.cx/
    7. Re:Compiling the kernel by Albanach · · Score: 5, Funny

      I used to. For 3 years.

      Wow, I think my K6 pentium clone could compile the kernel faster than that!

    8. Re:Compiling the kernel by digitalhermit · · Score: 2, Informative

      I know exactly what the problem is. Try passing different elevator options to the kernel at boot time. It helps with clock skew on virtual environments.

    9. Re:Compiling the kernel by morgan_greywolf · · Score: 5, Informative

      Yep. For those that haven't tried it without the patch, a multithreaded kernel compile will typically peg a modern multicore CPU at 100% and will even give you drunken mouse syndrome. Just being able to scroll around a browser window while doing a lengthy make -j64 is impressive. Being able to watch 1080p video smoothly is ... astounding. Especially when you consider the minimum CPU requirement for 1080p H.264 playback is a 3 GHz single core or a 2 GHz dual core.

       

    10. Re:Compiling the kernel by Inda · · Score: 5, Funny

      If it takes less than 3 years, you're doing it wrong.

      --
      This post contains benzene, nitrosamines, formaldehyde and hydrogen cyanide.
    11. Re:Compiling the kernel by ArsenneLupin · · Score: 2, Informative
      Maybe this could be improved upon by grouping process by process group (setpgrp), and have the window manager set the pgrp (a different one) for each new app it launches?

      Or better: use a combined key of both tty and pgrp , so that we already see a benefit right now for the compilation example, and benefits later for all other cases (when window manager will start doing this, if they don't already)

      This will still leave the "firefox with many facebook tabs open slows down webmail within firefox" case though, but maybe that case could be solved by taking a baseball bat to Mark Zuckerberg's head :-)

    12. Re:Compiling the kernel by Greyfox · · Score: 2, Funny

      Ahh you kids with your "I don't care how fast the kernel compiles!" Back in my day it used to take overnight on a 386SX/16 with a whopping 4MB of RAM! And that was AFTER spending hours downloading it across our 1200kbps modems! That connected to PHONE lines! And we LIKED it that way! Well... We really didn't. At some point the kernel source grew to over 10 mb (Remember when we predicted that it doing so would kill the Internet?) and started taking less than 10 minutes or so to compile, and the internet is still not dead! Anyway my point was I was wearing an onion in my belt, as was the fashion back in the day. Get off my lawn you damn kids!

      --

      I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

    13. Re:Compiling the kernel by Anonymous Coward · · Score: 5, Funny

      recompile the Gentoo kernel using --mph=88

    14. Re:Compiling the kernel by morgan_greywolf · · Score: 5, Insightful

      1) There are no 1200 kbps dialup modems. The fastest ones do 56 Kbps under specialized conditions.

      2) If you meant to say 1200 bps modems, well, by the Linus wrote and released the first versions of the Linux kernel, 1200 bps modems and the 386SX were both well obsolete. The most common systems of that day were 486DXs running at 33 MHz at the sweet spot and 50 MHz at the high end. Most people had modems capable of greater than 9600 BPS (many around 14.4Kbps and 28.8Kbps)

      3) Now quit making fun of us real old-timers and get off my lawn .

    15. Re:Compiling the kernel by h00manist · · Score: 2, Insightful

      Indeed everyone that asks me about migrating to Linux is asking about "can I run xyz programs". The answer to that question is generally what matters most. It's not an easy question, there are no easy answers to it, but it's the most relevant.

      --
      Build your own energy sources from scratch. http://otherpower.com/
    16. Re:Compiling the kernel by ArsenneLupin · · Score: 4, Informative
      Even a pty has a tty name associated with it, and which tags all processes run from it, and that is all that is needed in this case.

      So no, it doesn't have to be a physical RS232 serial line like in the seventies :-)

    17. Re:Compiling the kernel by Joey+Vegetables · · Score: 3, Insightful

      Only 3 years? How can you call that a fair chance? It's not even enough time to compile KDE!! :) (disclaimer: mostly happy Gentoo user here, but yes, like many other worthwhile things, it can come at a cost, mainly in hopefully unattended compile time, and occasionally, if you want the latest stuff, some user/administrator time as well trying to figure out what the ebuild maintainers were smoking when they did certain things.)

    18. Re:Compiling the kernel by TheRaven64 · · Score: 4, Informative

      Linux has had I/O scheduling for a long time, which ought to address this. In practice, I/O scheduling is actually very hard to get right for nontrivial use cases, so your milage may vary. The real problem is identifying the programs that are 'important' (for some value of important). Windows has (had?) a simple heuristic, where the program with the currently active window got a scheduling boost, but this was problematic when you were running Word in the foreground and Windows Media Player in the background - Word's background spell check would get priority over WMP's video decoder. FreeBSD's ULE scheduler tries to prioritise processes that spend a lot of time blocking for I/O, but again this doesn't help with things like H.264 playback which use lots of CPU, lots of I/O, and really don't want to drop frames.

      --
      I am TheRaven on Soylent News
    19. Re:Compiling the kernel by Anonymous Coward · · Score: 2, Funny

      Wow, I bet everything but Flash is fast and smooth as silk.

      But won't 200 lines cause a nosebleed?

    20. Re:Compiling the kernel by OneAhead · · Score: 2, Informative

      OK, I'll bite.
      http://en.wikipedia.org/wiki/AMD_K6
      "The AMD K6 is based on the Nx686 microprocessor that NexGen was designing when it was acquired by AMD. Despite the name implying a design evolving from the K5, it is in fact a totally different design that was created by the NexGen team"

      Also, it was more than competitive with the Intel processors of its time.
      http://www.tomshardware.com/reviews/intel,22-10.html
      The K6 was a turning point in the x86 wars, after which AMD slowly started taking the performance lead away from Intel with the Athlon, Athlon XP and Athlon 64, the latter having total dominance over Intel's competing Pentium 4.

      For the record (and to avoid starting a flame war), the Core2 was the turning point where Intel started coming back, and Intel is currently firmly holding the performance lead with the Core i7.

    21. Re:Compiling the kernel by eln · · Score: 3, Informative

      Not all of us had money to keep upgrading our equipment. I was running on a 2400 baud modem until 1995. Of course, I installed Linux on my home box in those days by downloading Slackware to a ton of 3.5" floppy disks at the computer lab at the local university and bringing them all home. If one of the floppies was corrupted, I had to wait until the next day to go back and re-download and copy it.

      I also had to walk 10 miles, in the snow. Uphill both ways.

    22. Re:Compiling the kernel by Z00L00K · · Score: 2

      Eh? 300bps acoustic coupler using a Z80 based computer with 16k RAM and a tape recorder as secondary storage device.

      That was interesting times.

      And hacking on an ASR33 teletype with a paper roll and punch tape. Been there done that... Errors preserved permanently on the input device (paper roll). Earplugs were recommended.

      --
      If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
    23. Re:Compiling the kernel by Z00L00K · · Score: 2, Informative

      To continue:

      Baud != bps.

      Baud is modulation changes per second, and in each modulation change there may be a representation of one or more bits which means that the modem may be 1200 baud but you got 9600 bps out of it due to the modulation (phase and amplitude of tone)

      And the old Telebit Trailblazer modems with PEP protocol - they were fantastic in crappy conditions. Multi-carrier technology so that even if there were interference at least a few got through anyway and the only effect was that the bandwidth was quenched. Things to do datacom over barbed wire with! :)

      --
      If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
    24. Re:Compiling the kernel by psyclone · · Score: 2, Interesting

      Whatever happened to "nice-ing" processes? Couldn't the menu icon that launches VLC or mplayer or whatever re-nice itself a few negative steps?

    25. Re:Compiling the kernel by CAIMLAS · · Score: 3, Interesting

      I remember, about 8-10 years ago, how this wasn't the case. It was quite evidently better than Windows in this regard, particularly if you didn't upgrade your hardware on a 2-year cycle (eg. waiting until it died) or tried running on significantly older hardware. Performance, on the desktop, was great. 2.6 seems to have progressively nixed it.

      The first time I tried compiling a kernel, I was astounded at how I was still able to play fullscreen 600Mb encoded DVDs (can't remember what they were encoded in, but the quality was decent).

      I remember building a kernel in '99-2000 or so on a P133 with 64Mb of RAM (running Stormix). Netscape was still responsive. Switching to a different application did't really take all that long.

      These days, Linux performance on the desktop, this regard, is worse than Windows. It's a fucking travesty. Using the anticipatory scheduler helps significantly (or did, until they removed it from the kernel), but it was hardly much more than a stopgap measure.

      I am pleased as fucking punch that this is finally 'fixed'. Like, I'm giddy to the point where I doubt I'm going to get any work done today.

      Where can I download prebuilt kernels for my distro of choice? Surely someone is building them.

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
    26. Re:Compiling the kernel by dgriff · · Score: 2, Insightful

      Yep. For those that haven't tried it without the patch, a multithreaded kernel compile will typically peg a modern multicore CPU at 100% and will even give you drunken mouse syndrome. Just being able to scroll around a browser window while doing a lengthy make -j64 is impressive. Being able to watch 1080p video smoothly is ... astounding.

      For an OS that has been around for nearly 20 years and has had thousands of very bright programmers poring over it, it's quite astounding that only now has someone finally figured out how to let gui-related activity have top priority.

    27. Re:Compiling the kernel by timothy · · Score: 2, Interesting

      Wondered this myself -- a very strange bug, since playing MP3s has been a solved since the days of (IIRC) 100Mhz Pentiums :)

      I figured there was some option to prebuffer that I've never had the time to google for ... but I look forward lazily to the day when it's fixed ;)

      timothy

      --
      jrnl: http://tinyurl.com/c2l8yr / foes: http://tinyurl.com/ckjno5
    28. Re:Compiling the kernel by bingoUV · · Score: 2, Interesting

      Even a somewhat power-user can do this. A distro can do it trivially.

      1. Menu item can run as root by default, then assume the identity of the logged in user. Might need to play with sudoers file a bit, possibly remove "requiretty" option.

      2. Use ionice if you are worried about I/O and running linux > 2.6.13.

      --
      Bingo Dictionary - Pragmatist, n. A myopic idealist.
  2. teh snappy!!!! by schmidt349 · · Score: 5, Insightful

    Considering that UI lag was always my big problem with anything Linux-based (hell, it even seems to affect Android phones), this might be one small patch for the kernel, one giant leap for userspace...

    1. Re:teh snappy!!!! by ArsenneLupin · · Score: 5, Funny

      Good luck, Mister Gorsky!

    2. Re:teh snappy!!!! by walshy007 · · Score: 3, Informative

      Or rather, that there are different priorities.

      The problem was with finer grained scheduling you wound up sacrificing server performance for desktop responsiveness. Linux does not want to sacrifice performance really.

      To be fair I've been using linux on my desktop for over ten years now and even without this patch mostly fail to see an issue.

    3. Re:teh snappy!!!! by TheRaven64 · · Score: 5, Informative

      But the fact that Windows and OS X and many other lesser OS have fixed this problem years ago could also be used to show that Open Source is not quite as up on the times as you would like to think.

      Seriously? OS X has absolutely terrible scheduling. A process that causes some swapping will cause beachballs everywhere and can freeze the windowserver for several seconds (well, the mouse keeps moving, but nothing else does). Hell, I have a FreeBSD VM on my Mac that responds better under load than stuff outside of it does.

      --
      I am TheRaven on Soylent News
    4. Re:teh snappy!!!! by TheRaven64 · · Score: 2, Informative

      That's pretty bad. On OS X, you used to be able to kill the system by mmap()ing a large file and touching one byte on each page in turn (I had a nice 10-line C program that would kill the system like this). With 10.5, it's a lot better. The system freezes for a few seconds but then it just becomes really slow, rather than dead.

      OS X handles out of memory conditions a lot more gracefully than Linux. When Linux runs out of memory, it kills random processes until it can continue. When OS X almost runs out, it suspends processes and pops up a dialog telling you to close some. The resume button in this dialog doesn't work (yay Apple QA), but you can kill -CONT processes to resume them from the terminal. This is typically enough to kill the errant process that's decided that it needs 10GB of RAM and resume everything else. Basically, apps continue to work until they try to allocate more than a tiny bit more memory from the OS, then they're paused (unless they're on a small list of apps that are excluded from this because they're required to recover, for example the window server).

      OS X doesn't do a terrible job, but to claim that they've solved this problem is a massive overstatement.

      --
      I am TheRaven on Soylent News
    5. Re:teh snappy!!!! by Jah-Wren+Ryel · · Score: 2, Informative

      (well, the mouse keeps moving, but nothing else does).

      When that happens - MacOS, Linux or Windows, its usually because the mouse driver is interrupt driven and the mouse cursor is drawn by the video card. So the scheduler generally isn't even involved - the mouse generates an interrupt (pausing whatever task is currently scheduled on the cpu), the interrupt handler reads the mouse coordinates and hands them off to the video card, returning the cpu back to the regularly scheduled process and the video card redraws the location of the mouse on the screen.

      --
      When information is power, privacy is freedom.
  3. Distros? by SIGBUS · · Score: 4, Funny

    Of course, how many years from now will that filter into the distros? My guess:

    Gentoo: soon
    Debian Unstable: 2Q 2011
    Ubuntu, Fedora: 1Q 2012
    Debian Stable: 2015
    RHEL: 2020

    --
    Oh, no! You have walked into the slavering fangs of a lurking grue!
    1. Re:Distros? by piffey · · Score: 3, Insightful

      Arch: Friday Not to be one of /those/ people or anything...

    2. Re:Distros? by Ltap · · Score: 5, Informative

      Arch Linux: Already in core.

      I exaggerate, but it's not far from the truth - the kernel releases are imported into the testing repository as soon as they come out.

      --
      Yet Another Tech Blog
      (but so much more, including game and movie reviews)
      http://yanteb.peasantoid.org
    3. Re:Distros? by Kjella · · Score: 2, Informative

      If you don't care about having it in a release, then the kernel team already has a PPA with all the releases + rcs + daily builds. I would think the next *buntu release (11.04) will have 2.6.37, so you probably won't see this in an official release until october next year...

      --
      Live today, because you never know what tomorrow brings
    4. Re:Distros? by marcello_dl · · Score: 3, Informative

      Or whenever YOU choose to install the patched kernel. Freedom at work.

      --
      ---- MISSING MISCELLANEOUS DATA SEGMENT --- [sigdash] trolololol
    5. Re:Distros? by kangsterizer · · Score: 2, Informative

      What's cool is that Arch is actually pretty stable and works well, yet it's pretty bleeding edge (although to be honest this kernel will be in testing, not stable. probably in stable 2 weeks after 2.6.37 is released)

    6. Re:Distros? by Rysc · · Score: 4, Funny

      Fuck support contracts. Real men fire up gdb when they see a koops.

      --
      I want my Cowboyneal
  4. Wait.... by fuzzyfuzzyfungus · · Score: 5, Funny

    That's not a kernel patch... That's a bash script that forcibly installs BeOS!

  5. Subjective by falldeaf · · Score: 2, Interesting

    I guess it's somewhat objective and dependent on your hardware anyway but even with lots of programs open on my main machine I don't notice any slowdown... I think if linux is really gonna pull ahead of the pack they aught to take a gamble on a new, useful interface. Something like 10gui. The risk could even be mitigated by having a choice to load either type of desktop at the beginning with a quick video to demonstrate the difference. :)

    --
    check out the Mp3 Garbler I built!
  6. Wasn't there a desktop friendly scheduler rejected by Culture20 · · Score: 3, Interesting

    I thought a few years ago, there was a desktop friendly scheduler rejected because Linus thought the server environment was more important. The details escape me.

  7. Is this a typo? by Anonymous Coward · · Score: 2, Funny

    Is this a typo?

    "... slowdown compared to when this patch was applied." - Shouldn't that be something like "... slowdown compared to the performance before the patch was applied"

  8. Xkcd knows it by MetalliQaZ · · Score: 4, Funny
    --
    "Here Lies Philip J. Fry, named for his uncle, to carry on his spirit"
  9. Isn't it awesome by bcmm · · Score: 5, Insightful

    Isn't it awesome when a new version of your OS performs *better* than the last one on the same hardware?

    --
    # cat /dev/mem | strings | grep -i llama
    Damn, my RAM is full of llamas.
    1. Re:Isn't it awesome by LanMan04 · · Score: 2, Insightful

      Isn't it awesome when a new version of your OS performs *better* than the last one on the same hardware?

      It sure is. Mac OS X has been doing this for almost a decade.

      --
      With the first link, the chain is forged.
    2. Re:Isn't it awesome by nschubach · · Score: 2, Insightful

      You should clarify that you also don't have to do a full reformat, re-install, and get used to the "new" methods for getting to your files.

      --
      Every time I start to have faith in humanity, I ruin it by driving to work between 7 and 8 am.
    3. Re:Isn't it awesome by icebraining · · Score: 3, Funny

      The PowerPC owners disagree. The new versions don't perform better in their hardware.

  10. Re:Wasn't there a desktop friendly scheduler rejec by rwa2 · · Score: 4, Informative

    They mention the "Con Kolvias" scheduler in TFA, but they don't seem to want to refer to it by its real name:

    http://en.wikipedia.org/wiki/Brain_Fuck_Scheduler

    It doesn't scale well past 16 cores, which is why Linus doesn't want to include it in the main kernel. But it's included in custom kernels for mobile devices, such as CyanogenMOD for my Android phone.

  11. This was always my biggest problem with Linux by dselic · · Score: 5, Funny

    No matter how many different flavors of Linux I installed, it just never seemed as snappy as Windows. There was always a sluggishness about it, nothing I could really put my finger on, but it was definitely there and it bothered me. I'm very glad to hear that a solution is in sight.

    I hope the people at Ubunto get this out as an update as soon as possible.

    1. Re:This was always my biggest problem with Linux by icebraining · · Score: 2, Informative

      Ubuntu.

      And it'll probably be in Natty Narwhal, which is to be released in April 2011. https://wiki.ubuntu.com/KernelTeam/Specs/KernelNattyVersionAndFlavours

    2. Re:This was always my biggest problem with Linux by Jorl17 · · Score: 3, Interesting

      As strange as it may seem, I get that feeling when I touch a *used* Windows machine. No matter who used said machine, it eventually starts slowing down to a crawl. When I came to Linux, I came because I wanted a programmer-friendly environment (The Way It's Meant To Be) and I liked Compiz-Fusion (go figure!). Now I run GNU/Linux because it is GNU/LInux -- Free and Open-Source --, with openbox, fbpanel, pcmanfm, gnome-terminal, evince, chromium-browser, LibreOffice, amarok1.4, gedit, vim and some games (some via Wine). By leaving gnome itself, I learned what speed was really all about. However, I can't help noticing that my laptop gets quite a usability hit when I start eating of its CPU(s) -- but when I compare that with the Windows machines under a heavy load, I see that my poor 500€ laptop can top the asses out of those 1500€ lean-mean-Windows-machines. So, I may be an exception, but Linux, for me, in spite of some notorious disadvantages, can still top Windows in terms of these load-related tasks.

      --
      Have you heard about SoylentNews?
    3. Re:This was always my biggest problem with Linux by dselic · · Score: 2, Interesting

      Nice to see somebody thinks I'm a troll.

      You know, I'm as pro-open source as the next guy here, but I try not to be dogmatic about it. I've played with a bunch of Linuxes from the first half of the 1990s onward and even used it professionally for a time. While there are many things I like about the OS, it does have it's faults. Like not being as user friendly as Win. Like not being as snappy as Win.

      I'm really sorry if I hurt somebody's precious feelings, but a troll I certianly am not. And like I said, I'm very glad this patch is coming out and will continue to run Linux as my secondary OS.

    4. Re:This was always my biggest problem with Linux by jjohnson · · Score: 2, Interesting

      Nope, you're not a troll. I have the exact same complaint about Linux desktops (and OSX): Windows just seems slightly but noticeably snappier for keyboard and mouse events. I just thought that someone at MS realized that this was an important area to get right, while Linux and OSX struggled against a cap dictated by other design decisions (such as Apple's Quartz library being strongly based in NextStep's display PostScript origins).

      It was never a huge deal to me because so many other considerations are also important, but it's always noticeable.

      --
      Anyone who loves or hates any language, platform, or manufacturer, doesn't know what they're talking about.
    5. Re:This was always my biggest problem with Linux by Myopic · · Score: 2, Interesting

      Seriously? I thought you were joking but you got modded Insightful instead of Funny. All day at work (the only time I'm subjected to Windows) I sit around wondering why Windows takes 93 seconds (literally, not figuratively -- I counted) to open directories with a few thousand files in them, whereas Linux takes something on the order of .01 seconds. I have never, not even once, thought of Windows as "snappy", especially when compared to Linux. But, I don't want to argue about it, I don't want to start a flamewar, and I don't doubt the sincerity of your statement; I merely have had a very, very different experience.

    6. Re:This was always my biggest problem with Linux by butalearner · · Score: 2, Interesting

      Not the mod, but I can see where he's coming from. I can maybe see his claim having merit if he's only tried the heaviest GNOME or KDE distros, but "no matter how many distros he's tried?" That comes very close to trolling, considering there is at least one fairly well-known distro that loads itself entirely into RAM.

      Of course it is difficult to argue against anecdotal evidence, especially if you don't know the hardware situation. Personally I'm fairly positive my nicely-tuned Arch install runs circles around my fully-patched Vista install, but that's just my experience.

    7. Re:This was always my biggest problem with Linux by wiredlogic · · Score: 2, Informative

      If you cut back on the eye candy most distros have in their default desktop environments you'll wipe away any sluggishness. Switching to a simple window manager that doesn't use pixmaps for everything will significantly improve X's performance.

      --
      I am becoming gerund, destroyer of verbs.
    8. Re:This was always my biggest problem with Linux by Tetsujin · · Score: 3, Funny

      tired "inb4" bullshit...

      why?

      Because if you can predict how people are going to react to a certain set of conditions then you have demonstrated mastery over their inferior minds. But you have to call it out, or else no one will know!

      --
      Bow-ties are cool.
    9. Re:This was always my biggest problem with Linux by Myopic · · Score: 2, Interesting

      Yeah, I never really figured it out. These are local directories having, oh, maybe three or four thousand files. It is the first time the directories have been opened since the files were written. But still, what the heck is taking 93 seconds? When I re-open the directory, it only takes a short amount of time, so I figure Windows is creating some kind of cache that first time. Still, it's an inexcusable user experience. But, it's an ongoing problem that I have every day or two, because I deal with a lot of these directories with lots of files written to them.

    10. Re:This was always my biggest problem with Linux by downhole · · Score: 2, Interesting

      I probably haven't tried nearly as many flavors of Linux or Windows as you, but my experience has been the complete opposite. My Ubuntu install, running Gnome on a pretty average system (3.1ghz dual core AMD CPU, 4GB RAM, integrated video), feels lightning-fast and responsive compared to pretty much every other system I've ran so far. Especially the Windows systems I use at work, which admittedly are all XP systems infected with McAfee. I've always been kind of a junkie for really responsive UIs - it drives me nuts when Windows and IE7 always take half a second here and a second there to respond to every little command. My Linux system virtually never does this, which is why I'm happy to keep using it. And of course anything that makes it better yet is more than welcome.

      --
      I don't reply to ACs
    11. Re:This was always my biggest problem with Linux by ZERO1ZERO · · Score: 2, Informative
      Tools -- Options --- classic mode (turn off the stupid 'sidebar'), disable thumbs.db creation.

      Windows is so annoying with the sidebar thing if you click a video and then try to delete it it won't let you delete it because it's caching the preview for the sidebar.

    12. Re:This was always my biggest problem with Linux by 10101001+10101001 · · Score: 2, Insightful

      I have never, not even once, thought of Windows as "snappy", especially when compared to Linux. But, I don't want to argue about it, I don't want to start a flamewar, and I don't doubt the sincerity of your statement; I merely have had a very, very different experience.

      I don't want to start a flamewar either, but I'll throw in my two cents. My own experience has been that Windows 95, Windows 98, and Windows 98SE (never really used ME) were snappy on the hardware of their day when it came to things like file browsing. This held true even after the installation of IE4 to IE6SP1 (although after every IE install it seemed less snappy). In comparison, Nautilus, Konqueror, Dolphin, and ROX all seem significantly slower on much more powerful hardware. With Windows 2000/XP on similar hardware I see similar behavior.

      I'd assume it's all scheduling issues, personally. But, then, it could also be partially a perceptual thing. A file browser locking up for two seconds and displaying a full file list seems faster (and is less annoying) than a file browser that updates every half second (which is frustrating because things jump around) and displays a full file list after 1.5 seconds (although you'll probably have to wait until 3 seconds to make sure it didn't just seeming stall and will resume again). With Windows 9x, it seemed that whatever you were doing was always more responsive than what happened on Windows 2000/XP or Linux, nearly regardless of the power of the hardware.

      It's funny, but Windows 9x came out at the time when hardware was finally powerful enough to have near instant user interactivity on most common tasks, so it's not hard to see why people might have fond and/or warped memories of the past. I know i do.

      --
      Eurohacker European paranoia, gun rights, and h
  12. backport? by real_smiff · · Score: 2, Insightful

    any chance of backport of this e.g. to .35 kernel for use in ubuntu maverick? i could use that :) or even to .32 for use in 10.04 LTS..

    --

    This is my Sig, this is my Gun. One is for Slashdot and one is for Fun.

    1. Re:backport? by pak9rabid · · Score: 4, Insightful

      Why not just compile it yourself?

    2. Re:backport? by Thelasko · · Score: 2

      Why not just compile it yourself?

      See above

      --
      One of our competitors trademarked the term "hypothesis". From now on, we will call them "boneheaded ideas".
    3. Re:backport? by b0bby · · Score: 2, Funny

      Because it'll slow down everything on his system...

  13. Actually that sounbds quite large. by 91degrees · · Score: 4, Informative

    Typically when you get this sort of speedup, it's by rewriting a tiny piece of code that gets called a lot. Sometimes you can get this sort of thing from a single variable, or for doing something odd like making a variable static.

    1. Re:Actually that sounbds quite large. by 91degrees · · Score: 3, Funny

      Uhm... I went wrong by not explaining my point in excruciting detail?

    2. Re:Actually that sounbds quite large. by mcvos · · Score: 2, Informative

      From what I gather (which isn't a lot, mind you), it's not so much optimizing the execution of an algorithm, but changing what the algorithm actually does. In this case: smarter scheduling.

    3. Re:Actually that sounbds quite large. by PseudonymousBraveguy · · Score: 4, Informative

      No, you went wrong by confusing "improving the decisions of the scheduler, so that the user experience is improved" with "making the scheduler run faster."

  14. But what if the "heavy background task" has been l by ArsenneLupin · · Score: 4, Interesting

    The patch being talked about is designed to automatically create task groups per TTY in an effort to improve the desktop interactivity under system strain.

    I guess this works because the task loading up the machine will have been launched from a konsole, and thus be tied to a specific tty (the make -j64 example given later), so a tty-based scheduler can appropriately downgrade it.

    But what if the "loading" task has been launched directly from the GUI (such as dvdstyler)? It won't have a tty attached to it, and will be indistinguishable from all the other tty-less tasks launched from the GUI (such as the firefox where you browse your webmail), or worse, Firefox itself creating the load (such as happens when you've got too many Facebook or Slashdot tabs open at once...)

  15. typo by gatzby3jr · · Score: 2, Informative

    While compiling the Linux kernel with 64 parallel jobs, 1080p video playback was still smooth, windows could be moved fluidly, and there was not nearly as much of a slowdown compared to when this patch was applied.

    shouldn't that read "and there was not nearly as much of a slowdown compared to when this patch wasn't applied"?

  16. will this help with the swap-paralysis problem? by Anonymous Coward · · Score: 5, Interesting

    This has been brought up by others on slashdot before, but Linux tends to be either (A) fine and happy, or (B) pushed into a thrashing state from which it can never recover - like it takes 8 or 10 minutes to move the mouse cursor across the screen. Since there is relatively no warning before this happens, it makes a hard reboot just about the only option.

    Will this patch help with that issue? Like the threads below say, once a modern (KDE/Gnome) desktop Linux starts swapping, there is so much new data produced per second by the GUI that it's basically game over. I'd like to see a fix for this: it's the single biggest cause on Linux that makes me do a hard reboot. I just don't have the patients to see if the thing will recover in half an hour or so, even though it might.

    http://ask.slashdot.org/comments.pl?sid=1836202&cid=33998198
    http://ask.slashdot.org/comments.pl?sid=1836202&cid=33999108
    http://www.linuxquestions.org/questions/linux-kernel-70/swap-thrashing-can-nothing-be-done-612945/

    1. Re:will this help with the swap-paralysis problem? by real_smiff · · Score: 2, Interesting

      ah i see this regularly on my netbook with 512MB RAM and a slow SSD; just by having too many firefox tabs open. didn't realise it was a known problem. yes very annoying indeed. thanks for bringing it up...

      --

      This is my Sig, this is my Gun. One is for Slashdot and one is for Fun.

  17. Please. by drolli · · Score: 2, Insightful

    When doing benchmarks, do them seriously.

    okok... i know its phoronix...

    A single *atypical* workload as a benchmark, without a full characterization does not make me consider to use a kernel path on my system which is reported in the style of an UFO-sighting....

    I wonder if nicing the kernel compilation would have had a similar effect....

    1. Re:Please. by onefriedrice · · Score: 3, Insightful

      I wonder if nicing the kernel compilation would have had a similar effect....

      Probably, but that's not really the point. A user should rarely (if at all) have to use nice on a desktop, because a desktop operating system is supposed to be able to keep input latency low, always. That is the reason BeOS had such incredible perceived speed, but some "modern" operating systems are still struggling with this feat. I mean, it's 2010 and we've had 25+ years to work this out. Cursor stuttering and choppy video should have been a completely solved problem by now.

      --
      This author takes full ownership and responsibility for the unpopular opinions outlined above.
  18. Re:Wasn't there a desktop friendly scheduler rejec by tenchikaibyaku · · Score: 5, Informative

    This is not the scheduler that the grandparent would be referring to though. BFS has been around for about a year, and has as far as I know never actually been pushed for inclusion.

    The previous scheduler that Con wrote was rejected in favor of CFS which is currently in use by the kernel. CFS is at least partly based on ideas from Con, and he was also credited for them.

  19. But 400 lines of code.... by Anonymous Coward · · Score: 5, Funny

    ....would make it 2x faster! LOC is the #1 metric for programming.

  20. Re:But what if the "heavy background task" has bee by ArsenneLupin · · Score: 4, Interesting
    My point is that tty-based scheduling works fine if both groups among which you want to distinguish have a different tty.

    With make -j64, this is ok: The make will have been started from a terminal (it's not important whether it's a Linux (console) terminal or within an X window), whereas most other GUI programs won't. So they can be distinguished from each other.

    But in case of dvdstyler, it won't have a tty if it has been started directly through the menus, and so the scheduler cannot put it in a different group than all the other GUI apps (which also lack a tty).

    Of course, if you start dvdstyler from the command line (from a konsole), this won't apply.

    You can easily check which tty (if any) a program has associated by doing a ps auxww and looking at the 7th column (where it will say ? for "no tty" or name the tty (such as pts/9)

  21. Re:Wasn't there a desktop friendly scheduler rejec by Enderandrew · · Score: 4, Interesting

    Con Kolivas worked on his staircase scheduler and various performance patches for years. They were routinely demonstrated to be a major improvement. Linus kept saying he was concerned the tradeoff of desktop performance would come in other environments, even though that wasn't true.

    Since benchmark after benchmark showed staircase was vastly superior to what was in mainline, Linus then went to go after the guy rather than the code. He said Kolivas couldn't be trusted to support his code, and thusly it would never be accepted mainline. Reality was that Kolivas had been responding to criticism and updating his patchset for over 3 years, constantly improving it. In addition to the LKML, he also maintained his own support mailing list.

    I'm a Linus fan 95% of the time, but it was a really shitty move, and it drove Kolivas away from contributing. He quit coding for a while. Then after Linus argued for years how this was a bad idea, suddenly the mainline kernel developed the Completely Fair Scheduler overnight, which was very similar to Kolivas' Staircase scheduler. Linus never admitted he had been a dick for years arguing against the thery of the scheduler rewrite. He then pushed the brand new, untested scheduler into mainline.

    CFS is better than what we had before, but it still lost in benchmarks to Staircase, and it was new, untested code.

    Now, Kolivas came out of retirement with a new scheduler called Brainfuck that is even faster, but he has no intention of ever tryint to get it in the mainline kernel.

    --
    http://blindscribblings.com - Tasty pop-culture in conceptual fashion.
  22. or, plan B: by ChipMonk · · Score: 3, Interesting

    Turn off swap, if you can. The cost of memory is now less than the cost of the stress and lost uptime due to swap-paralysis.

    I have 4G of RAM on my desktop (I doubled the RAM for $60 after I bought it) and the only time my system swaps is when I have mmap()'ed an 8G file.

    Similarly, on my 512M netbook, I don't exceed RAM with crazy things like "make -j64 bzImage". Even with wear-leveling, swapping to SSD is bad form. I'd rather swap over NFS to spinning platters, than to SSD.

    1. Re:or, plan B: by mcelrath · · Score: 2, Informative

      I believe the parent is talking about the iowait bug #12309, which, maddeningly, has nothing to do with swap, or filesystem type. You can turn off the swap entirely and still trigger the bug. Of course there are use cases where heavy swapping brings the system down, so there is a perceived improvement by most people when turning off the swap.

      --
      1^2=1; (-1)^2=1; 1^2=(-1)^2; 1=-1; 1=0.
    2. Re:or, plan B: by xemc · · Score: 2, Interesting

      I tried this, but it didn't help much.

      As I ran out of memory, it will throw away the disk cache (including copies of currently running programs, IIRC) until it's constantly running back to the disk to grab the next chunk of needed code or data. At any rate, I had the exact same symptoms, but perhaps more acutely. A SSD might really help this as the random access thrashing wouldn't delay I/O nearly as much..

      Linked to by the article, this might address this situation: http://www.phoronix.com/scan.php?page=news_item&px=ODQ3Mw

      My solution was to learn the key combination Alt-SysRq-F - this basically tells the kernel to find the process taking the most memory and kill it. Hitting this (possibly a couple times) was the only realistic way to solve the situation, as I couldn't get to a terminal (due to the system being totally unresponsive) to check the currently running processes. (see also: https://secure.wikimedia.org/wikipedia/en/wiki/Magic_SysRq_key ) Note: it might need to be enabled, though in my experience it was enabled for some of the mainstream distros.

    3. Re:or, plan B: by jones_supa · · Score: 4, Informative

      Turn off swap, if you can. The cost of memory is now less than the cost of the stress and lost uptime due to swap-paralysis.

      Actually even with no swap you will jam Linux when you run out of memory. Things like system libraries get thrown out of memory cache, but are soon needed again and read from the disk. This kind of circus can go on for half a hour until the actual OOM killer gets into the game.

    4. Re:or, plan B: by mcelrath · · Score: 2, Interesting

      That actually makes a lot of sense, but I've never heard this explanation before. It also seems relatively easy to deal with... e.g. keep a "reload count" and if things being flushed from the memory cache are immediately reloaded, invoke the OOM. Or, the VM system is swapping the wrong things out. Your explanation also makes perfect sense in that I've observed it has nothing to do with swap or filesystem type.

      --
      1^2=1; (-1)^2=1; 1^2=(-1)^2; 1=-1; 1=0.
  23. Actually understand the benchmark, then criticize by Zero__Kelvin · · Score: 5, Insightful

    "Compiling the kernel isn't a useful benchmark. How well does it deal with running Adobe Air?"

    Obviously you've never compiled a kernel passing -j64 to the make process. If you had, you would know that all your CPUs would be pegged (indeed -j7 pegs all 8 cores on my laptop.) Of course that is not the benchmark part. The point is that with an "all your processors are belong to kernel build" condition, group scheduling allows there to be essentially no perceived slowdown for interactive GUI/Window manager based computing. You probably should have figured out that you were missing something when Linus Torvalds didn't object to the benchmark and the results. Seriously, this is a major point to understand: When it comes to the kernel, in a fight between your knowledge and Linus', Linus wins.

    --
    Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
  24. 10GUI and similar GUIs are overrated by TheLink · · Score: 2, Insightful

    10gui just _looks_ nice to the naive, and probably OK for people who only can cope with a few windows open at a time. But I don't see how it's actually going to be faster in task switching than using alt-tab, or clicking on task bar buttons.

    The 10GUI interface would just get in my way a lot.

    I often have about 30 windows open (I have a double height taskbar) - ssh sessions, browsers for work, browsers for nonwork (e.g. slashdot :) ), IM windows, editor, email, virtual box machines, file managers, it all starts to add up. I find opening and closing stuff only to reopen them again is usually a waste of time - why close an app if you're not running out of memory and you can still remember which task button raises it? So if a colleague on IM says: "hey can you restart XYZ again?" I don't have to ssh in, and etc. All I need to do is just click on the correct task button, press up arrow, confirm its what I want, press enter.

    Sad to say, I find Windows XP/7 is so far best for handling stuff like that. Even better than OSX.

    I tried doing the 30+ windows thing on OSX, using Expose. But it's just slower - more steps to get from one window to another. In contrast, on windows I can just click on the desired task button and that's it, no need for two clicks, or click then pause or other bullshit. Keep in mind, I'm not saying Windows is the best possible, there's still room for improvement. For instance, it'll be nice to be able to "alt-tab" from one browser tab to another browser tab (so much so that sometimes I open new browser windows just to be able to alt-tab between them).

    KDE when I last used it was stupid. They sort tasks top to bottom first then only left to right. So if you have a double height taskbar and you close one button in the middle, all the buttons to the right of the closed button change position! That is so stupid.

    If you think it's ridiculous to have 30 windows open, keep this in mind - nearly any crappy GUI can seem cool and easy for a workload that only has 3 windows open. It's when you need to juggle lots of tasks at the same time that's where the GUI either adds value or gets in the way. On-topic analogy: it's just like an O/S, a crappy kernel can seem good when you only have 3 concurrent processes. It's when you have 30 concurrent _running_ processes that you find out whether the kernel's IO and CPU scheduling is good, mediocre or poor.

    I would prefer a GUI that's good for the naive/noob users, but at the same time provides short-cuts that can speed things up immensely for users that are willing to learn them.

    GUI designers should not assume that users are not able to learn "fancy" stuff. Just watch an experienced Starcraft player (actions per second and all that ;) ) or some other competitive gamer, or watch a skilled person handling a Point-of-Sale machine.

    A great UI should be able to hyper-augment humans. To paraphrase a perlism, a great GUI should make simple things trivial, and difficult things easier.

    Desktop GUI designers should not be saying "most people don't do difficult things so let's just handle the simple case".

    --
    1. Re:10GUI and similar GUIs are overrated by falldeaf · · Score: 2, Interesting

      I agree with you to a point but I wouldn't agree at all that just any gui or none at all would work for someone who only uses three or four programs at a time. You still need to efficiently switch between the apps, or view them at the same time, not to mention all the other types of data that is persistent like time, weather background apps, notifications, etc. I'm certainly not intending to flame you but I'd completely disagree with you that the linux desktop is only good for a browser or screen. I'd argue that it's much better than XP. ( I can't say about win7 ) What specifically about windows desktop is making your experience much better than the Ubuntu desktop? Have you tried the Ubuntu desktop lately?

      --
      check out the Mp3 Garbler I built!
    2. Re:10GUI and similar GUIs are overrated by Fred+Or+Alive · · Score: 2, Informative

      For instance, it'll be nice to be able to "alt-tab" from one browser tab to another browser tab (so much so that sometimes I open new browser windows just to be able to alt-tab between them).

      Ctrl-Tab.

      --
      10 PRINT "LOOK AROUND YOU ";
      20 GOTO 10
    3. Re:10GUI and similar GUIs are overrated by TheLink · · Score: 2, Informative

      Nope. Not the same thing, unless you only have two tabs opened.

      alt+tab deals with windows in terms of "most recently used".

      ctrl+tab goes to the next tab in "position". ctrl+shift+tab goes to the previous tab in "position". They don't do "most recently used tab".

      --
  25. Re:Wasn't there a desktop friendly scheduler rejec by kangsterizer · · Score: 4, Interesting

    Actually Linus lost track of many such things because too self centered or ego driven (which happens to most of us when you such success and things to deal with but anyways)

    This very patch is a prime example, if it goes *default* in the kernel.
    It's a patch that favors *only* Linus's usage of linux: Browse the web while his kernel compiles. Now imagine you start your video from a tty (mplayer blah_1080p.avi) and it takes 95% cpu to be smooth, then you start your browser.. uho.

    In BeOS I could^H^H^H *can* (haiku, too) start 5 videos on and old PC, browse the web and:
    - the browser is smooth like butter
    - the 5 videos are a bit choppy (no miracles but that the point) but they all run at the same speed

    Now _that_ is what I want a desktop scheduler to be like.

    With more criticism he could see that some would want this auto grouping option, but the majority wouldn't. Now what does that tell us?
    It tell us that it's _either_:
    A/ Not the best solution (i.e. our scheduler sux)
    B/ Grouping should be smarter or more easily configurable (it's currently configurable in the previous kernel version and can do just what this kernel patch does!)

  26. Slashdotted... by Ingineerix · · Score: 2, Funny

    Obviously they didn't apply the patch to their web server first...

  27. Re:Just say it by Enderandrew · · Score: 4, Insightful

    Occassionally, yes. But usually when Linus flames someone on the LKML he is entertaining, and is right. This was an instance where Linus just seemed to be a dick for no reason.

    --
    http://blindscribblings.com - Tasty pop-culture in conceptual fashion.
  28. Re:Just say it by butalearner · · Score: 2, Interesting

    So is Linus a dick?

    I'm pretty sure this is a well-known and widely-accepted fact, even by the man himself. This is almost certainly why the submitter quoted him as saying, "Good job." That's unusually high praise coming from Linus.

  29. Re:Wasn't there a desktop friendly scheduler rejec by Enderandrew · · Score: 3, Interesting

    Kernel benchmarks are always a point of contention. But interbench and all the standard benchmarks did show a marked improvement with the CK patchset and the Staircase scheduler.

    If Linus didn't really believe it was an improvement, then why did he eventually call on Ingo to write a very similar scheduler?

    Linus didn't want to admit he was a jerk who made a flippant personal decision rather than focusing on the best code.

    --
    http://blindscribblings.com - Tasty pop-culture in conceptual fashion.
  30. Re:Wasn't there a desktop friendly scheduler rejec by Enderandrew · · Score: 2, Insightful

    I think part of the reason that Linus is more accepting of this change rather than replacing the entire scheduler (like Con Kolivas pushed for) is that Linus likes small, neat patches. And I think Linus gets offended when someone wants to rip out large sections of the kernel and replace them.

    I often wonder how much old, legacy code there is in the kernel that is just overlooked. Anytime you carry code for that many years, you're bound to have some legacy systems that can due to be replaced.

    --
    http://blindscribblings.com - Tasty pop-culture in conceptual fashion.
  31. Re:Wasn't there a desktop friendly scheduler rejec by stiggle · · Score: 4, Informative

    Its explained in the BFS FAQ http://ck.kolivas.org/patches/bfs/bfs-faq.txt

    Why "Brain Fuck"?

    Because it throws out everything about what we know is good about how to design a modern scheduler in scalability.
    Because it's so ridiculously simple.
    Because it performs so ridiculously well on what it's good at despite being that simple.
    Because it's designed in such a way that mainline would never be interested in adopting it, which is how I like it.
    Because it will make people sit up and take notice of where the problems are in the current design.
    Because it throws out the philosophy that one scheduler fits all and shows that you can do a -lot- better with a scheduler designed for a particular purpose. I don't want to use a steamroller to crack nuts.
    Because it actually means that more CPUs means better latencies.
    Because I must be fucked in the head to be working on this again.
    I'll think of some more becauses later.

  32. Re:Wasn't there a desktop friendly scheduler rejec by GooberToo · · Score: 4, Informative

    BFS makes the classic trade offs which Linus and almost all others absolutely agree is a bad decision for core inclusion. BFS trades performance for latency. Basically you get really good interactive performance in exchange for massively losses in over all throughput and efficiency. Furthermore, BFS sits on a horribly slippery slope in that the level of *inefficiency* scales wonderfully with core count. Basically, the more cores you add, the more time BFS spends BF*cking around.

    Basically BFS only makes sense on single or dual core systems which will primarily be used as a desktop. After that, it better be a dedicated desktop system because compared to the stock kernel, performance is going to royally suck, despite latency being fairly good. But then again, BFS was never really designed to address scalability - its always focused on latency and a superior interactive desktop experience. By most measures it works, but at a heavy cost.

  33. Re:windows by WhiteDragon · · Score: 3, Informative

    Was I the only one thinking about Amigas and Alphastations?

    Amigas had so much offloading that you could pull the CPU out and still move the mouse pointer.

    --
    Did you mount a military-grade, variable-focus MASER on an unlicensed artificial intelligence?
  34. Re:Wasn't there a desktop friendly scheduler rejec by GooberToo · · Score: 4, Insightful

    Its been fairly well documented as to what happened. Linus is an egotist; as are many smart people, including others on the LKML. It seems Con has a fair ego himself with somewhat gruff interpersonal skills. The combination put him at odds with a lot of people. Generally speaking, people with large egos, don't like others who know more than they do, especially when its their pet project. Furthermore, Linus already had some people he trusted, who also had their ego's hurt by Con's work.

    So the line was drawn. Linus and his trusted lieutenants on one side and Con on the other. Linus with his lieutenants, all with hurt egos from a slightly abrasive developer who clearly understood the problem domain better than all of them, simply decided he preferred his pride and undue ego over that of Con's potential contributions.

    Not surprisingly, this type stuff happens ALL THE TIME amongst developers. I can't tell you how many times I've seen personal pride and ego take priority over extremely well documented and well understood solutions. Not to mention, frequently, the same documentation which explains why its a good decision, also explains why the decision of pride is an incredibly bad decision; with a long history of being very dumb. Despite that, egos frequently rule the day. So its hardly surprising that Linus isn't immune.

  35. Re:Wasn't there a desktop friendly scheduler rejec by Beelzebud · · Score: 2, Informative

    I have Arch Linux running on an old single core Athlon based machine, and about two months ago I compiled the Arch kernel to use BFS, because I had heard it was good for the type of machine I was using. My experience pretty much agrees with what you're saying here. I wish I would have read something this honest about it before I bothered to set it all up and compile the kernel.

    At first glance it really seems to improve system responsiveness in regards to user input. However this comes with a gigantic trade off. As an example: If I had a standard definition xvid file playing, the video would literally pause while the system loaded other programs like Firefox, Nautilus, etc. To me that is unacceptable. User input is nice, but if it's choking the entire rest of the system, it isn't something I want to use. The standard scheduler that comes with the kernel might not be perfect, but it will continue playing video while it opens up other apps.

  36. Re:windows by Bing+Tsher+E · · Score: 2, Interesting

    All the little sister chips could do most of the work. Which is what killed the Amiga. It was a cluster of ASIC chips, and that doesn't scale well to incremental performance upgrades the way a new, faster x86 chip every six months does. Who's going to design a whole new set of ASICs every six months? Nobody in their right mind.

  37. Re:Yes, linux could improve. And? by Ltap · · Score: 4, Insightful

    Indeed, I find that Linux has an almost miraculous ability to convert users into developers. I've encouraged several friends over the years to use it, and out of those that have actually done it, most have not just stuck with it but have even surpassed me in some ways. It can take a teenager or young adult who knows barely anything about coding or even much about computers and can turn them into a coder or admin in no time. My theory is that people follow a sort of a path:

    1. They use a bloated (but more immediately user-friendly) distribution like Ubuntu.
    2. They hear about other users with lighter software and try it out. It requires a bit more configuration to be the way they want it to be. In the process, they learn more about their system and they learn many useful things.
    3. The drive for improved performance and usability leads them to learning more and more and doing deeper and deeper configuration until they know a great deal and are very comfortable with their system.
    4. The "scratch that itch" (ESR) effect comes into play; they see deficiencies in existing software and go out to make their own.
    5. Before long, they are contributing to several projects, have a technical blog, and are advanced users.

    It seems to be some sort of natural progression and it's interesting to see it happen over the period of several years. More significantly, Linux seems to turn a higher percentage of basic users (even those of the luser variety) into developers and advanced users. This seems to be why Linux progresses at such a fast pace; its users actively encourage other users to involve themselves on a deeper level.

    --
    Yet Another Tech Blog
    (but so much more, including game and movie reviews)
    http://yanteb.peasantoid.org
  38. Re:Yes, linux could improve. And? by ciggieposeur · · Score: 4, Insightful

    Back in the 80's and 90's many DOS users followed the same path. BYTE, PC Magazine, and even PC Computing provided essays on "how it works" and source listings for 8086 ASM and BASIC programs. But somewhere around the time of Windows 95, things seemed to change and it became expected that the "average user" had no interest or time in learning how anything works. I remember that desire to Not Know Or Care as one of the major friction points between the DOS user base and the Windows (and Mac for that matter) user base.

  39. Why can't the 'raise priority' rule be changed by Rob+Y. · · Score: 2, Interesting

    I know Linux wants to be POSIX compliant, but I don't see any harm in changing nice like so:

    1. Store the original nice value of a process in the kernel's process table.
    2. Allow priority to be lowered by anybody.
    3. Allow priority to be raised by anybody as long as it does not surpass the original nice level.
    4. Require superuser to go beyond the original nice level (and reset the saved value if they do).

    That would be no more dangerous than the current system, but would allow apps to lower their priority temporarily when they go off to perform 'batch-like' processes, restoring it when they return to interactive mode.

    --
    Posted from my Android phone. Oh, I can change this? There, that's better...
  40. Seriously? by celtic_hackr · · Score: 2, Interesting

    I've been a Windows user since Windows version 1.01 (that used real mode DOS, and text based graphics). Windows has never, ever, ever been "snappy". At least not out of the box. There used to be third-party utilities (eg Norton Desktop), that made the experience better. But, it does depend on what you use it for. If you don't have tens of thousands of files to maintain, and only use it to watch pr0n and for email, and that Christmas letter. Then yes, you will probably have snappy performance.

    If however you use it for business, and write dozen of documents a day and have millions of lines of code in thousands of files, and are creating videos and music, then you will not see snappy Windows performance. That said, unless you've been using the -ck kernel patch (I downloaded and stored on my own server when CK left in storm), you've not seen snappy performance in any full blown WM in Linux either. Now, it looks like they finally got a kernel patch that can compete with Con's 6 year old patch. Congratulations Linus! It only took you and your crew six years to duplicate the work of one man that you bullied out of the kernel group!

    Running Linux since 1991! Wow it's almost been 20 years since I attained enlightenment!

  41. Re:Yes, linux could improve. And? by ultranova · · Score: 3, Interesting

    Apparently your friends are far more intellectually curious than any of mine are.

    Or he is less willing to solve problems than you are. Ever thought of that?

    Look, you want easy entertainment, you get a DVD player and a TV. You want to get a bit beyond that, you get a gaming console. You want to run with the Internet, you better be willing to learn how to use a PC.

    It never ceases to amaze me how smart my parents can be when I'm not available, and how dumb they can degenerate to when I am. It's not even instant Alzheimers, it's like they suddenly can't even read. Could all that just possibly be... laziness?

    --

    Forget magic. Any technology distinguishable from divine power is insufficiently advanced.

  42. Re:Yes, linux could improve. And? by jbolden · · Score: 2, Insightful

    Part of the problem was the jump in difficulty. Windows 286/386/3.0 was difficult enough to program that to do anything useful required more than just basic skills. Also BAT worked sorta well as a scripting language there no scripting language for windows.

    Basically the difficult shot up suddenly when it came down again with things like visual basic the paradigm had changed. Incidentally its still fairly hard in windows to manipulate hardware.

  43. Re:Actually understand the benchmark, then critici by Zero__Kelvin · · Score: 2, Informative

    "You'd think so, but:

    "Initially a Phoronix reader tipped us off this morning of this latest patch. "Please check this out, my desktop will never be the same again, it makes a *lot* of difference for desktop usage (all things smooth, scrolling etc.)...It feels as good as Con Kolivas's patches.

    Emphasis mine. Fuck Linus ..."

    You either missed it, or are conveniently "failing to mention it", but the idea was Linus' to begin with, and he wasn't expected such great results. There are reasons why Con's patches weren't used and this one is used. I'm not about to debate it here, as it has been beaten to death already, and with logic like "fuck Linus" you clearly have me outclassed in any such debate.

    --
    Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
  44. Re:Just say it by dbIII · · Score: 2, Interesting

    Let's get back to reality instead of pretending it's a clash of supermen with instant insight. I think the reason was the patch submitter only looked at a small subset of the effects of his patch and did very little testing to the extent that he only even had linux on his development machine and only used it to do his patches in the free time he had. You don't know if your own cooking is any good if you don't eat it yourself. To be blunt it was about a respected expert in another field (medicine) finding that with his part time hobby it takes time and work to produce something experts in another find acceptable as a finished result and then getting upset about not getting the level of respect he gets in his own field.

  45. Re:Yes, linux could improve. And? by vegiVamp · · Score: 2, Insightful

    I have to say that I went rougly the other way: I started with Linux because I was highly discontent with the then-current Microsoft offerings, finding them unwieldy and unstable. I started way back on Slack 6, where the first step of the installation process was compiling your own kernel and gcc three times to get them pure :-)

    Later I switched to RedHat (3 or 4, I think), and was also messing in some code - mostly for my own benefit, can't recall ever committing anything because I didn't think the changes I made were useful for enough people to be included.

    These days, I just run Ubuntu - I've been through the whole trial-and-error config file thing, it's given me a good understanding of many things, but now I just want something that simply works so I can get on with other stuff.

    These days, the MS offerings (well, some of them) are at least a lot more stable, although I personally still find them unwieldy - I guess I'm no longer used to having my OS babysit me. I even occasionally recommend that a friend who needs a reinstall sticks with windows, depending on his needs, although I always offer them Linux, too. I flat out refuse to support windows boxen, though :)

    --
    What a depressingly stupid machine.
  46. Re:Wasn't there a desktop friendly scheduler rejec by LingNoi · · Score: 4, Informative

    It's been fairly well documented but you still seem to ignore the reality of what happened.

    http://kerneltrap.org/node/14008

    Read all that then tell me that Linus has an ego here. It seems to me that Linus is the only level headed guy and you're just trying to distort what really happened.

    - He choose CFS over SD because SD behaviour was inconstant among users' computers
    - Con would argue with people sending him problems rather then accept them as problems with his code
    - Linus didn't want code in the kernel that would only work well for certain users
    - Linus didn't want code maintained by someone that was so hostile to others' critique
    - Linus states that he believes the desktop is an important platform

  47. Re:Yes, linux could improve. And? by Ltap · · Score: 2, Interesting

    This is the great battle with distributions like Ubuntu. There's a fine line between auto-configuring and helping the user make decisions (or making decisions for the user) and preventing the user from making decisions on their own.

    --
    Yet Another Tech Blog
    (but so much more, including game and movie reviews)
    http://yanteb.peasantoid.org
  48. Shades of MVS, MFT, and other IBM OSs by lsatenstein · · Score: 2, Interesting

    In 1980, The IBM mainframe operating systems included "Performance Groups". Workloads were classified into Low CPU interactive and High CPU background and also some must complete performance group(s). It like being born again to see it coming to Linux as a new patch. Now I would love to see a "VM CMS" environment under the linux kernel

    --
    Leslie Satenstein Montreal Quebec Canada
  49. Re:Yes, linux could improve. And? by Spugglefink · · Score: 2, Interesting

    But somewhere around the time of Windows 95, things seemed to change and it became expected that the "average user" had no interest or time in learning how anything works.

    It was a combination of Windows 95 being comparatively idiot-friendly along with an absolutely massive influx of idiots when public access to the Internet started to take off, and the web began to come into its own.

    Those two things happening at about the same time changed the world in a lot of ways. For example, the terms "top posting" and "bottom posting" came into existence right around this time, as millions of new users exposed to email for the first time got their hands on Outlook Express, with its completely broken editor that made formatting a message correctly almost physically impossible.

    When I really think about it, the biggest difference between being an old-school DOS hacker and being a modern Linux hacker was that in the DOS days we had BBSes, and those of us with net access had Gopher and Archie. I got out of development around 1995 not simply because everyone demanded GUI applications, and early Windows development sucked, but also because when I first got on the web, I found a good many alternatives to every application I had ever developed. You think KDE vs. GNOME is a big waste of resources? One of the DOS applications I actually made money on was a utility that has a close equivalent as part of the GNU toolchain, and I abandoned development when I realized there were about six alternatives that predated my own, and were further along.

    We DOS hackers were working alone for the most part, or in small, isolated teams. The web changed all that, and then sites like SourceForge took it all to the next level. Now, collaboration is easy.

  50. Re:Yes, linux could improve. And? by Lanteran · · Score: 2, Funny

    Use linux if you want to know why your computer works. Use mac if you don't want to know why your computer works. Use DOS if you want to know why your computer doesn't work, and use windows if you don't want to know why your computer doesn't work.

    --
    "People don't want to learn linux" hasn't been a valid excuse since '03.