Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2007 21:06:59 -0500
From:      Eric Crist <mnslinky@gmail.com>
To:        Nicholas Wieland <nicholas.wieland@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Swap size
Message-ID:  <C47E6FB0-6EBD-4AD5-9B5B-1B67A2213BD5@gmail.com>
In-Reply-To: <098C8817-8D41-4D94-96E2-97D4310B0BAE@gmail.com>
References:  <098C8817-8D41-4D94-96E2-97D4310B0BAE@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Aug 16, 2007, at 7:05 PMAug 16, 2007, Nicholas Wieland wrote:

> I was reading tuning(7), and I found that I should size my swap  
> double the size of my physical memory.
> AFAIK that was true some years ago, when memory was not as cheap as  
> now, and following that guideline I should set my swap to 2GB,  
> which seems far too much for swap (at least to me ...). I will  
> never need this much memory as 1GB RAM and 2GB swap.
> Is it still correct ? How can I resize with bsdlabel if I already  
> used all my disk space during install ?
>
> TIA,
>   ngw
>

 From what I understand, the reasoning behind the math is that, if  
you have a kernel dump, there's enough room in swap to put the entire  
core into swap (so it's there when you've rebooted), and that there's  
enough room left in swap to allow the system to reboot, so you can  
debug.

If you're not worried about your .core files, then I wouldn't worry  
about the math of 2xmemory.

HTH
-----
Eric F Crist
Secure Computing Networks





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C47E6FB0-6EBD-4AD5-9B5B-1B67A2213BD5>