This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
RE: simple (dumb) script to track sizes of IOs
- From: "Zhang, Yanmin" <yanmin dot zhang at intel dot com>
- To: "Daniel P. Berrange" <berrange at redhat dot com>, "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: "Badari Pulavarty" <pbadari at us dot ibm dot com>, <systemtap at sources dot redhat dot com>
- Date: Sat, 8 Oct 2005 09:53:39 +0800
- Subject: RE: simple (dumb) script to track sizes of IOs
>>-----Original Message-----
>>From: systemtap-owner@sources.redhat.com
>>[mailto:systemtap-owner@sources.redhat.com] On Behalf Of Daniel P. Berrange
>>Sent: 2005年10月8日 6:42
>>To: Frank Ch. Eigler
>>Cc: Badari Pulavarty; systemtap@sources.redhat.com
>>Subject: Re: simple (dumb) script to track sizes of IOs
>>
>>On Fri, Oct 07, 2005 at 06:01:50PM -0400, Frank Ch. Eigler wrote:
>>> Hi -
>>>
>>> On Fri, Oct 07, 2005 at 02:18:37PM -0700, Badari Pulavarty wrote:
>>> > [...]
>>> > > > Does this functionality exists today ?
>>> > >
>>> > > Yes, it does. Just to keep the parsing simple, I implemented a simple
>>> > > suffix syntax. For example:
>>> > >
>>> > > foreach (io+ in iosizes) { ... } // in increasing order of io index
>>> > > foreach (io in iosizes-) { ... } // in decreasing order of iosizes[]
>>>
>>> By the way, if someone has better suggestions of a nice, compact,
>>> easy-to-read and -parse alternative, let me know.
>>
>>How about something either using 'asc' or 'desc' as the operators
>>
>> foreach (io asc iosizes) { ... }
>> foreach (io desc iosizes) { ... }
>>
>>Or using 'asc' 'desc' as modifiers for the 'in' operator
>>
>> foreach (io in asc iosizes) { ... }
>> foreach (io in desc iosizes) { ... }
>>
>>Regards,
>>Dan.
>>--
>>|=- Red Hat, Global Professional Services, London. +44 (0)7977 267 243 -=|
>>|=- Perl modules: http://search.cpan.org/~danberr/ -=|
>>|=- Projects: http://freshmeat.net/~danielpb/
>>-=|
>>|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
Could a timer be added and the report be printed periodically? Users are used to see the data difference in timely style? The timer interval can be set as a parameter.