Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2466660ybk; Mon, 11 May 2020 23:29:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpDYHHU7F2MMxIA7WAg4l9/QaAGXqrpkluUoihAvc1yLU8YzTKGDxddiFnUr7/0olRSGwK X-Received: by 2002:aa7:da5a:: with SMTP id w26mr4451768eds.53.1589264999821; Mon, 11 May 2020 23:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589264999; cv=none; d=google.com; s=arc-20160816; b=rHVG28dK6ug6KSELkSWavunrg4nLlTbTK2SAUbkz/8jZrmiDjIgmlT9XjHXkH64axd jTYNXeP5uf0dn/kEAgOFIeo05/F+JXlhCsN0pbcLqMdq+YLrT0kMpFtfgXbQOkC4wZJ5 SYZwgOkQo4b6qorA/FLlhLrWEycxOlXX5Mz8Hs4CaYS7p7xZoaTygJRk7nMS8HUW4Ppq J9N/p7+4eAsonWCf3uvyOJc074fuxmFRaAclRgKPDYtbRlvDwr5B8FpOcmFXUZSBmEWf NaIl4oOwdPjx1P4aRac0UI8L0WZFNA+8wPKSk83DfZPh98Tqp9uC7WUckdW0LcYSO6Cx RDWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=jH6jEu1pihJwdsncCxnvpckODz6I9Zd4teM1JAeqzH0=; b=ge643I5o4SDi3d8KXvC8tAvxCEke6GDrY7N7IcXgwpyA8rRInOb4HMpxxHEGf+3Xck +hZlPu+iMiGu/lSMAFkQWsdXZQHe/ligvy4ymT9wV8j0gkuix5FWUnOTtIbIKSTNoLWj mLdgZ71eT/uICmYAEzwD1Ttv2ljyjkwF6F9eAcbWhbFiE5/rAGkgBWxIV+2fsBeFuXE9 TfgTF1s7pdpuytZ8hU8FscUOWEuEmAmsoH5c/H7yQADjr1ayy3/+4So19ytxNta3Gvra /uvbq6rXsLTJzHYZOqe44Q6srPO97H+cPhIzxoNpCTPShnEO39nLeBB2wPgixsv/4ORf G7/A== 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 rl12si7095244ejb.199.2020.05.11.23.29.37; Mon, 11 May 2020 23:29:59 -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 S1728394AbgELG0L (ORCPT + 99 others); Tue, 12 May 2020 02:26:11 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:40196 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgELG0L (ORCPT ); Tue, 12 May 2020 02:26:11 -0400 Received: by mail-pl1-f194.google.com with SMTP id t16so4954798plo.7; Mon, 11 May 2020 23:26:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jH6jEu1pihJwdsncCxnvpckODz6I9Zd4teM1JAeqzH0=; b=hX0UgY4/59FSwpRDgH2V3aMsD439WVDt+/8URy68rOD4R42TUrsoSUxPERn0BH4gHn nqjo9RsV28W7AUixWKennc5B4bEuRKJqpIeY2fvcl2x4yp15uPfj+5km5vtIdqirEzAL 4qmZsoIFlqAlqpvhV7fGccwf4Wc3Pd3KvrJ+TP5AKsZDqWubzafsua50QsJJ34DZ3Ejr oRMpQrmSrehQpl8PEGBrf0fE9tfxOxIDQ2MDFFwpdosIzRjoHs8Ogu6kxG1yp6oSa/jr NRNNKjqm6KgngJ7cPg+lrZF0Wkrh1iLd6C8ewcqrUCN7Vs4sK4ozX66RZd3vW/CBlkz5 43Rg== X-Gm-Message-State: AGi0PuYSeiW7FWYbdU5/Q+lALs/cQQ8mXCPa8FPBKnJlp2ck6AhyQuac DdBQdARAjrvZPXVXS56NDRYLmpOi X-Received: by 2002:a17:90a:a584:: with SMTP id b4mr26253516pjq.106.1589264770108; Mon, 11 May 2020 23:26:10 -0700 (PDT) Received: from ?IPv6:2601:647:4802:9070:3949:7466:3de1:e65f? ([2601:647:4802:9070:3949:7466:3de1:e65f]) by smtp.gmail.com with ESMTPSA id e196sm10805814pfh.43.2020.05.11.23.26.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 May 2020 23:26:09 -0700 (PDT) Subject: Re: [RFC PATCH v2 1/7] block: Extand commit_rqs() to do batch processing To: Ming Lei Cc: Baolin Wang , Christoph Hellwig , axboe@kernel.dk, Ulf Hansson , Adrian Hunter , Arnd Bergmann , Linus Walleij , Paolo Valente , Orson Zhai , Chunyan Zhang , linux-mmc , linux-block , LKML References: <20200427154645.GA1201@infradead.org> <20200508214639.GA1389136@T590> <20200508232222.GA1391368@T590> <20200509094306.GA1414369@T590> <6579459b-aa98-78f2-f805-a6cd46f37b6c@grimberg.me> <20200511012942.GA1418834@T590> <8f2ddabc-01d0-dae9-f958-1b26a6bdf58c@grimberg.me> <20200511114731.GA1525935@T590> From: Sagi Grimberg Message-ID: <9dc69d5a-b4f3-23a6-e033-377b4e133f97@grimberg.me> Date: Mon, 11 May 2020 23:26:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200511114731.GA1525935@T590> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> devices will benefit from the batching so maybe the flag needs to be >> inverted? BLK_MQ_F_DONT_BATCHING_SUBMISSION? > > Actually I'd rather to not add any flag, and we may use some algorithm > (maybe EWMA or other intelligent stuff, or use hctx->dispatch_busy directly) > to figure out one dynamic batching number which is used to dequeue requests > from scheduler or sw queue. > > Then just one single dispatch io code path is enough. Sounds good to me, do you plan to submit a patchset?