[systemd-devel] [PATCH] journalctl: add --revert option to show the newest lines first

Lennart Poettering lennart at poettering.net
Thu Feb 28 15:59:03 PST 2013


On Thu, 28.02.13 20:09, Mantas Mikulėnas (grawity at gmail.com) wrote:

> Doesn't coreutils "tac" already do this?

The way tac works is that is queues the entire output, and then
reorders. This is necessarily slow. We can do this much much more
efficient when directly accessing journal files, by simply traversing
the file backwards in the first place.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list