Andrew Pollack's Blog

Technology, Family, Entertainment, Politics, and Random Noise

Linux ext3 file system performance wierdness

By Andrew Pollack on 09/02/2010 at 07:01 AM EDT

I've had trouble off and on with a couple of Domino servers on linux. The server goes pear shaped and when I ssh in and look at the console, Domino is reporting drive errors. If you attempt to do anything on the OS at all, you quickly see that the whole file system has shifted into a "read-only" state. This is a bit like a car with a transmission problem shifting into "limp-home" mode. Needless to say, Domino doesn't like being unable to write to the disk.

It has happened to me specifically with the most recent updates of CENTOS5, but since that's the only distribution I use I can't tell you that it's specifically related to the distro. I don't think so, because I've seen reports of others with similar issues. I also know that it isn't Domino's fault, but rather that Domino is so disk intensive that it tends to be one of the places where the problem comes up.

The problem manifests when the disk is so busy that at some point the driver just can't keep up. When this happens in the Windows server world, either Domino will crash or the entire OS will just halt. Usually people think this is a RAID controller problem and start replacing hardware. In fact, it's just the driver reporting an error state to the OS that it can't keep up and the OS reacting badly. On linux, the ext3 file system (roughly equivalent to the ntfs file system in Windows) will react to a any write fault based on an option stored in the superblock. The options are "continue", which will ignore the problem and just keep chugging along; "remount-ro" which will cause the file system to remount in a read-only state; and "panic" which will essential crash the OS and reboot.

Generally speaking, the default mode is the best for most important servers. It is the most likely to have no ill effects on existing data. It will stop the server from doing anything new, however. The option to "panic" is never good. Rebooting the OS with a drive that's reporting problems is at best going to send it into a lengthy file system check, and if the problem is serious could mean the drive will never come back up at all. Since I have plenty of redundancy throughout the environment, I decided to give the "continue" option a try. You can alter the setting using "tune2fs" (e.g. $ sudo tune2fs /dev/sda1 -e continue ).

What's interesting, and purely anecdotal at this point, is that disk i/o on this machine is now performing far better, even without any errors. I'll be keeping an eye on this over the next few days and let you know if that changes. It is strange though.


  • car icon

    Server Performance

    Are your servers underperforming? Just buying new boxes isn't the answer. If you want to get better performance from your existing servers, Contact Me.
  • There are  - loading -  comments....

    re: Linux ext3 file system performance wierdnessBy Chad Scott on 09/02/2010 at 11:40 EDT
    Comment Loading
    re: Linux ext3 file system performance wierdnessBy Andrew Pollack on 09/02/2010 at 13:25 EDT
    Comment Loading
    re: Linux ext3 file system performance wierdnessBy Philip Storry on 09/02/2010 at 19:03 EDT
    Comment Loading
    re: Linux ext3 file system performance wierdnessBy mark Myers on 09/02/2010 at 12:20 EDT
    Comment Loading
    re: Linux ext3 file system performance wierdnessBy Victor Toal on 09/02/2010 at 14:25 EDT
    Comment Loading
    re: Linux ext3 file system performance wierdnessBy Chad Scott on 09/02/2010 at 16:20 EDT
    Comment Loading
    re: Linux ext3 file system performance wierdnessBy Philip Storry on 09/02/2010 at 19:19 EDT
    Comment Loading


    Other Recent Stories...

    1. 02/07/2012Religious Conservatives in politics should take careful note of the recent Komen foundation mistakeWhen the Susan G. Komen for the Cure foundation cut funding to Planned Parenthood, they weren't at all prepared for the backlash. Some outlets have reported that the initial decision was essentially the result of pressure from right wing conservative organizations, though the foundation itself says otherwise. In any case, the Komen foundation made the mistake of underestimating the size and strength of the majority in the United States who generally remain silent on the issues of birth control and abortion ...... 
    2. 02/06/2012Extended Review: EZOPower Ultra High-capacity Rechargable USB Battey PackSometimes you buy several versions of a thing before you hit on the one that really does what you wanted. This is the case for me with battery packs for my USB powered devices. I included this product in my pre-Lotusphere list of power tech to bring along, but it worked out so well that I wanted to give you a more detailed look. Portable Power - 10,000mAh rechargeable USB block($59.99 @ ...... 
    3. 01/19/2012Lotusphere 2012 – Far better than I expected. Let me explain. No, there is too much. Let me sum up.This will ramble a bit, but after a lead in I’ll try to point out some highlights, a few low lights, and an overall feeling moving forward. It turns out our friend Lotusphere was only MOSTLY DEAD. There is a big difference between mostly dead and all dead. With mostly dead, there’s still partly alive. With all dead, there’s nothing left to do but go through the pockets and look for loose change. The week turned out to be very good for me, even if at the same time it presented the most challenges I’ve had ...... 
    4. 01/19/2012BP121 - Performance Programming -- Presentation and Demo database as presented 
    5. 01/16/2012Some people know all about RIGHTS and nothing about WHAT IS RIGHT. Here is the story behind #OccupyPelican  
    6. 01/12/2012The Geek Travel Gadgets - Keep yourself powered up 
    7. 01/09/2012Apple: I'm just not that into you. Leave me the hell alone! 
    8. 01/09/2012Laptop prep for Lotusphere 
    9. 01/08/2012Four days of prep time left, then the annual pilgramage to Orlando 
    10. 12/19/2011TIP for converting slides from previous formats into Symphony and updating all your formatting 
    Click here for more articles.....


    pen icon Comment Entry
    Subject
    Your Name
    Homepage
    *Your Email
    * Your email address is required, but not displayed.
     
    Your thoughts....
     
    Remember Me  

    Please wait while your document is saved.