Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3353637pxk; Mon, 21 Sep 2020 11:22:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI6+Y31RN0Lju+Ol/PCGD0NoUeZAwO577Z8an+xMOowT0KHN4l7TBJEZ7S4yiZ2PWyer6x X-Received: by 2002:a17:906:813:: with SMTP id e19mr755729ejd.101.1600712537360; Mon, 21 Sep 2020 11:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600712537; cv=none; d=google.com; s=arc-20160816; b=MkRMqGuD2VmUUD6FgeFPUDN2C3TpwIs3GWw+no9oIN1ThGIAb6k5SBRVeIqebSMzgF VEPFPeyl1OFhjT6icSwmsgls4KBCrzz7M7bfY7KFgkBkHJFnde0H0/ZrC6XJhhfomkXT BMhlzhRorDoErIk/Y+V1A6/+cN21xuRUKMp7oWXqlqtiMW7Z5ko4PnPFFcuXcKFjIAd8 dcDgpNP2xuGugN0G7N4JchXV68MJD9CefsWur1WJvluptq3pf+ZFF+KncZRrLLVOSpeQ Tv7AyNNX8Jyb9f+HfoWuoDTgQumd4FZHUqYy3UjWhlim1udscFGbpKtVzJGLPBLPw+2Y 30hQ== 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=00nrXGvhNltl/Zi/WJJU9svnE9JA2gN/rgKJGHp/yWI=; b=K1f71QYSi8QJf4FPDNVugOjjTfnrmnzL91Go8k2VNfJdIrnFc3m0dkxzSFqgOFvvJH CJL5HSU5XeTB6jeV1HSoa4x0JeXo19TtEFPkDfwGz4Anc69Yw9SrKZ02zFQy+TJBLDta hdl5gHXSJiG/KsATiUpteFjXPE3ozmtnEGbqrdowsaIdrswktJyi3fpWWVG7BhbDT0x9 USiKNdiy0mb+OianFKZLDV3ymUvU8dPbOg7ubhZ5eKeJKIJRwcOQSbyTZ+99vHYlgtYs fROb1JCuV2wH1XilpHSmBtZrUUkVFNk+7HRkU5PIYCNv8Na+dEvr7M8I/R3Qt6mu1P8e KKog== 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 rh6si8571922ejb.709.2020.09.21.11.21.53; Mon, 21 Sep 2020 11:22:17 -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 S1727452AbgIUSSp (ORCPT + 99 others); Mon, 21 Sep 2020 14:18:45 -0400 Received: from verein.lst.de ([213.95.11.211]:41467 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726456AbgIUSSp (ORCPT ); Mon, 21 Sep 2020 14:18:45 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 259D968B02; Mon, 21 Sep 2020 20:18:42 +0200 (CEST) Date: Mon, 21 Sep 2020 20:18:41 +0200 From: Christoph Hellwig To: Coly Li Cc: Christoph Hellwig , Jens Axboe , Song Liu , Hans de Goede , 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 03/13] bcache: inherit the optimal I/O size Message-ID: <20200921181841.GB2067@lst.de> References: <20200921080734.452759-1-hch@lst.de> <20200921080734.452759-4-hch@lst.de> <20200921140010.GA14672@lst.de> <5bcc52dc-ca8f-bbdd-69ef-4b6312e7994a@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5bcc52dc-ca8f-bbdd-69ef-4b6312e7994a@suse.de> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 11:09:48PM +0800, Coly Li wrote: > I feel this is something should be fixed. Indeed I overlooked it until > you point out the issue now. > > The optimal request size and read ahead pages hint are necessary, but > current initialization is simple. A better way might be dynamically > setting them depends on the cache mode and some special configuration. > > By your inspiration, I want to ACK your original patch although it > doesn't work fine for all condition. Then we may know these two settings > (ra_pages and queue_io_opt) should be improved for more situations. At > lease for most part of the situations they provide proper hints. > > How do you think of the above idea ? Sounds like a plan. I'd reall like to get this series in to get some soaking before the end of the merge window, but we should still have plenty of time for localized bcache updates.