Slashdot Mirror


Vanilla Kernel 2.6 Stability vs 2.4?

chromis asks: "I am a 'Linux-from-scratch' like Linux user. I maintain my system for almost 4 years that way. I'm still using kernel 2.4, and I'm a little bit afraid for updating to 2.6 because of the problems like stability issues, driver subsystem problems, etc. I once tried 2.6.0 a long time ago, but I experienced random freezes which I could not diagnose. We all know about the development model issues, and I often read complaints about current kernel development practices. Now that kernel 2.6.13 is out, I really want to ask Slashdot: if you are a vanilla 2.6 kernel user, how are your experiences with these plain kernel.org 2.6 kernels? Is it really as bad as some people claim, or is 2.6 only usable when using a distro from a large vendor like Red Hat, SuSE, etc? I really would like to upgrade to the new vanilla 2.6 kernel eventually, but I'm a little hesitant. Any advice?"

18 of 129 comments (clear)

  1. Works for me by meowsqueak · · Score: 3, Informative

    I use the vanilla kernels with moderately modern hardware (up to about 4 years old) and I have no stability issues whatsoever. I tend to stay within one or two versions of the bleeding edge release.

    The advantages of the 2.6 kernels (udev, nptl, device driver model) outweigh the disadvantages (i.e. risk) for my situation, in my opinion.

    That said, I still use linux-2.4 on my headless server, mainly because I haven't been bothered to upgrade it recently. It works fine, so I see little point in changing it.

    1. Re:Works for me by Aeiri · · Score: 4, Informative

      To really answer your question, what they ... need to know is what you'e using your computer(s) for. Are the advantages of the 2.6 kernel as listed above advantages for you?

      I've used a vanilla kernel 2.6 on Slackware for three different uses, my headless server, my media center PC, and my brand spanking new laptop.

      All 3 have worked perfectly without freezing since 2.6.5 (I didn't start using 2.6 until 2.6.5 came out). Now they are all running on 2.6.12, and they will soon be upgraded to 2.6.13.

      I'd say the organization of the configuration (make menuconfig) and the overall model the kernel is based on is much more clean and organized. I could never go back to 2.4 now.

      If you really want to test out the 2.6 kernel without installing/configuring anything, download Knoppix and try it out on your computers. If it runs well, then try it yourself, if it doesn't, then just stick with 2.4.

  2. Seems ok. by ColaMan · · Score: 5, Informative

    I've used various incarnations of 2.6 on my mythtv box. It's under fairly high load, with memory, video and disk intensive processes, has high PCI utilisation (2 capture cards, sometimes running at once). It runs 24/7, sometimes hot enough to get the CPU temp alarm beeping.

    Number of times it's had a kernel panic over the last year? Zero. Good enough for me.

    And as other posters have said, the advantages with hardware, latency patches, acpi support help too.

    --

    You are in a twisty maze of processor lines, all alike.
    There is a lot of hype here.
    1. Re:Seems ok. by spagetti_code · · Score: 3, Informative
      Its not all rosy. The kernel version (2.6.11.7) used in Knoppmyth has an issue with USB hard drives - hence my extra HDDs plugged into the myth box were attached using firewire (not that its a problem).

      My point is that the 2.6 kernel is not without its flaws - it depends which particular kernel version you get and which warts it has.

      My advice is if it ain't broke...
      Do you really *need* the hassle of the upgrade?

  3. Gentoo 2.6.13 by Professional+Slacker · · Score: 3, Informative

    I can't speak for the vanilla kernel, but the Gentoo 2.6.13 kernel borked my system something fierce. The init process grinds to an virtual stop just after loading the kernel, it took a minute and a half to set the host name, I still haven't had the patience let it finish booting. But that's the risk of using a fresh kernel. 2.6.12 didn't give me any trouble.

    --
    A Free Market requires informed intelligent consumers, such people are rare, we're in trouble.
    1. Re:Gentoo 2.6.13 by rincebrain · · Score: 4, Informative

      Seconding. Gentoo user of vanilla sources straight from kernel.org, and the gentoo sources are a lot more unstable than the vanilla sources.

      I use vanilla sources regularly, and haven't experienced any problems as a result. I recommend them to all of my Linux friends, too.

      --
      It's only an insult if it's not true.
    2. Re:Gentoo 2.6.13 by thegrassyknowl · · Score: 3, Informative

      I've heard of several issues with Gentoo kernels on Multi-processor systems.

      I just remembered the exact problems I'd heard of, and it wasn't Gentoo-specific (but it only appeared on Gentoo for some strange reason)... It was a CPU freq scaling thing with AMD64 CPUS. Apparantly the latest driver is broken and when the frequency scales down in one CPU the kernel detects a loss of sync and panics, instead of realising that the CPU frequency is scaling and compensating for it.

      It's fixed by disabling CPU frequency scaling. Apparantly AMD are working on a PowerNow patch for it, but that is just hear-say AFIK.

      --
      I drink to make other people interesting!
    3. Re:Gentoo 2.6.13 by keltor · · Score: 2, Informative

      Before people start down the decrying Gentoo path too much, realize that Gentoo offers a bunch of different kernel choices, one of which is called gentoo-sources and that is what this poster is referring to, not Gentoo using 2.6.13 or anything else. Just this one source tree. I use vanilla sources on a unstable (as in latest greatest version of software not stability) and I have not had a problem. My uptime is typically the time between when I notice one kernel version and when I notice the next kernel version.

      Crazy thing is I noticed that I had installed at least 10 different patchlevel versions of Grub inbetween kernel versions without actually using any of those versions.

  4. Re:very stable by ivan256 · · Score: 4, Informative

    Doesn't the FC3 at the end of the version string mean "Fedora Core 3"?

    That's not a vanilla kernel, it's a patched up kernel from RedHat.

  5. Most importantly, read the expert documentation. by atomic-penguin · · Score: 3, Informative
    You will need the appropriate hotplug utilities, get them here.

    The 2.6.8 kernel had an issue with CD writing (only root could do this). This has been corrected in later kernels. You may have to delv into the udev rules to get things setup the way you like. Read the fine HOWTO on writing rules for udev.

    My cd-rom did not get recognized after boot unless the ide-cd module was called before udev started. There was a mixup with tty and pty in the default udev rules around the time of switch between 2.6.7 and 2.6.8 and it obliterated the 'less' and 'man' commands. How convenient is it that I can't run 'man udev.rules'?
     
    I believe this has also been remedied since then. If in doubt I suggest taking the following steps.
    1. wget ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2 .6.x.tar.bz2
    2. tar jxvf linux-2.6.x.tar.bz2 && cd linux-2.6.x
    3. less README
    4. cd Documentation && less post-halloween-2.6.txt

     
    Title of the second document is "The post-halloween document. v0.48 (aka, 2.6 - what to expect)". That should tell you everything you need to know about upgrading from 2.4.
    --
    /^([Ss]ame [Bb]at (time, |channel.)){2}$/
  6. what /boot is for.. by Daxster · · Score: 2, Informative

    Why not put both into /boot and add both to your bootloader? There are lots of tutorials for doing that, for 'testing' in case a newly compiled kernel doesn't work.
    I have this on my Slackware -current computer. A vanilla 2.4, vanilla 2.6.10, and compiled 2.6.10 which I use and have had no issues with. I plan on compiling 2.6.13 soon, to keep up to date with bug fixes and improvements.

    --
    Death by snoo-snoo!
  7. Re:Trick Question... by DigitalReverend · · Score: 2, Informative
    --
    I read Slashdot for the headlines, because the headlines, unlike the articles, are usually original and never duplicated
  8. not perfect by Bodhidharma · · Score: 2, Informative

    I like the 2.6 kernel over the 2.4 kernel because I can play MP3s and Oggs without skips every time I refocus the window.

    On the down side, I'm running Ubuntu 5.04 on a Sony S270 laptop. I use the 2.6.11 when I want sound to work at all and 2.6.10 when I want my touch pad to work right. I've tried a couple of custom compiles of 2.6.10 and 2.6.11 but haven't gotten either to work right yet.

              Jim

    --
    A dyslexic man walks into a bra.
  9. Faster (more responsive) and udev works for me by mc_barron · · Score: 2, Informative

    Have grown to really love 2.6.x kernels. Started back in the low single digits, just upgraded to 13. NO stability issues for me, ever (at least not due to the kernel). The important things to me in 2.6: udev and better response time (switching between windows, etc). Just recently got udev working just the way I like it - can't imagine going back to the old devfs.

  10. Loving my Linux From Scratch, kernel 2.6.11.12 by qualico · · Score: 3, Informative

    Built a Hylafax http://hylafax.org/ system on top of the latest v6.1, LFS http://linuxfromscratch.org./
    Details:
    3GHz Intel Pentium 4 Processor, 1Gb RAM
    11,878.40 BogoMIPS Total, 250Gb Hard Drive
        GCC 3.4.3
        Samba 3.0.14a
        HylaFAX 4.2.1

    Gotta say it's way ahead of expectations.
    I won't touch another distro now for my mission critical.
    Although, Knoppix, http://www.knoppix.org/ and Ubuntoo, http://www.ubuntulinux.org/ are great "insert CD and run" distros, for workstations.
    Working with SlackWare seems effortless also, http://www.slackware.org/.

    Was fortunate enough to meet the fine gent who started the LFS project: Gerard Beekmans
    Highly recommended support for the project, even if it's just $5 for a beer via donations :->, http://www.linuxfromscratch.org/hints/contribute.h tml or a much needed "hints" writeup, http://www.linuxfromscratch.org/hints/.

  11. It's stable by anpe · · Score: 2, Informative

    Just don't upgrade _right now_ to bleeding edge a bleeding edge kernel (2.6.13 in that case). Wait for the dust to settle (two or three weeks) and upgrade. I've done that since early 2.6.0 releases and it works like charm.
    Note: You can install triple dotted releases (2.6.x.y asap as they only contain minor upgrades or security fixes)

  12. 2.6.13 is very stable by objorkum · · Score: 3, Informative

    I am using a plain vanilla kernel (2.6.13) on my Slackware 10.1 system, and it's very very stable. The earliest 2.6 kernels were a bit unstable for me, but since 2.6.8 or so, they have been very very stable. I notice that my self-configured 2.6.13 kernel is faster than the Slackware vanilla kernel (2.4.29). GNOME responses faster to my actions, for example.

    --
    objorkum dot com
  13. Re:2.6 is nice, kinda, maybe... by dozer · · Score: 2, Informative

    Because nobody stepped forward to maintain devfs! A number of people offered but nobody actually followed through. That should tell you something right there.

    The version of devfs that you use right now is horrifyingly buggy, especially on SMP systems. Switching to udev will take less time in the long run than trying to the keep bloaty and rusted devfs code working. Switching to udev is generally very easy.