Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    May 2006
    Posts
    52

    Default If you are running CentOS 4.3 with Cpanel - speed up your server

    Just thought I'd share this information with you.

    CentOS 4.3's latest Kernel (as far as I'm aware - pre 2.6.9-37) is very buggy when it comes to RAM usage and swap memory usage. It swaps needlessly and doesn't utilise all of the RAM before using the swap file. Because of this you may get quite high IO/waits. Stuff like updatedb running or cpbackup will utterly destroy your box - it happened to me.

    * USE AT YOUR OWN RISK - THIS IS A BETA KERNEL *
    I've been testing this Kernel for the last couple of weeks and so far so good, haven't had a single problem with it at all and the performance increase has been VERY worthwhile.

    To fix this bad memory management 'bug', try this beta kernel:

    http://people.redhat.com/~jbaron/rhel4/RPMS.kernel/

    On a high load 4GB RAM box we've never even used the swap file since applying it - MUCH better performance all round.

    Download the relevant RPM for your setup, then:

    rpm -Uvh <filename>

    Reboot, job done.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Do you know if that kernel will be in the RHE build releases or is it just a one off compilation?
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    May 2006
    Posts
    52

    Default

    I believe it's going to be a permanent feature. One of the RedHat guys is responsible for releasing that, more of a preview towards things to come.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Great stuff, thanks for the link to it.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    i've noticed one server slowing after an update to 2.6.9-34.107.plus.c4smp

    is this also affected?

    funny thing, i upgraded the kernel and the processor on that server(from dualcore 2.8 2x1 mb cache to 3.0 2x2 mb cache) and it was slower

  6. #6
    Member
    Join Date
    May 2006
    Posts
    52

    Default

    Yes, I believe the Kernel you're using is also affected.

    Full info on the 'bug' can be found here:

    http://bugs.centos.org/view.php?id=1174

    There's a link at the bottom to a newly released development Kernel. I can't verify if the issue is solved with this one, as we currently use 2.6.9-37. In 2.6.9-37 the problem is definitely fixed.
    Last edited by Echelon17; 06-18-2006 at 11:25 AM.

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    Yes, i saw the updated kernel on the bug page.
    I'm waiting to see if the beta kernel you recommended has any issues tomorrow, under heavy load.

    All i can say is that with the beta kernel, right after boot, server uses 760 MB ram, and no swap, with the old one it was using 1.5 GB with some megs of swap too.

    Most of the memory was used by apache.

  8. #8
    Member
    Join Date
    May 2006
    Posts
    52

    Default

    I just spoke to the guys who developed the latest Kernel in the previous link and they say that it *also* has the memory fix as my version, so it should be fine.

    Glad you're seeing a difference already, it does make a huge difference in general.

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 02-24-2008, 06:07 PM
  2. Speed up mail sending with cpanel/exim server
    By gundamz in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-07-2007, 12:26 AM
  3. Using and Running WHM/CPanel on CentOS?
    By Bridge in forum New User Questions
    Replies: 16
    Last Post: 03-11-2006, 02:17 PM
  4. Problem with apache on new cpanel server running CentOS
    By EdRooney in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-20-2004, 07:22 PM
  5. DNS and Server Speed
    By SebastianC in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-06-2003, 03:41 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube