3 ms·
Not related to all binary logging, but journalctl is incredibly sluggish. Some combinations of slow (rotating) media, certain filesystems, and underpowered CPU
by Uberphallus 12y ago
Not related to all binary logging, but journalctl is incredibly sluggish.
Some combinations of slow (rotating) media, certain filesystems, and underpowered CPUs (ARM in my experience) and you get a barely usable logging system that makes you want to punch your box.
- pgl 12y agoI found this to be the case as well. Especially on a busy system where there are a lot of events, when you're trying to find the cause of an issue and constantly opening and closing logs, the lag is definitely noticeable.
- rakoo 12y agoI don't even have an esoteric setup and every time I want to read logs I'll have to wait 30 secs. Even though there is absolutely no activity.
- vidarh 12y agoSounds like you're running into some bug. I've never run into any perceptible lag.
- the_mitsuhiko 12y agoThat sounds odd. Did you try to strace it and see what it actually does?
- toupeira 12y agoTry "journalctl -e" or "journalctl --since today", it seems like by default it will load all available logs which leads to this slugishness.
- mrweasel 12y agoI'm not currently using Linux, so I might be wrong, or misunderstanding what you're trying to do, but could you just have journald write to syslog? ForwardToSyslog=yes in /etc/systemd/journald.conf.
- the_mitsuhiko 12y agoTo be honest: that's kinda to be expected if you run it on a slow machine. However you can configure it to be in-memory only and forward to syslog and you have it as it was before.
- XorNot 12y agoI'm highly suspicious that syslog can actually be faster in such a situation. If you can't seek to the disk quickly, then it doesn't matter what you do - logging will be slow if you need to flush frequently.