public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* monitoring I/O
@ 2001-01-24  0:52 Michael McLeod
  2001-01-24  0:58 ` Nicholas Dronen
  2001-02-19 19:19 ` Karim Yaghmour
  0 siblings, 2 replies; 5+ messages in thread
From: Michael McLeod @ 2001-01-24  0:52 UTC (permalink / raw)
  To: Linux Kernel (E-mail)

[-- Attachment #1: Type: text/plain, Size: 609 bytes --]

Hello

I am hoping someone can give me a little information or point me in the
right direction.  I would like to write an application that monitors I/O
on a linux machine, but I need some help in determining where to get the
information I'm looking for.  What I would like to do is 'hook' into the
kernel and record information such as volume name, type of request (read
or write), the amount of data being read or written, how long each
transaction takes....  

Any help would be greatly appreciated, or if there is something like
this already available that would be even better.  Thanx

Mike

[-- Attachment #2: Type: text/html, Size: 1059 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: monitoring I/O
@ 2001-01-24 13:58 richardj_moore
  0 siblings, 0 replies; 5+ messages in thread
From: richardj_moore @ 2001-01-24 13:58 UTC (permalink / raw)
  To: Daniel Kobras; +Cc: Michael McLeod, Nicholas Dronen, linux-kernel



I can offer the GKHI we put together to make kernel hooks easy to add an
manage. If you know which code paths you need to peek then you can write
you monitor as a kernel mod - user mod pair. The kernel mod will accumulate
the stats, the user mod will extract and report the stats. See the web page
below if you're interested - but note we're very shortly to release a new
version of the GKHI.

Another options is to use dynamic probes - this will require not kernel
modificaitons - again to have to know exactly where you want to place the
probes. Again see the web page below for details.

Richard


Richard Moore -  RAS Project Lead - Linux Technology Centre (PISC).

http://oss.software.ibm.com/developerworks/opensource/linux
Office: (+44) (0)1962-817072, Mobile: (+44) (0)7768-298183
IBM UK Ltd,  MP135 Galileo Centre, Hursley Park, Winchester, SO21 2JN, UK


Daniel Kobras <kobras@tat.physik.uni-tuebingen.de> on 24/01/2001 11:57:45

Please respond to Daniel Kobras <kobras@tat.physik.uni-tuebingen.de>

To:   Michael McLeod <michaelm@platypus.net>
cc:   Nicholas Dronen <ndronen@frii.com>, linux-kernel@vger.kernel.org
Subject:  Re: monitoring I/O




On Tue, 23 Jan 2001, Nicholas Dronen wrote:

> Check out the disk_io field in /proc/stat.

Which unfortunately provides only some pieces of information Michael wants
to gather. SCT's sard patches give you much improved statistics that
should basically do what you want. I'm not sure of the current location of
the sard patches but as RedHat puts sard in its kernel, it should be
available somewhere on redhat.com, I suppose. Check out the sysstat
package for userlevel tools. Earlier versions of sard can be found at
ftp.uk.linux.org/pub/linux/sct/fs/profiling/

> On Wed, Jan 24, 2001 at 11:52:36AM +1100, Michael McLeod wrote:
> > I am hoping someone can give me a little information or point me in the
> > right direction.  I would like to write an application that monitors
I/O
> > on a linux machine, but I need some help in determining where to get
the
> > information I'm looking for.  What I would like to do is 'hook' into
the
> > kernel and record information such as volume name, type of request
(read
> > or write), the amount of data being read or written, how long each
> > transaction takes....

Regards,

Daniel.

--
     GNU/Linux Audio Mechanics - http://www.glame.de
              Cutting Edge Office - http://www.c10a02.de
           GPG Key ID 89BF7E2B - http://www.keyserver.net

-
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/



-
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/

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

end of thread, other threads:[~2001-02-19 19:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-24  0:52 monitoring I/O Michael McLeod
2001-01-24  0:58 ` Nicholas Dronen
2001-01-24 11:57   ` Daniel Kobras
2001-02-19 19:19 ` Karim Yaghmour
  -- strict thread matches above, loose matches on Subject: below --
2001-01-24 13:58 richardj_moore

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