public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@fb.com>
To: Ming Lei <ming.lei@redhat.com>,
	linux-block@vger.kernel.org,
	Christoph Hellwig <hch@infradead.org>
Subject: Re: [PATCH] mtip32xx: avoid to read HOST_CAP from HW in .queue_rq()
Date: Wed, 5 Jul 2017 12:11:02 -0600	[thread overview]
Message-ID: <5b272cd9-3479-6b79-312d-11f1dedc7ed0@fb.com> (raw)
In-Reply-To: <20170705041427.9887-1-ming.lei@redhat.com>

On 07/04/2017 10:14 PM, Ming Lei wrote:
> It is observed reading the register from HW takes a bit long,
> for example in my box, the following difference of 'perf report
> --no-children fio ...' can be seen when running I/O:
> 
> 1) V4.12 without patch
> +    9.28%       fio  [mtip32xx]           [k] mtip_irq_handler
> +    8.48%       fio  [mtip32xx]           [k] mtip_init_cmd_header
> 
> 2) V4.12 with the following patch
> +    9.14%       fio  [mtip32xx]           [k] mtip_irq_handler
> ......
> +    1.14%       fio  [mtip32xx]           [k] mtip_init_cmd_header
> 
> IOPS can be increased by ~5% with this patch too.

Thanks, this is definitely problematic since we don't just do it
at init time anymore. Applied for 4.13.

-- 
Jens Axboe

      parent reply	other threads:[~2017-07-05 18:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-05  4:14 [PATCH] mtip32xx: avoid to read HOST_CAP from HW in .queue_rq() Ming Lei
2017-07-05 18:01 ` Christoph Hellwig
2017-07-05 18:11 ` Jens Axboe [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=5b272cd9-3479-6b79-312d-11f1dedc7ed0@fb.com \
    --to=axboe@fb.com \
    --cc=hch@infradead.org \
    --cc=linux-block@vger.kernel.org \
    --cc=ming.lei@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