You are not logged in.
Pages: 1
In order to reduce frequency of writing journal files to filesystem (sd card on cubieboard) I have set SyncIntervalSec in journald.conf to 60m.
Man page for journald.conf states :
"The timeout before synchronizing journal files to disk. After syncing, journal files are placed in the OFFLINE state. Note that syncing is unconditionally done immediately after a log message of priority CRIT, ALERT or EMERG has been logged. This setting hence applies only to messages of the levels ERR, WARNING, NOTICE, INFO, DEBUG. The default timeout is 5 minutes."
But I have noticed that journal file is written immediately no matter what priority log message is (PRIORITY = 6, eg. cron job, ssh login, ...).
Is this a bug or am I missing something?
Offline
Please ask on Arch Linux ARM forum too: https://bbs.archlinux.org/viewtopic.php?id=153431
Offline
Writing is not the same as syncing. See 'man 2 fsync'.
Offline
Writing is not the same as syncing. See 'man 2 fsync'.
Thank you for your answer.
So, does setting SyncIntervalSec to higher values reduces SD Card wear?
Offline
The kernel can always decide to sync on its own, the only thing journald does it force sync at a specific time.
Offline
Pages: 1