Results 1 to 7 of 7
  1. #1

    Why is this swapping?

    Why is this swapping with 3GB+ free RAM?

    RAM: 636MB / 3940MB
    SWAP: 405MB / 4094MB

    It seems to be mainly MySQL in swap.


    Thanks.

  2. #2
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    8,910
    There could have been a surge of traffic / queries that caused MySQL to use more RAM then what you had available thus causing it to use swap space?
    Patrick William | RACK911 Labs | Software Security Auditing
    400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com

    www.HostingSecList.com - Security notices for the hosting community.

  3. #3
    Quote Originally Posted by Patrick View Post
    There could have been a surge of traffic / queries that caused MySQL to use more RAM then what you had available thus causing it to use swap space?
    After flushing the swap, the usage returns after a while, with no traffic surge.

  4. #4
    Does it really matter? If performance is perfect don't worry about it. You are nit-picking in reality. No one can tell you why it's swapping. Probably just some misc OS stuff.

  5. #5
    Join Date
    Jan 2011
    Location
    Canada
    Posts
    934
    It happens on linux 2.6. If you google up 'swappiness' you'll get a better answer.

    http://www.bigdbahead.com/?p=101

    Unless your server is pure MySQL, I'd leave it as it is.

  6. #6
    Join Date
    Apr 2011
    Posts
    351
    A few of mine do the same, it's strange...
    Not high usage though, I think 10MB max on a master node.

  7. #7
    Code:
    swapoff -a
    Not the perfect solution, but at least it's not unnecessarily using swap any more.

Similar Threads

  1. Swapping out mother boards, to a new one.
    By Jeremy in forum Hosting Security and Technology
    Replies: 4
    Last Post: 03-03-2006, 05:38 AM
  2. Swapping servers?
    By Spitfired2s in forum Dedicated Server
    Replies: 7
    Last Post: 06-14-2005, 04:13 AM
  3. Swapping hosts
    By fang666 in forum Hosting Security and Technology
    Replies: 1
    Last Post: 09-12-2004, 03:28 PM
  4. Swapping a motherboard...
    By JustinH in forum Web Hosting Lounge
    Replies: 1
    Last Post: 10-09-2003, 12:53 PM
  5. swapping drives
    By AlaskanWolf in forum Hosting Security and Technology
    Replies: 0
    Last Post: 03-19-2002, 09:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •