View Single Post
Old 08-29-2007, 08:56 AM  
liquidmoe
Confirmed User
 
Join Date: Mar 2002
Location: NY
Posts: 4,994
For swap usage you can run the "top" command which will show you how much of your memory is in use as well as swap.

Here is an example from a Linux Server:
Mem: 2075328k total, 1978408k used, 96920k free, 248468k buffers
Swap: 2104504k total, 8196k used, 2096308k free, 1011972k cached


Here is an example from a FreeBSD Server:
Mem: 999M Active, 610M Inact, 271M Wired, 115M Cache, 199M Buf, 14M Free
Swap: 2721M Total, 156K Used, 2721M Free

When that value for used starts growing thats when you need to be concerned. But ultimately you cant use swap or loads to really be an indicator. They are just telling you how the system is performing, more important is how your website actually loads. Depending on what system resources are being used and how, and where the limiting factors are you can have high cpu loads and/or swap usage and still have a site that loads fine. If you feel that your site isnt loading well that needs to be investigated regardless of whether your loads are low or swap isnt in use since there are many other factors to consider as well.
__________________

Take Luck!
liquidmoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote