Swap size on RAM upgrade
Felix Miata
mrmazda at earthlink.net
Thu Aug 9 23:39:16 UTC 2012
On 2012/08/10 00:14 (GMT+0100) sam tygier composed:
> Felix Miata wrote:
>> On 2012/08/09 00:56 (GMT+0200) Amedee Van Gasse composed:
>>> If you don't use hibernation: swap can be *any* size
>> That includes no swap partition at all. My most used system has 4G RAM
>> and 8G of swap partitions. The latter is a total waste, since I keep
>> both swap partitions unmounted and find no evidence of drawbacks in so
>> doing.
> It will effect what happens if for some reason your programs want to use
> more than 4GB of RAM. This might happen because you have some very large
> files open, or because some program is misbehaving. In the case where you
> have no swap the out of memory (OOM) killer will be forced to step in and
> kill the program that it thinks is causing the problem. when you have
> enough swap, then this will be used and stuff will run slowly. If you are
> sure this will never happen, then you might not need swap.
The way I understand swap, if there is no swap partition, and the kernel
requires swap, and freespace exists on the / filesystem, it will create and
use a swap file on the / filesystem.
--
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata *** http://fm.no-ip.com/
More information about the ubuntu-users
mailing list