[CentOS] Changing the size of the swap memory

Brunner, Brian T. BBrunner at gai-tronics.com
Thu Jul 7 13:57:04 UTC 2011


centos-bounces at centos.org wrote:
> 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.

This is true both literally and figuratively.
FIRST determine whether your usage of your hardware forces the system to
use ANY swap at all.
(my little 256MB RAM embedded systems have NO swap whatsoever).
Then, add swap if needed.  Don't bother if it's not needed.


Insert spiffy .sig here:
Life is complex: it has both real and imaginary parts.
Life is not measured by the number of breaths we take, but by the
moments that take our breath away. 


//me
*******************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager. This footnote also confirms that this
email message has been swept for the presence of computer viruses.
www.Hubbell.com - Hubbell Incorporated**




More information about the CentOS mailing list