mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Ming Lei <ming.lei@canonical.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Christoph Hellwig <hch@infradead.org>,
	Kent Overstreet <kent.overstreet@gmail.com>,
	Ming Lin <ming.l@ssi.samsung.com>, Dongsu Park <dpark@posteo.net>
Subject: Re: [PATCH] block: blk-merge: fast-clone bio when splitting rw bios
Date: Thu, 17 Sep 2015 09:55:34 -0600	[thread overview]
Message-ID: <55FAE276.8040208@kernel.dk> (raw)
In-Reply-To: <CACVXFVO76w7HwYjY049ZM-5_SG047HnQQPGSmek952-KZp1MgQ@mail.gmail.com>

On 09/17/2015 09:50 AM, Ming Lei wrote:
> On Thu, Sep 17, 2015 at 11:19 PM, Jens Axboe <axboe@kernel.dk> wrote:
>> On 09/17/2015 09:13 AM, Ming Lei wrote:
>>>
>>> biovecs has become immutable since v3.13, so it isn't necessary
>>> to allocate biovecs for the new cloned bios, then we can save
>>> one extra biovecs allocation/copy, and the allocation is often
>>> not fixed-length and a bit more expensive.
>>>
>>> For example, if the 'max_sectors_kb' of null blk's queue is set
>>> as 16(32 sectors) via sysfs just for making more splits, this patch
>>> can increase throught about ~70% in the sequential read test over
>>> null_blk(direct io, bs: 1M).
>>
>>
>> I'd be curious how this compares to before we did the splitting, not
>> exceeding the limits through bio_add_page() instead?
>
> Let me show these test results:
>
> ----------------------------------------------------------------------------------
> kernel                                                    | throught
> ----------------------------------------------------------------------------------
> 4.3.0-rc1-next-20150916                   | bw=12227MB/s, iops=12227
> ----------------------------------------------------------------------------------
> 4.3.0-rc1-next-20150916 with patch | bw=21011MB/s, iops=21011
> ----------------------------------------------------------------------------------
> v4.2                                                       |
> bw=18959MB/s, iops=18958
> ----------------------------------------------------------------------------------
>
> So from the above, looks this patch is kind of fix for performance regression
> introduced by 54efd50bfd(block: make generic_make_request handle
> arbitrarily sized bios), :-)

So that's 1MB user IO, and 16KB device limit, correct? If that is the 
case, then the results make sense. And looks like we're still ahead of 
the older bio_add_page() approach, which is what I mostly cared about. 
Thanks! I'll apply this for -rc2.

-- 
Jens Axboe


  reply	other threads:[~2015-09-17 15:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-17 15:13 Ming Lei
2015-09-17 15:19 ` Jens Axboe
2015-09-17 15:50   ` Ming Lei
2015-09-17 15:55     ` Jens Axboe [this message]
2015-09-17 16:01       ` Jens Axboe
2015-09-17 16:08       ` Ming Lei

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=55FAE276.8040208@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=dpark@posteo.net \
    --cc=hch@infradead.org \
    --cc=kent.overstreet@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ming.l@ssi.samsung.com \
    --cc=ming.lei@canonical.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

Powered by JetHome