Re: mail log question
On 2025-09-12 16:17:32 +0200, Markus Schönhaber wrote:
> I remembered differently. And since I tend to make sure that the journal
> doesn't grow too big nowadays, I didn't expect a noticeable difference
> on my machines. Should have checked before presenting something as a
> fact, though...
Timings on another machine (sid), where I do not receive mail,
though:
$ time -f %E journalctl --facility mail | wc -l
0:00.18
31247
$ time -f %E journalctl -u postfix\* | wc -l
0:00.74
31636
$ time -f %E journalctl -u postfix | wc -l
0:00.15
27119
So it seems that this is actually the use of a pattern that is
very slow (perhaps because it needs to parse the whole systemd
journal?).
Notes:
* Many things have changed in the postfix Debian package
in December 2024. So the use of a pattern (postfix\*) is
no longer needed. This is a change that occurred between
bookworm and trixie.
* Compared to "-u postfix" (or the pattern), "--facility mail"
includes other mail-related services (e.g. spamd), but it
does not include service start/stop information.
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
Reply to: