From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754833AbaJNGyE (ORCPT ); Tue, 14 Oct 2014 02:54:04 -0400 Received: from ozlabs.org ([103.22.144.67]:48683 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754112AbaJNGxy (ORCPT ); Tue, 14 Oct 2014 02:53:54 -0400 From: Rusty Russell To: Ming Lei Cc: Jens Axboe , Christoph Hellwig , Linux Kernel Mailing List , Kick In , Chris J Arges Subject: Re: [PATCH] blk-merge: fix blk_recount_segments In-Reply-To: References: <1409670180-17352-1-git-send-email-ming.lei@canonical.com> <20140902162146.GA28741@infradead.org> <5405EF38.60007@kernel.dk> <20140903121902.7a9f5a5a@tom-ThinkPad-T410> <87bnquk4fe.fsf@rustcorp.com.au> <878ulyjn23.fsf@rustcorp.com.au> <87y4trhwqr.fsf@rustcorp.com.au> <87oaulhav5.fsf@rustcorp.com.au> User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Tue, 14 Oct 2014 14:24:10 +1030 Message-ID: <874mv7cnml.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ming Lei writes: > Hi Rusty, Hi Ming! Sorry, I was on vacation. I'm back and slowly working through all my mail... > 1, FIO script > [global] > direct=1 > size=128G > bsrange=${BS}-${BS} > timeout=60 > numjobs=4 > ioengine=libaio > iodepth=64 > filename=/dev/vdb #backed by /dev/nullb0, 4 virtqueues per virtio-blk > group_reporting=1 > > [f] > rw=randread > 5, result > 5.1 without Rusty's virtio-vring patch > - BS=4K, throughput: 179K > - BS=256K, throughput: 27540 (ie. always using indirect) > 5.2 with Rusty's virtio-vring patch > - BS=4K, throughput: 173K > - BS=256K, throughput: 25350 (ie. usually using indirect). > Looks throughput decreases if BS is 256K in case of your patch. Interesting. Looks like we're ending up with fewer descs in flight, though I'm surprised: with 256K blocks I'd expect us to hit the steady state of "all indirect" almost immediately. Hmm... I think the heuristic in my patch is flawed. Let me try again, and get back to you. Thanks, Rusty.