There also could be more simpler reason for huge swap usage, have you rebooted your opnsense device recently?Most common reason why people face huge swap usage is because they don't reboot their systems and keep them up and running (RAM does not empty itself AT ALL as long as system is up and running.)If your opnsense has around 4GB RAM on it, it is possible that because you haven't rebooted it for a while, your system has just ran out of RAM and now uses SWAP instead. Simple reboot should fix that.I would highly recommend setting automated reboot (shown on the image), that way you don't have to remember anything other than take backups before or after reboot, and that internet doesn't work at 00:00 AM local time first day of every month (if you schedule it like I do, and still panic when I get disconnected in middle of a raid boss fight every month -_-)
This is not true at all! RAM is free when the processes release it or when they finish
Quote from: siga75 on September 10, 2020, 03:59:16 pmThis is not true at all! RAM is free when the processes release it or when they finishOh so service or process which has 4GBs reserved to RAM or SWAP file can release 8GBs of ram used by 20 different services or processes at that time? Yay
ps auxwm
Sensei has detected a problem during operation and has shut down Sensei services in order to prevent a network outage.It is because we detected high SWAP usage 36 % ( 2.95GB / 8GB )If you think this is something we should have a look, just click here to let us know about the details and we will investigate this further.You can re-enable the services from Status page.
I have the same issue sind 20.7.x.Before the system was running fine with 8 GB RAM installed and plenty of free RAM. No other change beside upgrade to 20.7.x. In my case after a while Sensei is running out of memory, stops automatically and is getting disabled. After Sensei stopped all is fine. But if Sensei is cause or effect I cannot say.Code: [Select]Sensei has detected a problem during operation and has shut down Sensei services in order to prevent a network outage.It is because we detected high SWAP usage 36 % ( 2.95GB / 8GB )If you think this is something we should have a look, just click here to let us know about the details and we will investigate this further.You can re-enable the services from Status page.