[systemd-devel] slowness reading persistent journal

Windl, Ulrich u.windl at ukr.de
Wed Apr 9 09:48:25 UTC 2025


Hi!

In SLES15 SP6 (systemd-254.24-150600.4.28.1.x86_64) I noticed that collecting logs took quite long, so I checked.
# time journalctl |wc -l
2705448

real    2m23.008s
user    1m25.666s
sys     0m57.389s

The journal is persistent and it's located on a BtrFS subvolume using a device that is provided by VMware from a high-performance SSD SAN storage:
# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sda      8:0    0   40G  0 disk
├─sda1   8:1    0  512M  0 part /boot/efi
├─sda2   8:2    0   21G  0 part /root
│                               /srv
│                               /usr/local
│                               /var
│                               /opt
│                               /tmp
│                               /boot/grub2/x86_64-efi
│                               /boot/grub2/i386-pc
│                               /.snapshots
│                               /
├─sda3   8:3    0 10.7G  0 part /home
└─sda4   8:4    0  7.8G  0 part [SWAP]
# hdparm -t /dev/sda2

/dev/sda2:
Timing buffered disk reads: 1680 MB in  3.00 seconds = 559.48 MB/sec
# hdparm -T /dev/sda2

/dev/sda2:
Timing cached reads:   18612 MB in  2.00 seconds = 9322.49 MB/sec

During boot this statistics had been logged:
System Journal (/var/log/journal/41d6ce7a6cfc467297b777b8d87f071d) is 2.0G, max 2.1G, 103.1M free.

Obvious question: Why is it so slow?

Kind regards,
Ulrich Windl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20250409/181003eb/attachment.htm>


More information about the systemd-devel mailing list