Re: Request for info on proc system update frequency

2000-10-22 Thread Jeremy Fitzhardinge

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

 PGP signature


Re: Request for info on proc system update frequency

2000-10-22 Thread Jeremy Fitzhardinge

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

 PGP signature


Re: Request for info on proc system update frequency

2000-10-18 Thread Stephen Tweedie

Hi,

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.

--Stephen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Request for info on proc system update frequency

2000-10-18 Thread Stephen Tweedie

Hi,

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.

--Stephen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Request for info on proc system update frequency

2000-10-16 Thread John Kacur

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. (Could it be too old for some purposes by
the time it is read?)

I'm aware of the excellent proc.txt document in
Documentation/filesystems/proc.txt
and I know that the bulk of the source code is in fs/proc, but I would
appreciate it if someone with more kernel knowledge than myself could
point out which file, or where in the source code I should read to
understand how often the information in the proc file system is updated.

The reason I'm trying to understand this, is that I want to profile
processes (aka threads) for our jit compiler.

Thanks in advance

John Kacur
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/