Re: Request for info on proc system update frequency

From: Jeremy Fitzhardinge (jeremy@goop.org)
Date: Sun Oct 22 2000 - 23:33:17 EST


On Wed, Oct 18, 2000 at 04:48:48PM +0100, Stephen Tweedie wrote:
> On Tue, Oct 17, 2000 at 12:31:24AM -0400, John Kacur wrote:
> > I'm trying to understand how the proc file system works. In particular
> > I'd like to know more about the algorithm by which the information is
> > updated and how frequently.
>
> It is "live": the file contents are generated on demand when you read
> them. A very few proc files include time-averaged data (such as the
> load average); everything else is absolutely uptodate.

...at the instant you read it. It may be out of date a nanosecond later.
[Yes, a nit-pick, but worth making clear to the original poster.]

        J



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:20 EST