public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Jeff Moyer <jmoyer@redhat.com>
To: William Cohen <wcohen@redhat.com>
Cc: systemtap@sourceware.org
Subject: Re: Simplifying examples by improving vfs tapset
Date: Mon, 10 Nov 2008 18:23:00 -0000	[thread overview]
Message-ID: <x49ljvrqw37.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <49187622.1060709@redhat.com> (William Cohen's message of "Mon, 	10 Nov 2008 12:57:54 -0500")

William Cohen <wcohen@redhat.com> writes:

> Jeff Moyer wrote:
>
>> What about readv and writev?  I had modified my local copy of
>> disktop.stp to take these into account (hooking into do_readv_writev).
>> I will post those updates if you like, once I figure out why I ran into
>> a problem with the array assignments.  (I had to read from the io_stat
>> array before writing to it, otherwise the written values didn't show
>> up.)
>
> I didn't modify the vfs.readv and vfs.writev in the patch. However, it
> looks like the same dev and ino variables could be made available for
> vfs_writev and vfs_readv.
>
>> One other improvement that could be made to the script is AIO support.
>
> There is an example that examines rescheduling during AIO operations:
>
> http://sources.redhat.com/git/gitweb.cgi?p=systemtap.git;a=blob;f=testsuite/systemtap.examples/io/io_submit.stp;
>
> What additional support do you see needed for AIO?

Perhaps my message was off-topic, as you were focusing on the tapset and
I was focusing on the disktop.stp script.  Sorry if this caused
confusion.  Anyway, below are answers to your questions.

The disktop.stp script looks at the I/O sizes completed on behalf of a
process in order to get a good idea of which processes are issuing the
lion's share of I/O on the system.  I think the easiest way to cover the
AIO case is to instrument fs/aio.c:read_events, since it will be called
in the context of the process issuing the I/O (though not necessarily
the same thread).

This is very different from io_submit.stp, which tries to determine the
most frequent causes of scheduling inside of io_submit (a call that
processes expect to complete relatively quickly).

Cheers,

Jeff

      reply	other threads:[~2008-11-10 18:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-27 14:54 William Cohen
2008-10-28 15:40 ` Jeff Moyer
2008-11-10 17:58   ` William Cohen
2008-11-10 18:23     ` Jeff Moyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x49ljvrqw37.fsf@segfault.boston.devel.redhat.com \
    --to=jmoyer@redhat.com \
    --cc=systemtap@sourceware.org \
    --cc=wcohen@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).