Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031286AbdDZWNE (ORCPT ); Wed, 26 Apr 2017 18:13:04 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:31694 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031267AbdDZWMy (ORCPT ); Wed, 26 Apr 2017 18:12:54 -0400 X-IronPort-AV: E=Sophos;i="5.37,256,1488816000"; d="scan'208";a="14146457" From: Bart Van Assche To: "paolo.valente@linaro.org" , "juri.lelli@arm.com" CC: "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , "peterz@infradead.org" , "patrick.bellasi@arm.com" , "axboe@kernel.dk" , "joelaf@google.com" , "andresoportus@google.com" , "morten.rasmussen@arm.com" , "aherrmann@suse.com" Subject: Re: bfq-mq performance comparison to cfq Thread-Topic: bfq-mq performance comparison to cfq Thread-Index: AQHSsdm2Eefag5Pjc0GpWkttf0cWdaHMUjWAgAmaG4CAAXtjAIAA6QGA Date: Wed, 26 Apr 2017 22:12:36 +0000 Message-ID: <1493244753.2632.22.camel@sandisk.com> References: <20170410090538.GA11473@suselix.suse.de> <82BCEB46-8D05-42DA-AE06-3426895A7842@linaro.org> <1491837330.4199.1.camel@sandisk.com> <4C1ABADD-6751-45E4-8DA1-ACA5A9E1379D@linaro.org> <20170425094043.GB7959@e106622-lin> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linaro.org; dkim=none (message not signed) header.d=none;linaro.org; dmarc=none action=none header.from=sandisk.com; x-originating-ip: [63.163.107.100] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY1PR0401MB1535;7:rPLVMpDkQOfemaWKYTw9pThF61H7KivfdGjDOlYgnI29rW4A8cdnEUL/beALFQT1iR/SS9ewx5xpCd00hvb6D/yPE+Wu2vcWwW3GDjCcaYhqDZivdLmd6wFB3mnafzJJ+ylQQ63NnjUX9HHdAefpqezZoYf+zHPvZN0RQF8m8GcywhXcTXDv0649TdD+prfLdftXy3hmdJPkNHx9jTnUCNlEHrXXOR0nqqSLI7M6U4mYlhICfU2TIpXwZAYWEXRqKuQEy8j20HexwzgniHnmRcHYdCGLdfNA0X3p0k6g2WmtP0GWTjKAXe/w2eOOdw6P+v7MO/PaZEyjob1Rf/Ftsg==;20:OzCxcL1xtXg3BsAHPGonFNx8mzuTAZlvQzR3YcdbtlQIAaGg6HtlQRXW8Sa6ca/PwdfIrJ/OJ0PSKER38kY2hpT/jTwnOOO09QYTsw8Q7N0YOmJIf3CqFJv/kYNH7EHQTgYn0ADHlgXYsjL4xosPZ1skC9rJCQiqWTzgoaaiKTc= x-ms-office365-filtering-correlation-id: 40e9c0ca-8b75-4b5a-98bc-08d48cf15887 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081);SRVR:CY1PR0401MB1535; wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(20558992708506)(278428928389397)(231250463719595); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148);SRVR:CY1PR0401MB1535;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0401MB1535; x-forefront-prvs: 0289B6431E x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39840400002)(39450400003)(39860400002)(39410400002)(39400400002)(39850400002)(24454002)(31014005)(377424004)(7416002)(5660300001)(25786009)(66066001)(229853002)(4326008)(2950100002)(6246003)(53936002)(50986999)(54356999)(966004)(7736002)(53376002)(6512007)(99286003)(6306002)(76176999)(54906002)(305945005)(36756003)(2501003)(189998001)(38730400002)(77096006)(102836003)(561944003)(2906002)(86362001)(3280700002)(6486002)(3846002)(2900100001)(3660700001)(6436002)(81166006)(6506006)(6116002)(103116003)(8936002)(93886004)(33646002)(122556002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0401MB1535;H:CY1PR0401MB1536.namprd04.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-ID: MIME-Version: 1.0 X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2017 22:12:36.3919 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0401MB1535 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v3QMDH6o010437 Content-Length: 1709 Lines: 31 On Wed, 2017-04-26 at 10:18 +0200, Paolo Valente wrote: > I guess that both the above issues may not be dramatic. In contrast, > the following last issue seems harder to address: BFQ uses two > different privileging schemes, one suitable for interactive > applications, and one suitable for soft real-time applications. So, > what scheme should BFQ enable for processes in the RT I/O class? > > Because of these concerns, also for I/O I would find much clearer and > flexible an ad-hoc, complete and explicit solution like the one(s) > Juri reports (I've already nagged some of the recipients here to get > support and collaboration on such sort of extensions of the basic > benefits of a good I/O scheduler). The numerical values of I/O priorities are part of the API between kernel and user space API and hence the numerical value associated with a class must not change. But we would associate different priority values with interactive and soft real-time applications, e.g. IOPRIO_CLASS_RT(0) for soft real-time applications and IOPRIO_CLASS_RT(7) for interactive applications. See also http://man7.org/linux/man-pages/man2/ioprio_set.2.html. In my opinion the above proposal does not contradict with what has been proposed for informed run-times. We could e.g. add support for configuring the I/O priority to the block I/O controller cgroup. No matter how informed run-times communicate application constraints to the kernel, the configured I/O scheduler and the block layer will have to realize these constraints. If anyone thinks that there is a mechanism that is better suited to communicate these constraints to the kernel than I/O priorities I'm interested to hear about that alternative. Bart.