[BusyBox 0000627]: new logread option: -n (like tail)
bugs at busybox.net
bugs at busybox.net
Mon Jan 23 01:13:12 UTC 2006
A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=627
======================================================================
Reported By: akvadrako
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 627
Category: New Features
Reproducibility: always
Severity: feature
Priority: normal
Status: assigned
======================================================================
Date Submitted: 01-06-2006 12:45 PST
Last Modified: 01-22-2006 17:13 PST
======================================================================
Summary: new logread option: -n (like tail)
Description:
This patch adds an option to logread to only display the latest certain #
of lines. This is very useful since there is no logfile to run tail on
and the entire ring buffer must be copied for tail to work. On my system
(10MB logfile, 128MB memory) this really isn't practical.
This is tested on i386 with linux 2.6.
======================================================================
----------------------------------------------------------------------
landley - 01-22-06 16:36
----------------------------------------------------------------------
What's wrong with logread | tail -n ?
----------------------------------------------------------------------
akvadrako - 01-22-06 17:13
----------------------------------------------------------------------
Well, I clearly expalin that in my description. Tail has no way to display
the last lines of a stream because it has no way to know when the stream
will end. So instead it has to copy the entire input into memory buffer
and then display the last few lines. This takes too much memory.
Issue History
Date Modified Username Field Change
======================================================================
01-06-06 12:45 akvadrako New Issue
01-06-06 12:45 akvadrako Status new => assigned
01-06-06 12:45 akvadrako Assigned To => BusyBox
01-06-06 12:45 akvadrako File Added: busybox-logread-dash-n.patch
01-22-06 16:36 landley Note Added: 0000977
01-22-06 17:13 akvadrako Note Added: 0000978
======================================================================
More information about the busybox-cvs
mailing list