<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 03/03/2012 11:29 AM, David Lambert wrote:
<blockquote cite="mid:4F5254ED.3040002@lambsys.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
On 02/29/2012 07:26 AM, Lennart Poettering wrote:
<blockquote cite="mid:20120229132607.GC9253@tango.0pointer.de"
type="cite"><br>
<pre wrap="">You can put limits on the log size however, for example via
SystemMaxUse=64M or SystemKeepFree=500M or suchlike.
</pre>
</blockquote>
<br>
</blockquote>
Further experimentation seems to indicate that the first time a
limit is reached, the system trims the log file back, BUT
subsequently it appears to ignore all limits:<br>
<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
252K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
256K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
296K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
300K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
68K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal
<<<<<<<<<<<<<<<<<<journal
file trimmed as expected<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
76K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
76K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
88K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
100K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
132K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
140K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
160K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
272K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
288K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal -h<br>
<font color="#ff0000">336K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal
-h<br>
612K
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<<<<<<<<<<<<<<<<journal
file continues to grow ......<br>
...<br>
root@argus2:~# du -s
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal
-h<br>
1.3M
/run/log/journal/bd4dce8541064e29b00e90f7234b3287/system.journal<<<<<<<<<<<<<<<<....and
grow until all memory is exhausted :(<br>
</font><br>
Configuration file is:<br>
<br>
root@argus2:~# cat /etc/systemd/systemd-journald.conf <br>
# This file is part of systemd.<br>
#<br>
# systemd is free software; you can redistribute it and/or modify
it<br>
# under the terms of the GNU General Public License as published by<br>
# the Free Software Foundation; either version 2 of the License, or<br>
# (at your option) any later version.<br>
#<br>
# See system-journald.conf(5) for details<br>
<br>
[Journal]<br>
#Compress=yes<br>
#RateLimitInterval=10s<br>
#RateLimitBurst=200<br>
SystemMaxUse=100K<br>
#SystemKeepFree=<br>
SystemMaxFileSize=200K<br>
#SystemMinFileSize=<br>
RuntimeMaxUse=1M<br>
#RuntimeKeepFree=<br>
RuntimeMaxFileSize=300K<br>
#RuntimeMinFileSize=<br>
ForwardToSyslog=no<br>
#ForwardToKMsg=no<br>
#ForwardToConsole=no<br>
#ImportKernel=yes<br>
<br>
<br>
<br>
<br>
</body>
</html>