1
23.7 Legacy Series / /usr/local/lib/python3.9 space usage
« on: May 14, 2024, 11:05:42 am »
OPNsense 23.7.12_5-amd64
FreeBSD 13.2-RELEASE-p7
OpenSSL 1.1.1w
Hello. I seem to recall this or previous version refactored Unbound to use a devfs device but don't remeeber details. Anyway, that might be nothing to do with today's question.
I've noticed that regularly, as in a number of times a day, the filesystem usage appears to balloon before reducing to more "normal" levels by itself.
When "abnormal":
A few minutes later, more "normal":
In System: Settings: Logging; I have nothing entered and nothing ticked, so all defaults.
In Unbound: Advanced I have:
Log Queries = enabled
Log Replies = enabled
Tag Queries and Replies = enabled
Log local actions = disabled
Log SERVFAIL = enabled
Log Level Verbosity = Level 1 (default)
Log validation level = Level 0 (default)
As to why it makes a difference, that is the system starts swapping (which I can deal with by increasing the storage) but the real important part, it might be a sign of a problem I'm unaware of.
Can someone tell me what causes this pseudo filesystem to grow in normal OPN operation?
FreeBSD 13.2-RELEASE-p7
OpenSSL 1.1.1w
Hello. I seem to recall this or previous version refactored Unbound to use a devfs device but don't remeeber details. Anyway, that might be nothing to do with today's question.
I've noticed that regularly, as in a number of times a day, the filesystem usage appears to balloon before reducing to more "normal" levels by itself.
When "abnormal":
Code: [Select]
$ df -h
Filesystem Size Used Avail Capacity Mounted on
zroot/ROOT/default 16G 10G 6.0G 64% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ada0p1 260M 1.8M 258M 1% /boot/efi
zroot/var/mail 6.0G 112K 6.0G 0% /var/mail
zroot/var/audit 6.0G 96K 6.0G 0% /var/audit
zroot/usr/src 6.0G 96K 6.0G 0% /usr/src
zroot/tmp 6.0G 3.8M 6.0G 0% /tmp
zroot 6.0G 96K 6.0G 0% /zroot
zroot/var/log 6.4G 433M 6.0G 7% /var/log
zroot/var/crash 6.0G 96K 6.0G 0% /var/crash
zroot/var/tmp 12G 5.9G 6.0G 50% /var/tmp
zroot/usr/ports 6.0G 96K 6.0G 0% /usr/ports
zroot/usr/home 6.0G 96K 6.0G 0% /usr/home
devfs 1.0K 1.0K 0B 100% /var/dhcpd/dev
/dev/md43 48M 8.0K 44M 0% /usr/local/zenarmor/output/active/temp
tmpfs 100M 576K 99M 1% /usr/local/zenarmor/run/tracefs
devfs 1.0K 1.0K 0B 100% /var/unbound/dev
/usr/local/lib/python3.9 16G 10G 6.0G 64% /var/unbound/usr/local/lib/python3.9
That seems like Unbound is using 10 GB of storage and a 64%.A few minutes later, more "normal":
Code: [Select]
$ df -h
Filesystem Size Used Avail Capacity Mounted on
zroot/ROOT/default 22G 8.5G 14G 38% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ada0p1 260M 1.8M 258M 1% /boot/efi
zroot/var/mail 14G 112K 14G 0% /var/mail
zroot/var/audit 14G 96K 14G 0% /var/audit
zroot/usr/src 14G 96K 14G 0% /usr/src
zroot/tmp 14G 3.8M 14G 0% /tmp
zroot 14G 96K 14G 0% /zroot
zroot/var/log 14G 433M 14G 3% /var/log
zroot/var/crash 14G 96K 14G 0% /var/crash
zroot/var/tmp 14G 132K 14G 0% /var/tmp
zroot/usr/ports 14G 96K 14G 0% /usr/ports
zroot/usr/home 14G 96K 14G 0% /usr/home
devfs 1.0K 1.0K 0B 100% /var/dhcpd/dev
/dev/md43 48M 8.0K 44M 0% /usr/local/zenarmor/output/active/temp
tmpfs 100M 576K 99M 1% /usr/local/zenarmor/run/tracefs
devfs 1.0K 1.0K 0B 100% /var/unbound/dev
/usr/local/lib/python3.9 22G 8.5G 14G 38% /var/unbound/usr/local/lib/python3.9
Now using 8.5 Gb for a 38%.In System: Settings: Logging; I have nothing entered and nothing ticked, so all defaults.
In Unbound: Advanced I have:
Log Queries = enabled
Log Replies = enabled
Tag Queries and Replies = enabled
Log local actions = disabled
Log SERVFAIL = enabled
Log Level Verbosity = Level 1 (default)
Log validation level = Level 0 (default)
As to why it makes a difference, that is the system starts swapping (which I can deal with by increasing the storage) but the real important part, it might be a sign of a problem I'm unaware of.
Can someone tell me what causes this pseudo filesystem to grow in normal OPN operation?