[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070326094120.GD741@vanheusden.com>
Date: Mon, 26 Mar 2007 11:41:20 +0200
From: Folkert van Heusden <folkert@...heusden.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Miklos Szeredi <miklos@...redi.hu>, linux-kernel@...r.kernel.org
Subject: Re: [patch] add file position info to proc
> > This patch adds support for finding out the current file position,
> > open flags and possibly other info in the future.
> > These new entries are added:
> >
> > /proc/PID/fdinfo/FD
> > /proc/PID/task/TID/fdinfo/FD
> > For each fd the information is provided in the following format:
> > pos: 1234
> > flags: 0100002
>
> I've seen the idea mentioned once or twice, but not with any great
> enthusiasm. Why does Linux want this feature?
Well, it happened quiet a few times that I started some perlscript
parsing a few GB of data and forgot to add some progress counter.
When after an hour of processing the script still has not stopped, I'd
like to see how much it processed so that I can estimate how long I
still have to wait and if it is worthwhile to stop the script for
optimalisations and such.
Folkert van Heusden
--
MultiTail รจ uno flexible tool per seguire di logfiles e effettuazione
di commissioni. Feltrare, provedere da colore, merge, 'diff-view',
etc. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists