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@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@ath9k-f ~]# time tail -2000 /var/log/messages > /tmp/foo.txt

real    0m0.005s
user    0m0.002s
sys     0m0.003s

Thanks,
Ben

-- 
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to