-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2017-03-05 18:38, Jan Engelhardt wrote:
On Sunday 2017-03-05 18:32, Stefan Seyfried wrote:
server:~ # time systemctl status ntpd.service Mär 05 09:16:49 server sntp[1645]: sntp 4.2.8p9@1.3265-o Mon Dec 19 17:18:19 UTC 2016 (1) [...] Mär 05 09:16:50 server start-ntpd[1622]: Starting network time protocol daemon (NTPD) Hint: Some lines were ellipsized, use -l to show in full.
real 0m3.199s user 0m0.009s sys 0m0.113s
This machine has journal on a bcache backed device, so it's not really rotating rust only.
In all fairness, grepping through 4 GB of syslog text logs would equally take as much time, I'd argue.
In the tests I did (not 4 GB), it did not. Grepping a year of syslog data was much faster than greping two weeks of journal data. This machine has both journal and syslog: cer@Isengard:~> time journalctl | wc -l 729907 real 0m31.845s user 0m27.039s sys 0m7.848s cer@Isengard:~> cer@Isengard:~> time xzcat /var/log/messages*xz | wc -l 653558 real 0m0.764s user 0m0.693s sys 0m0.152s cer@Isengard:~> And this is on SSD. The different length is because the current messsages file is not compressed yet, plus some messages are filtered to other files. Still, 30 seconds the journal compared to 1 second the syslog... speaks for itself. And without grepping, just obtaining the text. - -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAli8ZgcACgkQja8UbcUWM1woiAD+O160VKYkGd+tZ28r80XoOaAy vGvQzfDe3dGwTH+qPQYA+wZK1wSMrv+aUGYOwmgwojSJH8JRkit5us6ZxF/qLjZs =7wNp -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org