On Thursday 03 March 2016, Anton Aylward wrote:
On 03/03/2016 03:13 PM, Ruediger Meier wrote:
Hehe this comparision is even better. :)
$ time grep "sshd" /var/log/messages | wc -l 34755
real 0m0.066s user 0m0.052s sys 0m0.016s
$ time journalctl --no-pager _COMM=sshd | wc -l 34945
real 0m2.097s user 0m1.916s sys 0m0.168s
Note that this journal is stored in RAM. What is RAM speed today? 10-20GB/s? Journald is able to show 7MB/s. Congratulations.
And how many total records in /var/log/messages and how many total records in journald?
And how does that compare with
journalctl _SYSTEMD_UNIT=sshd.service
This is a feature I don't need and it's also terrible slow: $ time journalctl _SYSTEMD_UNIT=sshd.service > /dev/null real 0m1.835s user 0m1.788s sys 0m0.036s Note, after shrinking the journal today it contains logs only from last 5 days! Last month I've had more than 100 days uptime and all these journalctl operations took 1-2 _minutes_! cu, Rudi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org