Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3765568pxk; Tue, 22 Sep 2020 01:47:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3ZYvVMXoCLrYoI5mOd6xhirHhYJCwgnEsvYy5RqBMrn38x8gaRRndErVhlVLP/1926hSa X-Received: by 2002:a17:906:4f16:: with SMTP id t22mr3814102eju.40.1600764436469; Tue, 22 Sep 2020 01:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600764436; cv=none; d=google.com; s=arc-20160816; b=pSJy8NhMtW0PUuGAylQwOTsh1ReBPrgeb3mxJG+oyloUcCpRv7dQ6EuvXCcIj+uKXD 22mPBy28ArfXOQVe4cpCyXMbVX2w4ZoFPhqi+Fk9K6l0LSWYtgyLPyXpGWMVCKGOtBHd o32QJ0nr5fQGY8jPjPYgRkmcciZcju/7BaNqj9XeTAIt6G20qDVM/+CE46fQAYnaOo4l d0dl311t0hhXWrGlkTE90/IghwnqGF53MW4UQNUArche77oVwIfEd2DR1AEGKWDBiacG mgYrCZiVu5k+sxefWW//lqCsKqoR4/uMWoVCxO/shL6074KXrL5ElhZkSW09YbscLZRk urMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=PKOIvF+hNan1siEu83nyLhpf2/zkkHW38GXMfreBikc=; b=RGiv7BbsQaRRMSqjjVBQpJenBgEX+oViJQhD5qKnq4CRJG4LShut+XLuHXUGNxbAFy NWhITVQowgMojMy9NJkWQf4PtbPtaqFk8bueW2be9Fbw78XN4FL9nTDiwZU0RrXki6Da JjYl/tg+5TCQVN6Ezkmb4jpf/vJnXhdcp8cnQfM7D2I8UwfFqG5SZ+WYbT92M3wuC/Zt qwveBBE5mS/r4cqaQeDzXk8XZYkuogXM0tXM4iuLo6Mc5OwjcofN5gbDGp/rFQONS9db lMq7s/+bwAOcegaN0kEqUzbinyl+KJLMrF/eJH16Gs7ate19FeuD0jpnA2wUrHSPVLxs 9FZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si2851450ejm.389.2020.09.22.01.46.52; Tue, 22 Sep 2020 01:47:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726558AbgIVIpU (ORCPT + 99 others); Tue, 22 Sep 2020 04:45:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:52296 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbgIVIpU (ORCPT ); Tue, 22 Sep 2020 04:45:20 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B80B1AEEF; Tue, 22 Sep 2020 08:45:54 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id ED14B1E12E3; Tue, 22 Sep 2020 10:45:17 +0200 (CEST) Date: Tue, 22 Sep 2020 10:45:17 +0200 From: Jan Kara To: Christoph Hellwig Cc: Jens Axboe , Song Liu , Hans de Goede , Coly Li , Richard Weinberger , Minchan Kim , Johannes Thumshirn , Justin Sanders , linux-mtd@lists.infradead.org, dm-devel@redhat.com, linux-block@vger.kernel.org, linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org, drbd-dev@lists.linbit.com, linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org Subject: Re: [PATCH 04/13] aoe: set an optimal I/O size Message-ID: <20200922084517.GB16464@quack2.suse.cz> References: <20200921080734.452759-1-hch@lst.de> <20200921080734.452759-5-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921080734.452759-5-hch@lst.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 21-09-20 10:07:25, Christoph Hellwig wrote: > aoe forces a larger readahead size, but any reason to do larger I/O > is not limited to readahead. Also set the optimal I/O size, and > remove the local constants in favor of just using SZ_2G. > > Signed-off-by: Christoph Hellwig Looks good. You can add: Reviewed-by: Jan Kara Honza > --- > drivers/block/aoe/aoeblk.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c > index 5ca7216e9e01f3..d8cfc233e64b93 100644 > --- a/drivers/block/aoe/aoeblk.c > +++ b/drivers/block/aoe/aoeblk.c > @@ -347,7 +347,6 @@ aoeblk_gdalloc(void *vp) > mempool_t *mp; > struct request_queue *q; > struct blk_mq_tag_set *set; > - enum { KB = 1024, MB = KB * KB, READ_AHEAD = 2 * MB, }; > ulong flags; > int late = 0; > int err; > @@ -407,7 +406,8 @@ aoeblk_gdalloc(void *vp) > WARN_ON(d->gd); > WARN_ON(d->flags & DEVFL_UP); > blk_queue_max_hw_sectors(q, BLK_DEF_MAX_SECTORS); > - q->backing_dev_info->ra_pages = READ_AHEAD / PAGE_SIZE; > + q->backing_dev_info->ra_pages = SZ_2M / PAGE_SIZE; > + blk_queue_io_opt(q, SZ_2M); > d->bufpool = mp; > d->blkq = gd->queue = q; > q->queuedata = d; > -- > 2.28.0 > -- Jan Kara SUSE Labs, CR