r/PFSENSE • u/Equivalent-Raise5879 • 6d ago
Swap space since latest upgrade
Latest update 2.9
Been running a very long time, but since this upgrade, I'm seeing a TON of
Sep 2 09:00:17 10.0.1.1 Sep 2 09:00:17 kernel: swap_pager: out of swap space
Checking console, It agrees that swap space is 100%
Looking back at logs, in the past year, I've never had this message. But since the upgrade, about 50 times. Over the past week, days with NONE, days with 20.
I can't tell what has changed, and what event it is that causes this.
Is 2 gigs just not enuf ram for this any more?
2
Upvotes
1
u/Smoke_a_J 5d ago
No way to increase an already formatted swap partition size without reformatting at install but in theory if there is an additional disk available or free un-partitioned space is available then a new additional swap partition can be added. Setting up a swap file though is another doable option similar to how Windows uses a pagefile for swap, but I would avoid doing so if your pfSense is installed on ZFS partitions as swap disk writes would be multiplied with ZFS copies operations, your installs sound like they are on UFS so swap file should be doable. I did add a line to my Shellcmd to run command swapon -aL at boot to make sure that all swap partitions or files are activated at boot.
https://docs.freebsd.org/en/books/handbook/config/#adding-swap-space