From: Chris Mason <chris.mason@oracle.com>
To: Nikanth Karthikesan <knikanth@suse.de>
Cc: Jeff Moyer <jmoyer@redhat.com>,
linux-aio@kvack.org, linux-kernel@vger.kernel.org,
Benjamin LaHaise <bcrl@kvack.org>,
Zach Brown <zach.brown@oracle.com>
Subject: Re: [PATCH] aio: avoid using queue_delayed_work in aio_kick_handler to schedule itself
Date: Mon, 07 Jul 2008 09:44:58 -0400 [thread overview]
Message-ID: <1215438298.24425.9.camel@think.oraclecorp.com> (raw)
In-Reply-To: <200807011421.38532.knikanth@suse.de>
On Tue, 2008-07-01 at 14:21 +0530, Nikanth Karthikesan wrote:
> On Monday 30 June 2008 11:20:27 Nikanth Karthikesan wrote:
> > On Friday 27 June 2008 18:41:37 Jeff Moyer wrote:
> > > Nikanth Karthikesan <knikanth@suse.de> writes:
> > > > Avoid using queue_delayed_work in aio_kick_handler() to run itself
> > > > immediately. Instead use aio_run_all_iocbs()
> > >
> > > Can you give some rationale for this change? Also, how did you test it?
> >
> > The comment in aio_kick_handler(), "we're in a worker thread already, don't
> > use queue_delayed_work" triggered me to do this. Ran multiple instances
> > of Stephen Hemminger's aio cp for basic testing.
> >
> > I think this would make it unfair between different kioctx? May be only the
> > comment should be removed?
> >
>
> Anyway we are scheduling it again with timeout of 0, so fairness shouldnt be a
> problem? If yes, wouldn't this change reduce the overhead of queuing the work
> again, and repeated lock/unlock.
The main purpose of the delayed queuing was to improve performance with
workloads where the work was more or less immediately done. The best
example is aio pipes. The delayed queue cut down on the context switch
rate dramatically and made a large performance improvement for pipe
workloads (without cutting down on other perf at the time).
-chris
prev parent reply other threads:[~2008-07-07 13:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-26 3:57 [PATCH] aio: avoid using queue_delayed_work in aio_kick_handler to schedule itself Nikanth Karthikesan
2008-06-27 13:11 ` Jeff Moyer
2008-06-30 5:50 ` Nikanth Karthikesan
2008-07-01 8:51 ` Nikanth Karthikesan
2008-07-07 13:44 ` Chris Mason [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=1215438298.24425.9.camel@think.oraclecorp.com \
--to=chris.mason@oracle.com \
--cc=bcrl@kvack.org \
--cc=jmoyer@redhat.com \
--cc=knikanth@suse.de \
--cc=linux-aio@kvack.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zach.brown@oracle.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