P
P
psr08332013-12-25 11:49:49
FreeBSD
psr0833, 2013-12-25 11:49:49

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

5 answer(s)
D
DrDiza, 2014-01-09
@psr0833

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.

I
Ilya Grom, 2013-12-25
@Gromobanan777

IMHO, swap should not be disabled. Allocate enough space for it, swap=ram should be enough.

I
Ilya Evseev, 2013-12-26
@IlyaEvseev

statistics on the use of swap on the current server is kept?
how far did he grow?

R
robert_ayrapetyan, 2014-01-11
@robert_ayrapetyan

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.

K
kenny_opennix, 2014-01-31
@kenny_opennix

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 question

Ask a Question

731 491 924 answers to any question