warning: increase kern.maxswzone or reduce amount of swap.
-
Hello fellow Netgate Community members can you please help?
I am using an external SWAP for when ClamAV updates it is a resource hog so it comes online does swap after the update the system normalizes.
With pfsense 24 I am now seeing this new error on os boot.
Here is the error
warning: increase kern.maxswzone or reduce amount of swap. warning: total configured swap (24421446 pages) exceeds maximum recommended amount (3382560 pages).
This is my swapinfo output for non update mode
Shell Output - swapinfo Device 512-blocks Used Avail Capacity /dev/da0 195371568 2695656 192675912 1%
-
You've added 24G of SWAP?
-
@stephenw10 I actually have a 100GB drive that is fully formatted for use with swap
-
-
Hmm, generally you should use ~2x the RAM size. Anything more than that is usually not useful. How much SWAP is it actually using?
-
@stephenw10 only a little bit is ever used, and it’s only during updates or when snort has massive blocked ip addresses. It does also normalize after resources are freed. I wanted to originally use an SSD but the manufacture said it will fail also FreeBSD forum said to use a physical drive/flash drive that use of an SSD will cause premature drive failure. I can’t find a manufacture that has an SSD specifically for swap use. I like how it looks like I have 100gb swap, no memory overload attacks here it would go forever, I can picture someone attempting an overflow attack and just waiting and waiting
-
Hmm, well you are probably actually descreasing resources by using memory for the swap index that isn't really needed. But probably not be much I have no real idea what the numbers involved there are.
-
@stephenw10 I might have to reformat the micro HDD it’s one big zfs parition