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?
Thanks, John
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.
centos-bounces@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**
On Thursday, July 07, 2011 03:57:04 PM Brunner, Brian T. wrote:
centos-bounces@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.
Actually there are cases where you do want swap ~= physical (even though you wont be "using it". For example, if you need to increase the ulimit for stack size (some apps need this) then for a normal fork the kernel will need (free phys + free swap) > this.
So in the end you'll need a bit more swap then your required stack size limit.
Worth noting is that if you set it to unlimited then you don't need to reserve any swap for it...
/Peter