Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1285122imm; Fri, 5 Oct 2018 23:47:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV63j0aCvm4lKmfKB3P+lcPRetiozBHCK9gbUUfJB/giSO4UmdMauQzcC+bglL1H9D99AKp7c X-Received: by 2002:a17:902:8a90:: with SMTP id p16-v6mr15027663plo.106.1538808429602; Fri, 05 Oct 2018 23:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538808429; cv=none; d=google.com; s=arc-20160816; b=Tc4ZhP+QBcaxtU36PiRyykc/al3cwSFadMLV487WEs31AHG5t4v1+FgB3GlVeCGcSz /quMzZbLXf0Q5J/3UNiqRPWuvbWtmnyubXXOxrYOXyTYhZyc3p/1ZS5enen9Mf52B71U TzUlt8UuZfFm9yMI7AsCQ0EFwjI/n19od+G19o1QYov/xlj2RnhEunus9kfHV8NBQ+sI 9qGueylPwjg4crtGkLBVs4LI5vUxEFIyV3jVmNhb0h1uEG4bqgwCFespWlR6p4jEmCEv VzeyMsm8By3JYgSjUN0Z73mOiu+4Bv4vCFUioqWKred/NV/dy8A/DtXn282LYNY9yNOb GgVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=C6Kx+7jZkW+F6mP2kuTI1AOyF5VbXamlYnFlsvHR0MA=; b=FCf9pQescaQ4bxUI/mDLDyAOdAR0Hhi0JkObmS4ce8jJZzFf1lTSIW5tDXCbtvZuoI hdL3bhgTtonRtMlKJ03PqMVGasm/AwrbGgzcvKczZxIug/1Q8ZzvGJXMwweI2GHWeAcC EX+mUGKcasJ9c6o9x/Ax+iNL9b7+4f7Q6wadG88S2p2DAM3fk/iiLzK9w4ixaqX8qsEQ tNaMzZ0ayMhq+0LsckMDzuHWRcysdwRtM2Z6ZiNX89NIT4xZ2prwYF49XBLU7d/GS8Yu rbE0vUToh5cFCldH/NWbBJGwFbUut5vhO/g/sdCBpPn7+pBI2EraV6/fYKsATVY1XPPo IBMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VzV2iqsj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1-v6si11399419pld.424.2018.10.05.23.46.44; Fri, 05 Oct 2018 23:47:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VzV2iqsj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727580AbeJFNst (ORCPT + 99 others); Sat, 6 Oct 2018 09:48:49 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45130 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727117AbeJFNss (ORCPT ); Sat, 6 Oct 2018 09:48:48 -0400 Received: by mail-wr1-f66.google.com with SMTP id q5-v6so15535845wrw.12 for ; Fri, 05 Oct 2018 23:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=C6Kx+7jZkW+F6mP2kuTI1AOyF5VbXamlYnFlsvHR0MA=; b=VzV2iqsjxOM6liTmB3OsLEr5P4AvCsaQivvBN9GROM3qY3/A3QfewS5m5DpWXTb78R yI+bdUF4bt4zXfifC7ZribvpCz/euv/Cwg02ymEV0dzS++yuw03p7Li/Lswc9l1JsJYv fqXnCxJjUuvToplMJhaUPNHB+cW4ERZd8bov0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=C6Kx+7jZkW+F6mP2kuTI1AOyF5VbXamlYnFlsvHR0MA=; b=uMf7TbQowDXswt7r/lQUydyBeaDWuWm4Rw8II/GAX76t8c76N4TM2n7eXe9GSZaZDn cpc4IsbMxox8F7Ccf9W+dVPHv3Nt4ZdOw23DwUB/X5FJeEF58jT0RYreImArsi4lYtkJ irZNnZOs01Xls0t5bEZBFwfeBOpVDp+OVlvmybi4oh+lGLfNmrRe/4FzCxUdaH//uzQ1 SQAPpaLNE0ZYQW+VaFC68FwYrToguH2ishQXqOOd94KZpPViETWJSylY12tPrA/beogo HD/1h1GR/q04bbKFb/aT1phb3dwNHzHSKPPt6B6Eh5VsyhxCsgmdRD5AsWVVcgVjHxiJ 9GcA== X-Gm-Message-State: ABuFfoiCYCxkwbuzQNGH9TbXHccF2lVrnG1+MYsAw5kNMiwASDgrKa86 1XXd1oIR6lILLFoysgmCaE0onQ== X-Received: by 2002:adf:8022:: with SMTP id 31-v6mr11017155wrk.16.1538808398881; Fri, 05 Oct 2018 23:46:38 -0700 (PDT) Received: from [192.168.0.103] (146-241-62-14.dyn.eolo.it. [146.241.62.14]) by smtp.gmail.com with ESMTPSA id y7-v6sm4010781wmy.27.2018.10.05.23.46.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 23:46:37 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: [PATCH] block: BFQ default for single queue devices From: Paolo Valente In-Reply-To: <20bfa679-3131-e0af-f69d-2fbec32fbced@acm.org> Date: Sat, 6 Oct 2018 08:46:36 +0200 Cc: Jan Kara , Alan Cox , Jens Axboe , Linus Walleij , linux-block , linux-mmc , linux-mtd@lists.infradead.org, Pavel Machek , Ulf Hansson , Richard Weinberger , Artem Bityutskiy , Adrian Hunter , Andreas Herrmann , Mel Gorman , Chunyan Zhang , linux-kernel Content-Transfer-Encoding: quoted-printable Message-Id: References: <20181002124329.21248-1-linus.walleij@linaro.org> <05fdbe23-ec01-895f-e67e-abff85c1ece2@kernel.dk> <1538582091.205649.20.camel@acm.org> <20181004202553.71c2599c@alans-desktop> <1538683746.230807.9.camel@acm.org> <1538692972.8223.7.camel@acm.org> <20181005091626.GA9686@quack2.suse.cz> <20bfa679-3131-e0af-f69d-2fbec32fbced@acm.org> To: Bart Van Assche X-Mailer: Apple Mail (2.3445.9.1) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Il giorno 06 ott 2018, alle ore 05:12, Bart Van Assche = ha scritto: >=20 > On 10/5/18 2:16 AM, Jan Kara wrote: >> On Thu 04-10-18 15:42:52, Bart Van Assche wrote: >>> What I think is missing is measurement results for BFQ on a system = with >>> multiple CPU sockets and against a fast storage medium. Eliminating >>> the host lock from the SCSI core yielded a significant performance >>> improvement for such storage devices. Since the BFQ scheduler locks = and >>> unlocks bfqd->lock for every dispatch operation it is very likely = that BFQ >>> will slow down I/O for fast storage devices, even if their driver = only >>> creates a single hardware queue. >> Well, I'm not sure why that is missing. I don't think anyone proposed = to >> default to BFQ for such setup? Neither was anyone claiming that BFQ = is >> better in such situation... The proposal has been: Default to BFQ for = slow >> storage, leave it to deadline-mq otherwise. >=20 > Hi Jan, >=20 > How do you define slow storage? The proposal at the start of this = thread was to make BFQ the default for all block devices that create a = single hardware queue. That includes all SATA storage since scsi-mq only = creates a single hardware queue when using the SATA protocol. The = proposal to make BFQ the default for systems with a single hard disk = probably makes sense but I am not sure that making BFQ the default for = systems equipped with one or more (SATA) SSDs is also a good idea. = Especially for multi-socket systems since BFQ reintroduces a queue-wide = lock. No, BFQ has no queue-wide lock. The very first change made to BFQ for porting it to blk-mq was to remove the queue lock. Guided by Jens, I replaced that lock with the exact, same scheduler lock used in mq-deadline. Thanks, Paolo > As you know no queue-wide locking happens during I/O in the scsi-mq = core nor in the blk-mq core. >=20 > Bart.