I have a program installed that generates lots of log data (gigabytes-worth). The program writes the logs to /var/log and I am wondering how the flash plugin handles the log folder when it gets to be too large for RAM. Will it write the data permanently to the disk and clear itself out, or will it just get too big and switch to using the disk as normal? I made the mistake of not using the flash plugin with the previous SSD that I had installed and it died prematurely probably because of this. I would like to avoid this happening again with my new SSD so I am going to use the plugin, but I want to make sure that I have it set up to work properly.
What does the flash plugin do with folders that are too large for RAM?
-
- OMV 4.x
- David B
-
-
The plugin uses tmpfs which defaults to half your ram. If you fill it, it is full just like any filesystem. The difference is half your ram is full too. So, your app will just stop logging (and maybe fail depending on the app).
-
The plugin uses tmpfs which defaults to half your ram. If you fill it, it is full just like any filesystem. The difference is half your ram is full too. So, your app will just stop logging (and maybe fail depending on the app).
Okay. Honestly I do not want the logs to be saved but I have not been able to figure out how to disable them so I will just live with it. I noticed that when I look at the output of df -h, there are file systems that are tmpfs, but there are also filesystems listed as folder2ram. The /var/log folder is one of the folders that is listed that way. Is that significant in any way?
-
there are file systems that are tmpfs, but there are also filesystems listed as folder2ram. The /var/log folder is one of the folders that is listed that way. Is that significant in any way?
The filesystems listed as folder2ram are the ones controlled by folder2ram which uses tmpfs. The entries listed as tmpfs are from the OS not folder2ram.
-
The filesystems listed as folder2ram are the ones controlled by folder2ram which uses tmpfs. The entries listed as tmpfs are from the OS not folder2ram.
Oh I was not aware that tmpfs was a Linux thing. Thank you for clarifying.
-
Also one more question: How frequently do the folders that are stored in RAM get written to the disk?
-
How frequently do the folders that are stored in RAM get written to the disk?
AFAIK only at shutdown/reboot. You need to define a cronjob that does this from time to time:
Code
Alles anzeigenroot@espressobin:~# folder2ram -syncall will now sync all mountpoints sync of /var/log successful! sync of /var/tmp successful! sync of /var/lib/openmediavault/rrd successful! sync of /var/spool successful! sync of /var/lib/rrdcached successful! sync of /var/lib/monit successful! sync of /var/lib/php successful! sync of /var/lib/netatalk/CNID successful! sync of /var/cache/samba successful!
-
AFAIK only at shutdown/reboot
Correct.
You need to define a cronjob that does this from time to time:
Only if you care about the log files and/or monitoring data.
-
AFAIK only at shutdown/reboot. You need to define a cronjob that does this from time to time:
Correct.
Only if you care about the log files and/or monitoring data.
Excellent, thank you! I only care about saving the graph data so I added an hourly cron job that runs folder2ram -sync 5. This outputs:
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!