Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp687426imm; Thu, 4 Oct 2018 01:27:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV60FRIU/1jKKQt4byMuDnG687LqpIX98Qt9Ee8kQm8n4tXhIXSmUkpRh0KGkXhkYZbMwJ2J+ X-Received: by 2002:a17:902:22a:: with SMTP id 39-v6mr5524991plc.267.1538641671807; Thu, 04 Oct 2018 01:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538641671; cv=none; d=google.com; s=arc-20160816; b=UTUer+HlTJmH89/aktXoDXCmbvCGj71b6XZj29htLBYJpwy8QLAcZc3utjeZvLCpZc ozFCVaYMDDZfsKQWGRrWADdO7J17z7S7wt5F3QnQUOW2GGhAK7M3b/vrPd251fNzZpDn Q/NzQwwLT0wOGOM+5T8G6DSNRSn/ZqbOLdO93icd6hfthe2vz8bg7iOH1cEEOUiT8SA2 1Rf5oWcNcMPW17UMrsiHMzy9SWB7gp0UYYoZfRAOG9uFL4dxpcXg9ew5QxA0RNsNjOfn ugvwxzqyZgbFo5vDVfWmn1UMj1flaBqjpwinOQ3zisiZdskFF+lf3maIED+rcMFaZ80H ZuFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4mjjJU8n40vSZZvAZqSV5idSHC7+L4DCzd8oCuPu6Cs=; b=YtqW54pTumS4XGS87pDqcPIs4sSMTLs7Sd1KGzgF9akZnNsH3Ri1Nyr9ogf1e/6wY8 Lk6UDXDqIqa2Jkvze93MmjKlk0fT27fUoMR9i+CsJn5n2QY7IYf7YgylzHY7WeVHqf6l PZS9acZWkhixfWQI2w8wKlvjmxCVQb+Qds8BV6nWPVIcTSgXOfkNe6Zm5LabKa9pyvN+ NKapP4msw+mSz///2IUo1GFuE4KE1+KLQ8pdxvDBs2raA3YvzpJxuIv8Cnt4c0OZOI57 ftERZ4ZIX3kTsNrp0MKEAwupoxsYq7/cQMYJe8qoiUAD7EW8SlsFEqb33xagsj8gMvqh IUBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gGZzHJqk; 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 j10-v6si3549738pgk.22.2018.10.04.01.27.35; Thu, 04 Oct 2018 01:27:51 -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=gGZzHJqk; 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 S1727428AbeJDPSD (ORCPT + 99 others); Thu, 4 Oct 2018 11:18:03 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:38782 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727325AbeJDPSD (ORCPT ); Thu, 4 Oct 2018 11:18:03 -0400 Received: by mail-io1-f65.google.com with SMTP id e2-v6so5532651ioh.5 for ; Thu, 04 Oct 2018 01:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4mjjJU8n40vSZZvAZqSV5idSHC7+L4DCzd8oCuPu6Cs=; b=gGZzHJqkghBmRSrfFCCu8DRBk9wYUsEJifqd0oakuzHDmpacZM1PwzDfgNeQF2Hq2Z 4uBnNkf0KzFPUu2pJwetw8wqHlde7fmWuR5dbSs2ACxDyhpnnSgK3vzbv2iVK1NozXdc 8jozlmVESC89QhYNxLLtujvT/t3mrQbBHp/8g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4mjjJU8n40vSZZvAZqSV5idSHC7+L4DCzd8oCuPu6Cs=; b=JdyYDMbD7eS6Fht2o7YQfcjNLEovE8nG+Duru4nKwbKqOSs8OdzmAVuDkPB5/J7NAr tTItfbo71mZieVNmK6nUtczJbk0bhKVFCwv7LIW8A/5abDsyYUtEXW7xM2nlTu+5pxf3 niuMl6C7pQdp1nlNcM5R/dYR4ue5S40ptN9N/Oc2O7Vcv0YvTh4Ek1ZRo9JITBhozmL/ zHuszmoPrslG7jEoPPqBgGLBaWXIlcEoh0EIATyPHZp0JNeEl0jIuO54Qqr6JmmGq0IB M6fxNGmEFRhMF3DVorlAJFBx4g9gFBHHMMiHNYm4xtJDrwTSNBSKO4i/hFFaDFs0q0FU 5o0A== X-Gm-Message-State: ABuFfogo89avm6zXwfTjq/SOu/1S+o+f9UzuzH5QMUVKN9UzMalris0X XUpKq/SC8FchgsMi+wtAetflLid6yDSYVDj9YLwQUw== X-Received: by 2002:a6b:4006:: with SMTP id k6-v6mr3373931ioa.277.1538641556569; Thu, 04 Oct 2018 01:25:56 -0700 (PDT) MIME-Version: 1.0 References: <20181002124329.21248-1-linus.walleij@linaro.org> <05fdbe23-ec01-895f-e67e-abff85c1ece2@kernel.dk> <1eca41df95ff660eb247a3de666adeb4@natalenko.name> In-Reply-To: <1eca41df95ff660eb247a3de666adeb4@natalenko.name> From: Linus Walleij Date: Thu, 4 Oct 2018 10:25:43 +0200 Message-ID: Subject: Re: [PATCH] block: BFQ default for single queue devices To: oleksandr@natalenko.name Cc: Paolo Valente , Jens Axboe , linux-block , linux-mmc , linux-mtd@lists.infradead.org, Pavel Machek , Ulf Hansson , Richard Weinberger , Artem Bityutskiy , Adrian Hunter , Jan Kara , aherrmann@suse.com, mgorman@suse.com, Chunyan Zhang , "linux-kernel@vger.kernel.org" , bfq-iosched@googlegroups.com, Mark Brown Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 3, 2018 at 1:49 PM Oleksandr Natalenko wrote: > On another hand, the users of embedded devices, mentioned by Linus, > should already know what scheduler to choose because dealing with > embedded world assumes the person can decide this on their own, or with > the help of abovementioned udev scripts and/or Documentation/ as a > reference point. > > So I see no obstacles here, and the choice to rely on udev by default > sounds reasonable. I am sorry but I do not agree with this. There are several historical precedents where we have concluded that just "have the kernel do the right thing by default" is the way to go. Example 1: pluggable CPU schedulers. The reasoning was that users or distros have no clue what scheduler they want, only scheduler developers do. We drove it to the point where we have one and one scheduler only, not different flavors. (Special usecases have special scheduling classes inside the one scheduler instead.) Example 2: Automatic process group scheduling The reasoning was that daemons such as systemd would be better at placing processes/tasks into the right control groups to manage their resources, so this would be a userspace policy handled by the udev/systemd complex. We did not do that. Instead the kernel does autogrouping per-session, indeed it is a Kconfig option but even e.g. Fedora has this enabled by default. (commit 5091faa449ee) As pointed out elsewhere: these defaults make it easy for custom builds not using udev+systemd to get a system up and running with sensible defaults. Simple embedded systems use Busybox' mdev (I wouldn't trust it do do any complex decisions). OpenWRT has ubox+ubus+uci, also extremely lightweight, Android has its own init system that I don't manage to keep track of anymore. Instead of running all over the map and fixing these userspaces to do the right thing, it makes sense to make the right thing the default. And these are millions and millions of deployed systems not using udev+systemd we are talking about, they are not fringe hobby projects. It's not that I personally dislike udev or anything, I kind of like it, but these tailored distros simply don't use it and they are huge in numbers. They need help to do the right thing. Fixing a udev rule doesn't solve even half the world's problems I'm afraid. Yours, Linus Walleij