mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* /proc/stat page in and out values
@ 2002-04-12 21:10 Ravi Wijayaratne
  2002-04-12 21:22 ` Randy.Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Ravi Wijayaratne @ 2002-04-12 21:10 UTC (permalink / raw)
  To: linux-kernel

howdy,

In /proc/stat the record as

page x y 

which indicates cumulative page in and out values.
To my best undertstanding this info is stored in 
kstat.pgpgin and kstat.pgpgout.

However the values are incremented in submit_bh in
ll_rw_blk.c. So are we actually counting the buffers
we write in and out or the pages; or is it the same ?

thanks
Ravi

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: /proc/stat page in and out values
  2002-04-12 21:10 /proc/stat page in and out values Ravi Wijayaratne
@ 2002-04-12 21:22 ` Randy.Dunlap
  2002-04-13  0:32   ` M. Edward Borasky
  0 siblings, 1 reply; 3+ messages in thread
From: Randy.Dunlap @ 2002-04-12 21:22 UTC (permalink / raw)
  To: Ravi Wijayaratne; +Cc: linux-kernel

On Fri, 12 Apr 2002, Ravi Wijayaratne wrote:

| In /proc/stat the record as
|
| page x y
|
| which indicates cumulative page in and out values.
| To my best undertstanding this info is stored in
| kstat.pgpgin and kstat.pgpgout.
|
| However the values are incremented in submit_bh in
| ll_rw_blk.c. So are we actually counting the buffers
| we write in and out or the pages; or is it the same ?

Please see if
  http://marc.theaimsgroup.com/?l=linux-kernel&m=101770318012189&w=2
answers your questions.

-- 
~Randy


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: /proc/stat page in and out values
  2002-04-12 21:22 ` Randy.Dunlap
@ 2002-04-13  0:32   ` M. Edward Borasky
  0 siblings, 0 replies; 3+ messages in thread
From: M. Edward Borasky @ 2002-04-13  0:32 UTC (permalink / raw)
  To: Randy.Dunlap, Ravi Wijayaratne; +Cc: linux-kernel

There was a follow-on answer to this set of questions. Briefly, in
/proc/stat, there are two lines: page <in> <out> and swap <in> <out>. The
"page" values are in kilobytes and the "swap" values are in pages. *And*,
every byte in the "swap" values is double-counted in the "page" values as
well. So, to interpret these numbers, multiply the "page" values by 1024 and
the "swap" values by the page size in bytes. Then subtract the swap values
from the "page" values, and you'll have the number of bytes to and from swap
space and the number of bytes to and from everything else.

One other little note: later on in /proc/stat, there will be a line
containing entries for the individual disks. Those entries count operations,
reads, writes, read "blocks" and write "blocks". In these entries, a "block"
is 512 bytes.

> -----Original Message-----
> From: linux-kernel-owner@vger.kernel.org
> [mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of Randy.Dunlap
> Sent: Friday, April 12, 2002 2:23 PM
> To: Ravi Wijayaratne
> Cc: linux-kernel@vger.kernel.org
> Subject: Re: /proc/stat page in and out values
>
>
> On Fri, 12 Apr 2002, Ravi Wijayaratne wrote:
>
> | In /proc/stat the record as
> |
> | page x y
> |
> | which indicates cumulative page in and out values.
> | To my best undertstanding this info is stored in
> | kstat.pgpgin and kstat.pgpgout.
> |
> | However the values are incremented in submit_bh in
> | ll_rw_blk.c. So are we actually counting the buffers
> | we write in and out or the pages; or is it the same ?
>
> Please see if
>   http://marc.theaimsgroup.com/?l=linux-kernel&m=101770318012189&w=2
> answers your questions.
>
> --
> ~Randy
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-13  0:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-12 21:10 /proc/stat page in and out values Ravi Wijayaratne
2002-04-12 21:22 ` Randy.Dunlap
2002-04-13  0:32   ` M. Edward Borasky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®