Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940861AbcKOAFx (ORCPT ); Mon, 14 Nov 2016 19:05:53 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:55467 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753048AbcKOAFv (ORCPT ); Mon, 14 Nov 2016 19:05:51 -0500 Date: Mon, 14 Nov 2016 16:05:30 -0800 From: Shaohua Li To: Bart Van Assche CC: , , , , , Subject: Re: [PATCH V4 00/15] blk-throttle: add .high limit Message-ID: <20161115000529.GA15160@shli-mbp.local> References: <986ada43-3217-3277-724a-5c76f8dad74e@sandisk.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <986ada43-3217-3277-724a-5c76f8dad74e@sandisk.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [2620:10d:c090:200::6:8ae0] X-ClientProxiedBy: BLUPR17CA0021.namprd17.prod.outlook.com (10.164.14.159) To BLUPR15MB0401.namprd15.prod.outlook.com (10.163.214.147) X-Microsoft-Exchange-Diagnostics: 1;BLUPR15MB0401;2:iFd88hD8adzjgYcX89isEbG9fp8rwfCmz6IkBRqlYUiWfYY5+6yWtVt4DcAFi+RE2XXx971SNvaky5EROdqk6913Gr1+RJJfL5Jt9DPWDaIHCU5Mu5wRR7DC4YKIRz+qvkU3xjZIij+2HUBaqnCc1g+fkKmd/kiaWYzQ/pwnIZI=;3:91n5Egqf2LgX9Nc1j08q3xqj+JYfz4rxfs01e0UNBVHtpNr1ir5ClCMwUA2OPmaBMZ1dQsMqRKgaF55noGDa3DddMCGpTpyTHfXw7fYZbXYyMWyTiPo2uZrsiB4CVqvHj8yzuBtrKiIUxULfeSU+FCaAhG96tXmDJGBDJHqBJOY= X-MS-Office365-Filtering-Correlation-Id: e5b4571e-1481-4689-84f2-08d40ceb2213 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;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bDKU/Spoot0RzEgHv2LErv5ud5ExcUN7pkrDN8aBYqdniufnRGaCukWcFd8LJupyWctnAJ70PRZnzW0nxSyU+NtvV3FflZlIxlresexHr/fxRKHv7ZpvQ==;20:dhqifkPfyT1nqdgkN7ByzdbyRs0QcfyxIbeM8ZE/iQut9CS+31KVroZX6NaPUv0TKxaJIlfT3LXgwnY0WrBU1D5Lwq2AlCVLSMYv+T7R68sOKHzCbNtLGBda1YK/VSZaCVdpLeZxcF9DMjVLOP5BwIZpz3sypFoyNe0y5lNXgaYAgvCGops/c++lLx1DLQPzn1Y9NrA1Up4qpM6tXPDwhYQR7wtGJQacnqHA/wtfTXpoOv+l+PDR05pJikbzYqI2 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6060326)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6061324);SRVR:BLUPR15MB0401;BCL:0;PCL:0;RULEID:;SRVR:BLUPR15MB0401; X-Microsoft-Exchange-Diagnostics: 1;BLUPR15MB0401;4:sWJ/etRgfTaPO5Vtuxgkx3ZqF1PZIayW9F1a7aV6mcLJSvfR6ueA2xFTgaBVlE/4zF7Nep2DNvTLmqejUMllamtcq1SDJ4LjoVXPyh8jQLnOaIRqBsvls8v8hfSKN7Km/nN5HNqV84wHDXK6PHrPaPmLLSS2EXfez+rQUc4uvWHGn4DjWDYtVmyp4VGVYHUY5JkI3Pt6DaU+oykTDnDMERXA770kKDlg3cV7BxVACnCgra8UNH5/igyHUpFjYNg06xw5aP4UGvJ+8ue1we/4jIPNK/mmIIL/JRt71ckw3ECX04yjpBUmvXBCoCL4CWYCXdvytKYU6jflZVO26JknLxlLTCHiSwNjjDA0uEfusJExCqGksqmpkrd7Q5eBfe71eRF79gfUKE5GW1yrxswnMciw05njuY+rwOc/3IEfcA8= X-Forefront-PRVS: 012792EC17 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(209900001)(377454003)(24454002)(199003)(189002)(189998001)(8676002)(6666003)(2950100002)(6916009)(42186005)(83506001)(9686002)(46406003)(229853002)(6116002)(5660300001)(50986999)(76176999)(7736002)(8666005)(81166006)(50466002)(110136003)(4001350100001)(97736004)(81156014)(7846002)(305945005)(86362001)(68736007)(101416001)(54356999)(4326007)(2906002)(97756001)(47776003)(1076002)(23726003)(92566002)(106356001)(105586002)(77096005)(1691005)(33656002)(98436002)(15395725005)(18370500001)(7059030)(142923001)(6606295002);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR15MB0401;H:shli-mbp.local;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR15MB0401;23:F0nPT+46N0Fv6siScPc19/Zayl00kxXSFCKKYN5Qu?= =?us-ascii?Q?ZlfxO+6MeYfz+xm9FHOFiHoeiskcY/J7gJrDUVLFqxb1smtDD/MdosN4RMY7?= =?us-ascii?Q?5uGIhdbyVIH6a3zcujn7h4+cYCtdT5zQ+pfRCcTx90Zwvj3TT8Ez5tY07bjg?= =?us-ascii?Q?Uqpec+MnQiRNB+xhkPbYfrOnLSP8hgrk/Fek7xQkZv/VAxm2U842r64+Cnq1?= =?us-ascii?Q?4T2/29NGAlrsJiHg6Gf3GFIWEURWIlpHyVE78dyr8ucLPDqBImN2rbnxtN/Y?= =?us-ascii?Q?O5YwloXJjHTwWm96KeqQpsOIc7HlZuXLDbv/aiG0BOzmAZRUk9Oxe7FRX1Ou?= =?us-ascii?Q?v+PHPDRkqATdUTsSYy7AjNI08LKtge57ejhVkxFw+sc+rHYqf4/GWDbnlvwF?= =?us-ascii?Q?jn/ukzbb+eWXew8pWfHYx10EvDGD6utC4EOWFfOMNckgP9bQ66FK9i3AOP0u?= =?us-ascii?Q?Axzqw2sdU4tuX+DSK4pVnJRRmHgYW83BUPTxGJxuT83BZ+OB9ZNoz+WlOE+x?= =?us-ascii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J8loQt1mxmgZcx8Lv5ncHvEvhDGViyor2OuqVwUUu0Q1xk1nrQ3pyL6hwnc+pMtFUS8Ny10aQKMEv9xsZ34s/2LglaUFlGQQQ98kgFkMGss2RP+TsNGO2ZrMoUe14PXyo6tw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2016 00:05:38.5957 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR15MB0401 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-14_14:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1317 Lines: 25 On Mon, Nov 14, 2016 at 02:46:22PM -0800, Bart Van Assche wrote: > On 11/14/2016 02:22 PM, Shaohua Li wrote: > > The background is we don't have an ioscheduler for blk-mq yet, so we can't > > prioritize processes/cgroups. This patch set tries to add basic arbitration > > between cgroups with blk-throttle. It adds a new limit io.high for > > blk-throttle. It's only for cgroup2. > > Hello Shaohua, > > My understanding of this work is that a significant part of it will have to > be reverted once blk-mq supports I/O scheduling, e.g. the code for detecting > whether the I/O submitter is idle. Shouldn't this kind of infrastructure be > added after support has been added in blk-mq for I/O scheduling? Sure, if we have a CFQ-like io scheduler for blk-mq, this is largly not required. But we don't have one yet and nothing is floating around either. The conservative throttling is relatively easy to implement and achive similar goal. The throttling could be still useful even with ioscheduler as throttling is faster if we are talking about CFQ-like scheduler. I don't think this should be blocked to wait for I/O scheduling. There was a long discussion in last post, and we agreed the throttling and io scheduler aren't mutually exclusive. http://marc.info/?l=linux-kernel&m=147552964708965&w=2 Thanks, Shaohua