This is a FreeBSD 12.1 and it seems that the problem started after we upgraded from 11.3.
The server has 32GB of ram and it's a samba file server and also running several unison file sync processes.
The problem is that the server starts killing processes even thought it has 32G of swap and then added 32G more out of zroot but swap is mostly unused.
Device 1M-blocks Used Avail Capacity
/dev/zvol/zroot/swap0 32768 0 32768 0%
/dev/ada0p3 16384 0 16384 0%
/dev/ada1p3 16384 0 16384 0%
Total 65536 0 65536 0%
The screenshot of one of the daily crashes:
I found this post that says that FreeBSD won't swap out active processes and someone recommends I can increase
another relevant post I read:
my ZFS allocations in /boot/loader.conf
vfs.zfs.arc_min="4G"
vfs.zfs.arc_max="8G"
Note that I've had to increase
Any advice?
The server has 32GB of ram and it's a samba file server and also running several unison file sync processes.
The problem is that the server starts killing processes even thought it has 32G of swap and then added 32G more out of zroot but swap is mostly unused.
Device 1M-blocks Used Avail Capacity
/dev/zvol/zroot/swap0 32768 0 32768 0%
/dev/ada0p3 16384 0 16384 0%
/dev/ada1p3 16384 0 16384 0%
Total 65536 0 65536 0%
The screenshot of one of the daily crashes:
I found this post that says that FreeBSD won't swap out active processes and someone recommends I can increase
sysctl vm.pageout_oom_seq
231457 – Out of swap space on ZFS
bugs.freebsd.org
Server keeps running out of RAM and uses swap even if inactive memory is very high
Hello guys, I'm running a FreeBSD 12 server and I'm experiencing this strange issue. I've looked around in this forum for people with the same problem, but these topics where a bit too old and I think that the proposed solution might not apply to FreeBSD 12. Many where suggesting using sysctl...
forums.freebsd.org
my ZFS allocations in /boot/loader.conf
vfs.zfs.arc_min="4G"
vfs.zfs.arc_max="8G"
Note that I've had to increase
kern.maxvnodes
to 6000000 after watching vfs.freevnodes and going up incrementallyAny advice?