[CentOS] Changing the size of the swap memory

John R Pierce pierce at hogranch.com
Thu Jul 7 00:43:21 UTC 2011


On 07/06/11 5:40 PM, John J. Boyer wrote:
> When I first installed my CentOS system the machine had only 1 GB. the
> swap memory was set to 2 GB Now the machine has 4 GB but swap is still 2
> GB. With that much memory maybe it doesn't matter, but it sure looks
> odd. Is there any way to change it?
>

add another swap extent via the swapon(8) command.

but, 2gb is plenty of swap for a 4gb system, anyone who insists on swap 
 >= physical memory is smoking something left over from the 1970s.

-- 

john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast




More information about the CentOS mailing list