[CentOS] Swap Partition in CentOS 5.8

Mon Jun 18 19:33:10 UTC 2012
Les Mikesell <lesmikesell at gmail.com>

On Mon, Jun 18, 2012 at 2:19 PM,  <m.roth at 5-cent.us> wrote:
> Kaushal Shriyan wrote:
>> Any recommendation to set SWAP Partition in CentOS 5.8 on 32GB Physical
>> Memory Box and also how does swap partition is being used and any utility
>> to know when was swap partition being used.
> In the Days of Yore, received wisdom was 2-2.5 times RAM. For the last
> five or so years, with the massive growth of RAM, it's been 2G for pretty
> much everything. The system will use it mostly as a last resort, if it's
> being overwhelmed.

Yes, if you actually need/use more than 2G swap, the system will
likely be so unresponsive that you'll think it is dead and reboot
anyway.   As for seeing if it is used, 'top' and 'free' will show it,
or you can track activity with vmstat.

  Les Mikesell
     lesmikesell at gmail.com