[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <17927.3630.414133.365527@notabene.brown>
Date: Mon, 26 Mar 2007 10:05:02 +1000
From: Neil Brown <neilb@...e.de>
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
On Sunday March 25, akpm@...ux-foundation.org wrote:
> On Sat, 24 Mar 2007 23:04:09 +0100 Miklos Szeredi <miklos@...redi.hu> wrote:
>
> > 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?
Same reason we want ltrace and lsof. To be able to look inside a
process and see what it is doing.
e.g. how far has that program got through reading that enormous file?
is it really making progress, or is it going much more slowly than I
would expect and so should I look more deeply.
I'm in favour.
NeilBrown
-
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