(参考) swap割り当てルール、やっぱりRAMの2倍? | スラド Slashdotに聞け
Red Hat (RHEL5) のインストールマニュアル [redhat.com]には
...
M = RAM の GB 数 として、S = swap の GB 数とすると、
M < 2 ならば S = M * 2
その他 S = M + 2
FreeBSD
The swap partition should typically be approximately 2x the size of main
memory for systems with less than 4GB of RAM, or approximately equal to
the size of main memory if you have more.
http://www.freebsd.org/cgi/man.cgi?query=tuning
M < 4 ならば S = M * 2
その他 S = M
https://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html
2011
In these days of plentiful RAM, the new rule of thumb is "if you're
swapping, then you're doing it wrong." You don't need anything like as
much swap nowadays, at least, not as compensation for lack of RAM. You
may need swap to back eg. tmpfs filesystems. You don't need swap
nowadays for system dumps -- any partition with ephemeral data (or no
data at all) can be used for dumping, and given that minidump capability
exists now, you don't even need to supply the 1 x RAM + delta required
for a full dump.http://lists.freebsd.org/pipermail/freebsd-questions/2011-September/233678.html
swap領域の追加