Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Moode and power loss (aka writes to the sd card)
#37
(06-24-2023, 02:54 PM)jbaumann Wrote: My original idea was to reduce logging by changing the log level for the system logs. To see whether this approach would be able to yield anything at all I simply turned the logging off, and the result was astonishing for me. What would be the disadvantage to fully turn off the logging?

The problem with writing to the disk and truncating it is that the OverlayFS tries to follow all this and gobbles up RAM unnecessarily.

Would using busybox-syslogd be an alternative? This is a lightweight syslog daemon that writes to RAM and rotates/truncates automatically:

https://packages.debian.org/en/bullseye/busybox-syslogd

Cheers, Joe

Logging has never been a problem in the past and the built in maintenance tasks keeps log file size in check and so there is no practical reason for trying to disable it or add a new package that has to be maintained, plus we use logs all the time in troubleshooting and development. 

The old saying is that "logs are never needed until they are"

In your particular usage scenario though where you are using overlayFS and trying to create a memory only runtime for moOde it makes sense to try and reduce logging.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: Moode and power loss (aka writes to the sd card) - by Tim Curtis - 06-24-2023, 05:53 PM

Forum Jump: