1
General Discussion / how to mimize disk usage
« on: January 29, 2023, 01:38:20 am »
hello, thanks,
i am confused, by default, if opnsense using a swap file?
and if so, how to move it to memory, same as "/var/log RAM disk" and "/tmp RAM disk"
from dashboard:
"SWAP usage 0 % ( 0/8192 MB )"
from system_advanced_misc.php, this setting is uncheck.
"Swap file Add a 2 GB swap file to the system"
from /etc/rc.conf, there is no "swapfile=", so does that mean, opnsense is not using swap.
--------------
also, curious, what else does opnsense write to disk?
--- log files
if this is enabled, where does opnsense save logs?
Local Logging Disable writing log files to the local disk
--- other stuff i would not know about, the so-called "unknown unkowns"
thanks, david
i am confused, by default, if opnsense using a swap file?
and if so, how to move it to memory, same as "/var/log RAM disk" and "/tmp RAM disk"
from dashboard:
"SWAP usage 0 % ( 0/8192 MB )"
from system_advanced_misc.php, this setting is uncheck.
"Swap file Add a 2 GB swap file to the system"
from /etc/rc.conf, there is no "swapfile=", so does that mean, opnsense is not using swap.
swapinfo -k
Device 1K-blocks Used Avail Capacity
/dev/gpt/swapfs 8388608 0 8388608 0%
--------------
also, curious, what else does opnsense write to disk?
--- log files
if this is enabled, where does opnsense save logs?
Local Logging Disable writing log files to the local disk
--- other stuff i would not know about, the so-called "unknown unkowns"
thanks, david