Linux Servers - Important Kernel Update

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SplitInfinity
    Confirmed User
    • Dec 2002
    • 3047

    #1

    Linux Servers - Important Kernel Update

    I am posting this because there are alot of people suffering from this
    hard to identify problem. So I researched it and came up with the solution.
    My gift to the universe.

    Is your server eating up memory for apparantly no reason?
    Does your memory usage continually grow in 4096 byte increments (approx.)
    and fill up all available RAM then being using swap space until it's full
    as well? Is your servers load average like 900 or some crazy high number?

    The culprit of your problem may be as simple as the kernel version you
    are using.

    Everyone who had this problem that I helped was using kernel version:
    2.6.14, however it might affect other releases as well.

    In my research, I have found that this kernel release had a big bad memory
    leak related to buggy ext3 filesystem code.

    Your server will appear ok until you start up apache or mysql or anything that uses the hard drive. The problem appears to manifest itself as a
    side afect of apache (because it shows up typically only when apache is running, which is misleading). Techs will immediatly jump to apache and try solving the problem by tuning apache's MaxClients and Keep Alives and MaxRequestsPerChild.... to no avail. This is because there are settings in
    Apache to combat "memory leaks", which are actually not for linux systems
    and won't help in this situation.

    The buggy ext3 filesystem code in the 2.6.14 Kernel eats up memory
    during disk usage. On a lightly used server, the problem may take
    weeks to show up (do you have to reboot your server every week or so?).

    On a heavily used server, it may take all but 30 minutes of usage. The rule of thumb is the more you use the hard drives, the quicker it eats up the memory, and the quicker your load goes out of control due to Virtual Memory Swap Thrashing.

    Your load goes high because of the swap space thrashing and swapping pages continually in and out of memory. This is what causes the load, not apache or mysql.

    The solution? Upgrade to kernel 2.6.16, reboot and enjoy the new relaxed attitude your server will have.

    Happy Memorial Day everyone!
    -SpLiTiNfInItY-
  • SplitInfinity
    Confirmed User
    • Dec 2002
    • 3047

    #2
    Not much attention to this as I posted it over the holiday... bumping just for the sake of giving everyone the opprotunity to read. :-)

    Cheers.

    Comment

    • sex69
      Confirmed User
      • Feb 2004
      • 671

      #3
      Thanks!
      Bump for this
      HotNiches.com-Add Site
      Porn Sites- Submit For Adult Sites-Add URL Adult Webcams Sex Webcams Erotic Search Reality Sex Sex Videos

      Comment

      • Brujah
        Beer Money Baron
        • Jan 2001
        • 22157

        #4
        Thanks.. using 2.6.14 on my servers it looks like.

        Comment

        • Jay_StandAhead
          Confirmed User
          • Jul 2002
          • 3103

          #5
          I've had a memory leak problem with Red Hat for ages... kjournald seems to be taking up all the memory

          Our Programs: StandAhead | IndieBucks | BoyCrushCash | Phoenixxx | EmoProfits | BritishBucks | HunkMoney | LatinoBucks
          Make $$$ with Gay! Lowest Minimum Payouts in the Business, Perfect Track Record, Amazing Sites

          Comment

          • Theo The Theologian
            Confirmed User
            • Mar 2005
            • 1099

            #6
            You're such a nerd. Great info.


            I'm a hate-fuelled umbrella-wielding photographer with a winning smile, and a way with the ladies.

            Comment

            • babsy
              Confirmed User
              • Mar 2006
              • 282

              #7
              2.6.8 for me. This kernel is nearly 2 years old! Fuck upgrading when it works just fine. Too many times I've had machines not come back up properly when trying to upgrade the kernel remotely.

              CASH APARTMENT V2 IS HERE!
              NATS POWERED, 60-70% ON ALL REBILLS, FREE CONTENT, MGPS, FHGS, RETAINING MEMBERS NETWORK!
              A SIMPLE NO B.S PROGRAM - ICQ 239 806 698

              Comment

              • PussyTeenies
                Confirmed User
                • Feb 2005
                • 6496

                #8
                thnx
                allready recognized the problem
                Need adult hosting?

                Contact us!
                WARM Hosting

                Need an IT solution? or someone to check your site and security? Nossie - IT Professional

                Comment

                • leg4
                  Confirmed User
                  • May 2003
                  • 4429

                  #9
                  Thanks very much for this post...We have had some weird server problems and this may be it.

                  Will have the Admin look in the a.m.

                  Thanks for taking your time to post this info and share it with other webmasters.

                  Love GFY when its useful, Hate GFY when its "would u hit it" posts...


                  THANKS!
                  >>> Contact me here

                  email me here

                  Comment

                  • SplitInfinity
                    Confirmed User
                    • Dec 2002
                    • 3047

                    #10
                    You are welcome.

                    Anyone got some other odd problems I can help solve?
                    :-)

                    Note: I can't help with the wart on your penis. :-) LOL

                    Comment

                    • toddler
                      Confirmed User
                      • Jun 2002
                      • 1911

                      #11
                      Originally posted by SplitInfinity
                      You are welcome.

                      Anyone got some other odd problems I can help solve?
                      :-)

                      Note: I can't help with the wart on your penis. :-) LOL
                      can you tell me why the linux autofs code sucks as bad as it does?
                      http://www.flickr.com/photos/zoddler/

                      Comment

                      • SplitInfinity
                        Confirmed User
                        • Dec 2002
                        • 3047

                        #12
                        "can you tell me why the linux autofs code sucks as bad as it does?"


                        The autofs code poorly spent its $440.00 on this school of trade, and
                        is therefore why it sucks bad.

                        http://www.themoscowtimes.com/storie...06/11/013.html

                        Comment

                        • SplitInfinity
                          Confirmed User
                          • Dec 2002
                          • 3047

                          #13
                          autofs (the userland part) is a little dodgy. It can get upset pretty easily with NFS mounts as can amd (the alternative, written by CSG at Imperial) is only a little better. Both are pretty huge programs for doing a simple task. I think I'll write a replacement over the weekend.

                          Comment

                          • teksonline
                            So Fucking Banned
                            • Jan 2005
                            • 2904

                            #14
                            who the heck uses linux for a webserver?

                            Comment

                            • drama
                              Confirmed User
                              • Jul 2004
                              • 847

                              #15
                              Run FreeBSD n00bs

                              Comment

                              • RobbieRye
                                Registered User
                                • Oct 2005
                                • 616

                                #16
                                Now there is a great post by a hosting company.

                                Comment

                                • SplitInfinity
                                  Confirmed User
                                  • Dec 2002
                                  • 3047

                                  #17
                                  Thanks RobbieRye.

                                  Comment

                                  • ne0
                                    Confirmed User
                                    • May 2006
                                    • 781

                                    #18
                                    Nice info Chris.

                                    Originally posted by babsy
                                    2.6.8 for me. This kernel is nearly 2 years old! Fuck upgrading when it works just fine. Too many times I've had machines not come back up properly when trying to upgrade the kernel remotely.
                                    That's why there are so much hacked servers around.
                                    "why update if it's working?" looks the same as "why drive a ferrari when your old car still running"
                                    hai2u

                                    Comment

                                    • Makingcoin
                                      Confirmed User
                                      • Aug 2002
                                      • 8919

                                      #19
                                      Thanks for the heads up Chris.

                                      www.MAKINGCOIN.com

                                      icq. 166-662-831
                                      "Start making large coin!"


                                      Daddy I Get Paid To Be A Whore - Coming Soon

                                      Comment

                                      • SplitInfinity
                                        Confirmed User
                                        • Dec 2002
                                        • 3047

                                        #20
                                        "That's why there are so much hacked servers around.
                                        "why update if it's working?" looks the same as "why drive a ferrari when your old car still running" "


                                        So true. :-)

                                        Comment

                                        • SgtStrider
                                          Confirmed User
                                          • Oct 2005
                                          • 1196

                                          #21
                                          thanks bro, ill keep this in mind

                                          5% Webmaster Referrals - 45% Payouts - Exclusive Content

                                          Sgt Strider
                                          http://www.JustJassie.com
                                          [email protected]
                                          ICQ: 227-437-902

                                          Comment

                                          Working...