Error in logs
I have just checked my logs and noticed a lot of "swap_page_getswapspace():failed (See image below)
How would I go about fixing this?
What's the output from the swapinfo command and output from the grep command ?
Device 1K-blocks Used Avail Capacity
/dev/label/swap0 16777212 41544 16735668 0%
[2.4.4-RELEASE][admin@pfsenset]/root: grep memory /var/run/dmesg.boot
real memory = 10737418240 (10240 MB)
avail memory = 8211410944 (7831 MB)
What version of pfSense are you running ?
It looks like you are running out of swap space, the following should tell you the process that's eating all your swap space.
Run top -w, press o then type in swap
I am running 2.4.4-RELEASE-p2
Running that cmd the top results flicks between Squid, ntopng & clamd
grep memory /var/run/dmesg.boot should work.
How much RAM do you have ?
I have just tried running that command again but by tabbing out each word, I don't have a option for memory after typing grep
I currently have it set to use 4GB RAM
The above screenshot is the current state, do you see errors in the log all the time ?
I have 8Gb of RAM and I never swap memory from RAM to disk.
Disable ntopng, does the swap usage change ?
I see error logs maybe twice a day they have happened since I posted this,
When disabling ntopng the swap usage doesn't move but I have noticed that the SWAP usage is 1023 assuming if I upped the RAM this would increase automatically.
Upping the RAM causes memory staying in RAM and not being swapped out to swap ( RAM disk ).
Can you tie in the time stamps to what squid, ntopng or clamd might be doing ?
Just gone through the logs and can't see anything around the time where I received the swap errors