Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp202371imm; Fri, 5 Oct 2018 02:18:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV62xof7torkWvBR5mBSNjknZeRN4ybXXlpsyP6vzIcTUWZGbRa0wO0xbTF6KExy5Atf9iCQd X-Received: by 2002:a17:902:6b83:: with SMTP id p3-v6mr10617261plk.24.1538731098242; Fri, 05 Oct 2018 02:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538731098; cv=none; d=google.com; s=arc-20160816; b=fwmj4P19h9cvRLuQ8uZPf4aOs9qiqBKLUyZtO73rguB8yO2wNRbhjGSay/YteNFdil c+u47rQSNJCV4wIkx10w1wjp5+ph+Pceza0GeDu9yWWUG4Imt2t8qnbAd6epn5E8ph06 BdPzqqV2tz5Md0CGiEdVvIFJcisJrSBtxlCDDKi3zjhTCYOlmJ785gnsnWmldRhxKEsU jrJ1JGWXnDFSacYm25DJVQcCiSMEBCvlHM/RVc+JIvWZ4dH+cRcFikqZpn5B6VXSJvdR Wqz3g0UB5ePAv/iRqcXwKJ/3k3JNYFBKv7M3Rn/Ieckh8urHbxcIvU4422WFexdp+sOw iLmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+aAkUOQd4qs7AWGAp6fb2/6E9ZFv+1iJLLpMp3KQEsY=; b=qjXZ3nmDTS+Lv9VGRZZcuDG+mYy5DQLGnNOzFDp8WQc1kp+YTqADSEELn8d9XK04Eq idESuHdt85jfht3KDUHj3Ii5dz2NSB4unlDipYq4vRlZgdb5OgvYCIVgYswYCAR+Ml1c 3d60nOHBk8+1MmQrMT7gT1lgW+UA2CG9Dqdf8BZvThsRRlLCrsn7bGA7nkH6xYDzFvmh VHaZpDXzdARyWeeXOyf6euwZ1VNtscnVKP9XCjkhIPGPQHdeFxILAJQ7S071v4nIhul7 JbyJv6tTiSHosd212pokSZ/xKO+8mAhemucy4qwMjYoiq9PhxgncRaNMI7i76knsNfv3 hQ9w== 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 z33-v6si8305648plb.169.2018.10.05.02.18.00; Fri, 05 Oct 2018 02:18:18 -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 S1728676AbeJEQOU (ORCPT + 99 others); Fri, 5 Oct 2018 12:14:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:50662 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727809AbeJEQOT (ORCPT ); Fri, 5 Oct 2018 12:14:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id DC19DACC2; Fri, 5 Oct 2018 09:16:26 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 9A0511E3614; Fri, 5 Oct 2018 11:16:26 +0200 (CEST) Date: Fri, 5 Oct 2018 11:16:26 +0200 From: Jan Kara To: Bart Van Assche Cc: Paolo Valente , 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 Subject: Re: [PATCH] block: BFQ default for single queue devices Message-ID: <20181005091626.GA9686@quack2.suse.cz> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1538692972.8223.7.camel@acm.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 04-10-18 15:42:52, Bart Van Assche wrote: > On Thu, 2018-10-04 at 22:39 +0200, Paolo Valente wrote: > > No, kernel build is, for evident reasons, one of the workloads I cared > > most about. Actually, I tried to focus on all my main > > kernel-development tasks, such as also git checkout, git merge, git > > grep, ... > > > > According to my test results, with BFQ these tasks are at least as > > fast as, or, in most system configurations, much faster than with the > > other schedulers. Of course, at the same time the system also remains > > responsive with BFQ. > > > > You can repeat these tests using one of my first scripts in the S > > suite: kern_dev_tasks_vs_rw.sh (usually, the older the tests, the more > > hypertrophied the names I gave :) ). > > > > I stopped sharing also my kernel-build results years ago, because I > > went on obtaining the same, identical good results for years, and I'm > > 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 "none" (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->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. Honza -- Jan Kara SUSE Labs, CR