Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    aisagtr
    Guest

    Default Server Not Loaded But Swapping

    We have a Core2Duo 2.2 and the stats are as follows:

    Cpanel 11 Stable on CentOS 5

    Our server load is normally 0.7 (2 cpus)
    Memory usage is 20%

    We have never experienced any spike in load but our SWAP is always at 5% to 10%

    This is very weird as we have enough RAM.

    What could be the cause, please?

    HTTPD.CONF is setup as follows:

    Keepalive = Off
    MinServers = 38
    MaxServers = 58
    StartServers = 88
    Max Clients = 256

    MaxRequestsPerChild = 10,000
    Last edited by aisagtr; 10-31-2007 at 07:02 AM.

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Note that not all OSs/distros will wait for physical RAM to be filled before using swap.

    A technique employed in some environments is that the OS determines what is likely to only be used on rare occasion and throw that into swap (even if physical RAM is available). This leaves physical RAM available should it need to all be used very quickly. Also, it eliminates the need to move this stuff to swap at a later time (likely when the system is under more strain) as it is already in swap.

    So it doesn't necessarily mean anything is wrong . I understand myself, I like to have as much stuff in physical RAM as I can due to improved I/O performance. I got annoyed when I started putting tons of RAM in my systems and saw available physical RAM when swap was being used. Now that I understand why that happens, I have a tendency to agree with how some Operating Systems allocate swap vs. physical RAM.

  3. #3
    aisagtr
    Guest

    Default

    Thanks!

    Most informative but it does slow the server down somewhat?

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by aisagtr View Post
    Thanks!

    Most informative but it does slow the server down somewhat?
    From a theoretical perspective, I would assume there is some slowdown. However, in practice I haven't noticed a performance hit large enough for me to notice. Then again, if something goes from being rarely used to being frequently used (or vice versa), the OS typically will adjust things accordingly.

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by aisagtr View Post
    Most informative but it does slow the server down somewhat?
    During the initial setup of your server, how many Memory RAM do you have on your server, and how many MBs did you assign to SWAP?
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  6. #6
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    May be no help at all, but I posted to this thread a while back about mod_security.

    http://forums.cpanel.net/showthread....t=mod_security

    I had seen some load and swapping when I didn't think there should have been and tracked down the comments at gotroot. (linked from that thread above) I played around with my rulesets and was able to eliminate the swapping I had.

    YMMV

Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 02-05-2011, 05:14 PM
  2. Swapping Out Drives in Live cPanel System
    By tbutler in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-27-2010, 02:32 PM
  3. Swapping Apache for Lighttpd
    By Dom W in forum Optimization
    Replies: 1
    Last Post: 06-15-2010, 11:25 AM
  4. Swapping IP's to another server
    By Snowman30 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-25-2005, 08:13 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube