OPNSense not able to re-claim memory space after killing multiple process

Started by Afif, June 12, 2026, 06:19:17 PM

Previous topic - Next topic
Quote from: pfry on June 14, 2026, 02:31:40 PMAre you using file system defaults (ZFS, compression)? The compression works very well on log files. (To check, "df -hT" and if ZFS, "zpool get feature@lz4_compress,feature@zstd_compress".)

I'm not using ZFS on this system. Here is the output from the command.

root@OPNsense:/home/afif # df -hT
Filesystem  Type      Size    Used  Avail Capacity  Mounted on
/dev/da0p2  ufs        29G    6.4G    20G    24%    /
devfs      devfs      1.0K      0B    1.0K    0%    /dev
/dev/da0p1  msdosfs    256M    1.3M    255M    0%    /boot/efi
root@OPNsense:/home/afif #

Quote from: Afif on June 14, 2026, 04:14:25 PMI'm not using ZFS on this system.[...]

Here's mine as an example. ~200 log files with an average size of ~90MB (file system defaults, firewall only, no netflow or hostwatch, most rule logging enabled, averaging a few hundred connections at any given moment), consuming... <3.3GB (I didn't bother to get a precise compression ratio).

root@fw:/home/user # df -hT
Filesystem          Type       Size    Used   Avail Capacity  Mounted on
zroot/ROOT/default  zfs        1.4T    1.4G    1.4T     0%    /
devfs               devfs      1.0K      0B    1.0K     0%    /dev
/dev/gpt/efiboot0   msdosfs    260M    1.3M    259M     1%    /boot/efi
zroot/var/mail      zfs        1.4T    112K    1.4T     0%    /var/mail
zroot               zfs        1.4T     96K    1.4T     0%    /zroot
zroot/tmp           zfs        1.4T    3.4M    1.4T     0%    /tmp
zroot/usr/ports     zfs        1.4T     96K    1.4T     0%    /usr/ports
zroot/home          zfs        1.4T    140K    1.4T     0%    /home
zroot/var/audit     zfs        1.4T     96K    1.4T     0%    /var/audit
zroot/var/tmp       zfs        1.4T     96K    1.4T     0%    /var/tmp
zroot/var/crash     zfs        1.4T     96K    1.4T     0%    /var/crash
zroot/var/log       zfs        1.4T    3.3G    1.4T     0%    /var/log
zroot/usr/src       zfs        1.4T     96K    1.4T     0%    /usr/src
devfs               devfs      1.0K      0B    1.0K     0%    /var/dhcpd/dev
root@fw:/home/user # zpool get feature@lz4_compress,feature@zstd_compress
NAME   PROPERTY               VALUE                  SOURCE
zroot  feature@lz4_compress   active                 local
zroot  feature@zstd_compress  enabled                local
root@fw:/home/user # ls -la /var/log/filter
total 3252314
drwx------   2 root wheel       203 Jun 14 08:01 .
drwxr-xr-x  17 root wheel        39 Jun 14 03:01 ..
-rw-------   1 root wheel  87636510 Nov 27  2025 filter_20251127.log
-rw-------   1 root wheel 113842291 Nov 28  2025 filter_20251128.log
-rw-------   1 root wheel  66937381 Nov 29  2025 filter_20251129.log
-rw-------   1 root wheel  63962720 Nov 30  2025 filter_20251130.log
-rw-------   1 root wheel  65829378 Dec  1  2025 filter_20251201.log
-rw-------   1 root wheel  59705785 Dec  2  2025 filter_20251202.log
-rw-------   1 root wheel  65167863 Dec  3  2025 filter_20251203.log
-rw-------   1 root wheel  58694081 Dec  4  2025 filter_20251204.log
-rw-------   1 root wheel  57220899 Dec  5  2025 filter_20251205.log
-rw-------   1 root wheel  58380288 Dec  6  2025 filter_20251206.log
[...]
-rw-------   1 root wheel 112167589 Jun  5 23:59 filter_20260605.log
-rw-------   1 root wheel 100272143 Jun  6 23:59 filter_20260606.log
-rw-------   1 root wheel  89032171 Jun  7 23:59 filter_20260607.log
-rw-------   1 root wheel  97640115 Jun  8 23:59 filter_20260608.log
-rw-------   1 root wheel  96846494 Jun  9 23:59 filter_20260609.log
-rw-------   1 root wheel  85642933 Jun 10 23:59 filter_20260610.log
-rw-------   1 root wheel  88817261 Jun 11 23:59 filter_20260611.log
-rw-------   1 root wheel  91362771 Jun 12 23:59 filter_20260612.log
-rw-------   1 root wheel  89815402 Jun 13 23:59 filter_20260613.log
-rw-------   1 root wheel  35648453 Jun 14 08:57 filter_20260614.log
lrwxr-x---   1 root wheel        35 Jun 14 08:01 latest.log -> /var/log/filter/filter_20260614.log
root@fw:/home/user #