Skip to content
Commit 660fa63f authored by Petr Štetiar's avatar Petr Štetiar Committed by Josef Schlehofer
Browse files

syslog-ng: fix OOM issues by adding support for logrotate



With heavy system logging which goes by default into `/var/log/messages`
log file which is usually placed in tmpfs/RAM one can trigger OOM killer
fairly easily, thus killing random processes and in some cases making
system unusable.

This is likely happening due to the fact, that Linux by default uses 1/2
of available RAM for tmpfs, which might be for example an issue on low
RAM devices with ath10k wireless.

So let's fix it by adding logrotate functionality which should limit the
size of `/var/log/messages` log file to 1M by default, but could be
tweaked by config knob if needed be.

Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
parent 72cf350b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment