Configuring Swap Rate
The Health Check
feature of Zenarmor enables the application to continuously check, once in an hour, the swap utilization of the system. Zenarmor allows you to set swap utilization in order to run your next-generation firewall engine safely. If the swap usage percentage is more than the value specified by the user (default %60), the engine is stopped, and the user is warned by displaying an error message on the screen.
By default, %60 of total swap usage is considered safe for Zenarmor operation. You can configure the Maximum Swap Utilization (% of total SWAP) by following the next steps:
- Navigate to the Zenarmor > Settings > Health on OPNsense web UI.
- Set the swap rate by scrolling left or right on the bar. When swap utilization on your system reaches this rate, the Zenarmor packet engine will be stopped.
Figure 1: Changing Maximum Allowed Swap Size For Zenarmor.
Please note that this is not Zenarmor` SWAP usage; rather it is the overall system SWAP usage and may be the result of other memory-intensive applications that are running on the system. To see which processes are using the resident memory, you can use the following command:
top -ao res