[systemd-devel] How to speed up journalctl -n foo ?
greearb at candelatech.com
Wed Jan 14 09:14:25 PST 2015
On 01/14/2015 09:05 AM, Ben Greear wrote:
> I would like to grab the last 2000 or so system log lines after
> some event happens. I tried this on Fedora-20 (systemd version 208).
> It seems unreasonable slow:
> [root at ath10k lanforge]# time journalctl -n 2000 > /tmp/foo.txt
> real 0m25.618s
> user 0m2.361s
> sys 0m23.197s
> Is there any way to configure things so that this is faster?
For reference, and a slow atom processor system:
[root at ath9k-f ~]# time tail -2000 /var/log/messages > /tmp/foo.txt
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the systemd-devel