Answer the question
In order to leave comments, you need to log in
Optimal swap partition size in FreeBSD with 64G RAM?
Good afternoon! I'm moving to a new server. FreeBSD 9.2 is installed on a server with 64Gb RAM, 2x2T HDD (soft RAID1). Previously, the installation was guided by SWAP = 2 * RAM, then SWAP = RAM. Is SWAP needed at all now, and if so, what is the optimal size to choose?
The server hosts several Web projects (nginx apache mysql) 10-20 requests per second.
Answer the question
In order to leave comments, you need to log in
with this amount of memory, SWAP is theoretically not needed.
It will work 10-20 requests per second.
but you need SWAP in order to see that something went wrong.
leave gigs under it 5. and see that it is always empty.
if it started to be used, then something went wrong.
and it is no longer needed for anything with such an amount of memory.
IMHO, swap should not be disabled. Allocate enough space for it, swap=ram should be enough.
statistics on the use of swap on the current server is kept?
how far did he grow?
With memory > 8Gb, I use the swap = RAM formula, but recently I ran into a problem that during a kernel panic, the dump does not fit into the swap partition. Therefore, you need to put a little more than RAM.
freebsd has never seen more than 32 Gb swap before.
In any case, it makes no sense to do more than 32GB swap, it will still be idle.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question