mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Arjan van de Ven <arjan@infradead.org>
Cc: "Chen, Kenneth W" <kenneth.w.chen@intel.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [RFC] add sysfs to dynamically control blk request tag maintenance
Date: Fri, 7 Oct 2005 10:06:21 +0200	[thread overview]
Message-ID: <20051007080620.GQ2889@suse.de> (raw)
In-Reply-To: <1128671408.2921.12.camel@laptopd505.fenrus.org>

On Fri, Oct 07 2005, Arjan van de Ven wrote:
> On Fri, 2005-10-07 at 09:41 +0200, Jens Axboe wrote:
> > Ok that makes more sense! But it's a little worrying that
> > blk_queue_end_tag() would show up as hot in the profile, it is actually
> > quite lean.
> 
> it probably just is the first one to touch the IO structures after the
> completion, and thus gets the penalty for the cachemiss. Something has
> to have that after io completion (the io started usually > 10 msec ago
> after all, and usually on another cpu at that) and my experience is that
> it's one of those jello elephants; you can only move it around but not
> really avoid it.

That thought did occur to me, but I don't really see how that can be the
case. The ->queue_tags should be cache hot if you repeatedly call that
function, since that will never change. The request itself has been
touched by scsi_end_request() already, so unless the layout is really
bad we shouldn't need to fetch a lot of cache lines there. That leaves
__test_and_clear_bit(), I guess that must be it.

-- 
Jens Axboe


  reply	other threads:[~2005-10-07  8:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-07  7:35 Chen, Kenneth W
2005-10-07  7:41 ` Jens Axboe
2005-10-07  7:50   ` Arjan van de Ven
2005-10-07  8:06     ` Jens Axboe [this message]
2005-10-07  8:25       ` Arjan van de Ven
  -- strict thread matches above, loose matches on Subject: below --
2005-10-07  8:13 Chen, Kenneth W
2005-10-07 16:57 ` Andrew Vasquez
2005-10-07 18:17   ` Jens Axboe
2005-10-07  8:04 Chen, Kenneth W
2005-10-07  7:52 Chen, Kenneth W
2005-10-07  8:07 ` Jens Axboe
2005-10-07  2:46 Chen, Kenneth W
2005-10-07  7:23 ` Jens Axboe

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=20051007080620.GQ2889@suse.de \
    --to=axboe@suse.de \
    --cc=arjan@infradead.org \
    --cc=kenneth.w.chen@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

Powered by JetHome