Return-Path: Received: from mga05.intel.com ([192.55.52.43]:7690 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752524AbdIANfT (ORCPT ); Fri, 1 Sep 2017 09:35:19 -0400 Subject: Re: [PATCH V7 00/10] mmc: Add Command Queue support To: Ulf Hansson Cc: linux-mmc , linux-block , Bough Chen , Alex Lemberg , Mateusz Nowak , Yuliy Izrailov , Jaehoon Chung , Dong Aisheng , Das Asutosh , Zhangfei Gao , Sahitya Tummala , Harjani Ritesh , Venu Byravarasu , Linus Walleij , Shawn Lin , Christoph Hellwig References: <1504180616-14514-1-git-send-email-adrian.hunter@intel.com> From: Adrian Hunter Message-ID: <19b101f2-f4ea-8360-ccd2-99a085ecc416@intel.com> Date: Fri, 1 Sep 2017 16:28:36 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org On 01/09/17 15:58, Ulf Hansson wrote: > + Christoph > > On 1 September 2017 at 13:42, Adrian Hunter wrote: >> On 31/08/17 14:56, Adrian Hunter wrote: >>> Here is V7 of the hardware command queue patches without the software >>> command queue patches, now using blk-mq. >>> >>> HW CMDQ offers 25% - 50% better random multi-threaded I/O. I see a slight >>> 2% drop in sequential read speed but no change to sequential write. >> >> Any comments? > > A couple of overall comments, for now. > > To make sure we don't overlook something when converting to mq, I > would prefer that we first convert the existing mmc block code to mq, > then we add CMDQ on top. That doesn't make sense. This patch set is not converting the legacy driver to mq therefore it cannot overlook anything for converting to mq. > > Regarding patch1. in the long-term solution, we should really strive > towards getting rid of the big mmc host lock, as it causes us to lose > some of the benefits on which principles mq is designed upon. Lose what benefits? > However, it may be feasible to use patch1 as an intermediate step, to > be able to convert to mq short term. Then we can continue doing the > re-factoring, to get rid of the big mmc host lock and solve other > relates issues/optimize things. What remains to be seen in this > approach, is how well mq performs, as we would still be using the big > mmc host lock. We may tolerate some minor regressions, but if too > much, there is no other way that first removing the big mmc lock. Unlike HDDs, eMMC must switch between internal partitions (LUNs) so there must a way to arbitrate between them. > Of course, if Linus/Christoph don't think this intermediate approach > is good enough, we will have to respect that as well.