-
Notifications
You must be signed in to change notification settings - Fork 698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/usr/local/lib/python3.9 space usage #7473
Comments
hi @cookiemonsteruk, Sorry it was a long weekend. This might be related to compiled objects /usr/local/lib/python3.9 -- the nullfs will just provide a different directory with the exact file system. You might get better diagnostics running
But as you can see the file system is not very big... One last thing to note is that
If you look at it closely you can see df giving the same diagnostics as the parent file system which is not very helpful. Looking at my system I see the same thing, also for the new /lib mount:
So whatever fluctuation you see is just the root file system size and that could be anything. It may be a bug in FreeBSD (ZFS even), but it could also be "working as intended". I don't know. Cheers, |
It is working as intended if |
@cookiemonsteruk @pmhausen ok that means case closed? Fluctuation observed is on the root filesystem then. |
I'd guess so. To confirm, go to any local directory that is not a filesystem root, e.g.
df was invented when there were neither loopback mounts nor logical volume managers. Every mount was a fixed disk partition. https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/df.c |
Right. Quick glance and checked as you suggested above and seems to be the case i.e. /var/unbound/usr/local/lib/python3.9 is not a separate filesystem and the size of it follows/corresponds exactly to the root filesystem size. |
closing and moving to separate diagnostic |
Hi. I've tracked -so far- the high storage usage to /usr/local/datastore/sqliteconn_all.sqlite as the most consuming.
|
The /usr/local/datastore/sqlite folder is used by Zenarmor to store the conn_all.sqlite database for network connections log, which generally holds data for two days. This value is customizable. You can check the current setting using the following command: |
@ureyni this is very useful and might just spot my problem, thank you.
I'll stop Zenarmor before attempting again. |
@ureyni do you have any more tips to reduce the size? |
closing as it seems related to zenarmor. Thanks.! |
Important notices
Our forum is located at https://forum.opnsense.org , please consider joining discussions there in stead of using GitHub for these matters.
Before you ask a new question, we ask you kindly to acknowledge the following:
Asking here as it might not be very visible on the forum https://forum.opnsense.org/index.php?topic=40473.0
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 remember 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":
That seems like Unbound is using 10 GB of storage and a 64%.
A few minutes later, more "normal":
Now using 8.5 Gb for a 38%.
More often that usage can grow up to 12 Gb, or 85% of the total.
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)
Can someone tell me what causes this loop mount to grow in normal OPN operation?
The text was updated successfully, but these errors were encountered: