From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 23 Jan 2001 19:50:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 23 Jan 2001 19:50:25 -0500 Received: from [203.53.218.1] ([203.53.218.1]:6732 "EHLO mail.platypus.net") by vger.kernel.org with ESMTP id ; Tue, 23 Jan 2001 19:50:20 -0500 content-class: urn:content-classes:message Subject: monitoring I/O MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0859F.F171E8E0" Date: Wed, 24 Jan 2001 11:52:36 +1100 X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 Message-ID: <8494866EDB1D3E4F9C7E6AC2F95C259B01DA1C@plat.platypus.net> Thread-Topic: monitoring I/O Thread-Index: AcCFn8CO38hdutNSREWdo3Vbh3FKQw== From: "Michael McLeod" To: "Linux Kernel (E-mail)" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C0859F.F171E8E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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.... =20 Any help would be greatly appreciated, or if there is something like this already available that would be even better. Thanx Mike ------_=_NextPart_001_01C0859F.F171E8E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable monitoring I/O

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

------_=_NextPart_001_01C0859F.F171E8E0-- - 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/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 23 Jan 2001 19:58:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 23 Jan 2001 19:58:39 -0500 Received: from io.frii.com ([216.17.128.3]:22794 "EHLO io.frii.com") by vger.kernel.org with ESMTP id ; Tue, 23 Jan 2001 19:58:32 -0500 Date: Tue, 23 Jan 2001 17:58:25 -0700 From: Nicholas Dronen To: Michael McLeod Cc: linux-kernel@vger.kernel.org Subject: Re: monitoring I/O Message-ID: <20010123175825.A88907@frii.com> In-Reply-To: <8494866EDB1D3E4F9C7E6AC2F95C259B01DA1C@plat.platypus.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <8494866EDB1D3E4F9C7E6AC2F95C259B01DA1C@plat.platypus.net>; from michaelm@platypus.net on Wed, Jan 24, 2001 at 11:52:36AM +1100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Check out the disk_io field in /proc/stat. On Wed, Jan 24, 2001 at 11:52:36AM +1100, Michael McLeod wrote: > 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 - 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/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 24 Jan 2001 06:58:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 24 Jan 2001 06:58:09 -0500 Received: from fs1.dekanat.physik.uni-tuebingen.de ([134.2.216.20]:56840 "EHLO fs1.dekanat.physik.uni-tuebingen.de") by vger.kernel.org with ESMTP id ; Wed, 24 Jan 2001 06:57:55 -0500 Date: Wed, 24 Jan 2001 12:57:45 +0100 (CET) From: Daniel Kobras To: Michael McLeod cc: Nicholas Dronen , Subject: Re: monitoring I/O In-Reply-To: <20010123175825.A88907@frii.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 24 Jan 2001 09:00:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 24 Jan 2001 08:59:58 -0500 Received: from d06lmsgate-3.uk.ibm.com ([195.212.29.3]:25314 "EHLO d06lmsgate-3.uk.ibm.com") by vger.kernel.org with ESMTP id ; Wed, 24 Jan 2001 08:59:52 -0500 From: richardj_moore@uk.ibm.com X-Lotus-FromDomain: IBMGB To: Daniel Kobras cc: Michael McLeod , Nicholas Dronen , linux-kernel@vger.kernel.org Message-ID: <802569DE.004CD659.00@d06mta06.portsmouth.uk.ibm.com> Date: Wed, 24 Jan 2001 13:58:26 +0000 Subject: Re: monitoring I/O Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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 on 24/01/2001 11:57:45 Please respond to Daniel Kobras To: Michael McLeod cc: Nicholas Dronen , 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/ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 19 Feb 2001 14:20:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 19 Feb 2001 14:20:09 -0500 Received: from relay03.valueweb.net ([216.219.253.237]:27402 "EHLO relay03.valueweb.net") by vger.kernel.org with ESMTP id ; Mon, 19 Feb 2001 14:19:55 -0500 Message-ID: <3A917324.A27728F1@opersys.com> From: Karim Yaghmour X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14 i686) X-Accept-Language: en, French/Canada, French/France, fr-FR, fr-CA MIME-Version: 1.0 To: Michael McLeod CC: "Linux Kernel (E-mail)" Subject: Re: monitoring I/O In-Reply-To: <8494866EDB1D3E4F9C7E6AC2F95C259B01DA1C@plat.platypus.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 19 Feb 2001 14:19:42 -0500 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org I caught this one a little bit late, but you might want to take a peek at the Linux Trace Toolkit: http://www.opersys.com/LTT You'll be able to monitor I/O at will. Best regards, Karim > Michael McLeod wrote: > > 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 -- =================================================== Karim Yaghmour karym@opersys.com Operating System Consultant (Linux kernel, real-time and distributed systems) ===================================================