Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp23596imm; Thu, 4 Oct 2018 15:43:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV63OyQLXXXvy+mg99HrneM3humsgfd6B2my58InWch3eZol9JH+C6AqKEZ4AkaP/u5g5Tnl1 X-Received: by 2002:a17:902:e28a:: with SMTP id cf10-v6mr8604807plb.4.1538692999215; Thu, 04 Oct 2018 15:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538692999; cv=none; d=google.com; s=arc-20160816; b=WSPVyXAPSZCaF3C13+Se0MNPE0ICOaoKSLbfsX2izesVFGvNDFp7eZQZ9hUp1a2vNE BiREq6+ITUtKwcqiIZiJ8OyBw9SYeOFnPeWBvC0F9prXpEp3wanUkOUdzeKYf6Oa0AqF 3V4cF6gq4h/PXYh6Yl1jHhDBXQQXcjerB5oTmVRtejIiK8UiIOOCJFSmWH79tfaVX6t9 MGOI9m7U0Bg3zyzbL5CuaBu4DOqF6zYiRIHGdGnoZ7/0858/iyZUrl2OvHgMXIxvW10s 5GffBqJ+frWf1g6aqEa+AelvNkUkdJiclfq3SWgfspFNowRqGqsEr7ouGjLzeojuvo1T Uokw== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=f2eCVFrVCkZ/k2TcpDIIc/2LcxzHPoY3pvxk7bX2qio=; b=hRUdFVPeM5cz5PukJ0X80H++DI0X8q4vP9XfdHtfJRvtl3jli+BcF0JCNJWJ8IndCf W+hYozy4J1H3zvs+UHIuI8HnaMMdnh6OLwHjGLGkZhvvWTrkC00r6BOEy3My4qkvpTu3 GW784FpecIw5Y17p4OGIwCq2bMQlm5W5+ZXsRv6hgB3wR3xIxx66LpJwaDnQMPriaNE8 hSolSSZPDeuQ+XBApmqfAOYXX7wMxCK9Wa4IM4VQA3l3y7XTGUY+vTw+jUEA3V+z2HN+ JKWU15l/HFLyXBPu47Cwj5bHfgi8bimxMOwbxTIuyFPn43s4EK6WyvdL0N/Asd3t/Anj LQFw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13-v6si6282181pfo.108.2018.10.04.15.43.01; Thu, 04 Oct 2018 15:43:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727236AbeJEFib (ORCPT + 99 others); Fri, 5 Oct 2018 01:38:31 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42329 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbeJEFib (ORCPT ); Fri, 5 Oct 2018 01:38:31 -0400 Received: by mail-pg1-f196.google.com with SMTP id i4-v6so3799403pgq.9; Thu, 04 Oct 2018 15:42:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=f2eCVFrVCkZ/k2TcpDIIc/2LcxzHPoY3pvxk7bX2qio=; b=O8wb8vGJkNMGa23rKaIpSMf4/+xm66vZ+iwXMEt1V7RM1D3wOGFCPsGYn8Yrf84d3I +E0YoauEuXLptNlcDj7KgmEu2huSNKW7HrlxJrbWWc/mHxJVEdHa6FPxCZzZWqnH5DBT tYJWXgyo2HVfJ3CX1XdTCLpgxe0W4Fc1mSWJc4aq4j71RIZm9xUafnCb47QHrB2mRWP6 x+Tkox2NHKlMCZu9vkhZVix+60O+rpBs9oCXAj5FhlCYgYr9n5FSNDZ/i5/cuF5vSIt1 0BF25yLRDJEqeDM8uSV/0VS/GbganTzgQG1Np0bpmX3MJkXgKlQ6gwuLnUPEzfPF6+RZ gI1A== X-Gm-Message-State: ABuFfoiWA8DTVWatYRV/r51KaWNFLbdiKvjrEfLwJbARTapLZZRAwhpa NDlYRRMhB7/vCEmXEWz4vfU= X-Received: by 2002:a65:4548:: with SMTP id x8-v6mr7515345pgr.414.1538692975395; Thu, 04 Oct 2018 15:42:55 -0700 (PDT) Received: from ?IPv6:2620:15c:2cd:203:5cdc:422c:7b28:ebb5? ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id f22-v6sm9226791pff.29.2018.10.04.15.42.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Oct 2018 15:42:54 -0700 (PDT) Message-ID: <1538692972.8223.7.camel@acm.org> Subject: Re: [PATCH] block: BFQ default for single queue devices From: Bart Van Assche To: Paolo Valente Cc: 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 , Jan Kara , Andreas Herrmann , Mel Gorman , Chunyan Zhang , linux-kernel Date: Thu, 04 Oct 2018 15:42:52 -0700 In-Reply-To: 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> Content-Type: text/plain; charset="UTF-7" X-Mailer: Evolution 3.26.2-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-10-04 at 22:39 +-0200, Paolo Valente wrote: +AD4 No, kernel build is, for evident reasons, one of the workloads I cared +AD4 most about. Actually, I tried to focus on all my main +AD4 kernel-development tasks, such as also git checkout, git merge, git +AD4 grep, ... +AD4 +AD4 According to my test results, with BFQ these tasks are at least as +AD4 fast as, or, in most system configurations, much faster than with the +AD4 other schedulers. Of course, at the same time the system also remains +AD4 responsive with BFQ. +AD4 +AD4 You can repeat these tests using one of my first scripts in the S +AD4 suite: kern+AF8-dev+AF8-tasks+AF8-vs+AF8-rw.sh (usually, the older the tests, the more +AD4 hypertrophied the names I gave :) ). +AD4 +AD4 I stopped sharing also my kernel-build results years ago, because I +AD4 went on obtaining the same, identical good results for years, and I'm +AD4 aware that I tend to show and say too much stuff. On my test setup building the kernel is slightly slower when using the BFQ scheduler compared to using scheduler +ACI-none+ACI (kernel 4.18.12, NVMe SSD, single CPU with 6 cores, hyperthreading disabled). I am aware that the proposal at the start of this thread was to make BFQ the default for devices with a single hardware queue and not for devices like NVMe SSDs that support multiple hardware queues. 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-+AD4-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. Bart.