Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965099AbcKNWqe (ORCPT ); Mon, 14 Nov 2016 17:46:34 -0500 Received: from mail-by2nam03on0084.outbound.protection.outlook.com ([104.47.42.84]:29756 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S938725AbcKNWqb (ORCPT ); Mon, 14 Nov 2016 17:46:31 -0500 X-Greylist: delayed 1294 seconds by postgrey-1.27 at vger.kernel.org; Mon, 14 Nov 2016 17:46:31 EST Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; fb.com; dkim=none (message not signed) header.d=none;fb.com; dmarc=bestguesspass action=none header.from=sandisk.com; X-IncomingTopHeaderMarker: OriginalChecksum:;UpperCasedChecksum:;SizeAsReceived:3000;Count:19 X-AuditID: 0ac94371-72fff70000000ee3-b6-582a3d158285 Subject: Re: [PATCH V4 00/15] blk-throttle: add .high limit To: Shaohua Li , , References: CC: , , , From: Bart Van Assche Message-ID: <986ada43-3217-3277-724a-5c76f8dad74e@sandisk.com> Date: Mon, 14 Nov 2016 14:46:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFLMWRmVeSWpSXmKPExsXCddJ5ka64rVaEwbpOOYv/e46xWRzre89q sfeWtsXlXXPYLJbt7Gex+LX8KKPFtVv72BzYPSY2v2P32LSqk83j/b6rbB6fN8kFsERx2aSk 5mSWpRbp2yVwZTx+dYGloJe14mKvXANjN0sXIyeHhICJxNwDbYxdjFwcQgJLmSS2Pj0B5Wxj lNhz7wAjTNXdKStYIBKLGSVedLYxgySEBawlrm/ZwwRiiwjESny/vAOsQUhAT2LV9vnsIDaz gJ/E7JOLWUFsN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76q2r3P/ FOz256BC2Lr9/1gjdOLff1uTl+50oYrZUyKcebHlvuku2c+0lFiKMxINtZiLihMBcfcJqwMC AAA= X-IncomingHeaderCount: 19 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(24454002)(199003)(377454003)(2270400002)(64126003)(2950100002)(33646002)(230700001)(626004)(68736007)(92566002)(31686004)(189998001)(36756003)(86362001)(2906002)(83506001)(4001350100001)(2201001)(4326007)(77096005)(54356999)(305945005)(76176999)(65826007)(23746002)(50466002)(50986999)(5660300001)(7846002)(81156014)(81166006)(47776003)(5001770100001)(65956001)(356003)(69596002)(229853002)(106466001)(87936001)(8676002)(8936002)(53416004)(97736004)(65806001)(31696002)(142923001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR02MB2830;H:milsmgep14.sandisk.com;FPR:;SPF:Pass;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD034;1:/6Ib3EFYgO/mVNLrVq9PEn2vX6osBfXlrOsz2c2x8kNxrYzFL/7wJ+5LJ1FnQ6ICrF8FU9EBu6Am90NDnfjZxD+W3Cj7KJ/zf1g6rF3W1q7PYCPhuwoPf/8J3JePohmBNLDExpV4I3PGSOY2DllY6p7rW0SbXP97I3G2gyVfaPUyvoepZxJsw8BhCzhH2yGTbp2InCy0D/HsDey9DO/QXkQZu6WJbdcJE4RA61+5+/CDVGTPtjXA7s17qYGpAkEFViIn5Vq3/MDwulChpl1Vm68edLgoLmozoXZ25KU5hYiFQAlBPFCEnDRLTlT0x1LCxuEck+9k+cF5TQLxPR0sb6WOGTeN2YTlKq6GXjw8l2ERiyHyeqMRH08wtrCOISjGcyhOk3VL49PpEoLufBIuCHPx5qCm4Lwct/YhzewFSGaD6OvSfODqAA8IJX3rJNXogjw+j5CHBv15UqfbvwH98GYkAMA+PuSWQClrJzMGCb57xN2zyKWQ65/7nG9ELafL X-Microsoft-Exchange-Diagnostics: 1;MWHPR02MB2830;2:y7/PwACEH8oBRg/8Kbs7MAHQ82womJq2DLJYDWD6WAxh8gc/txjA5mR7wNJMdAKg8P3liOfoOUJ80Ad9+oZPP40HePiEBC6Di8kPxG9QOzcq3R/Ov/pxGakOZqML+v5mT730qpM1DeagGkUuLJlj3KGIExfGjXh7buCeUhpPPaY=;3:zDByuMwzu9X/TYLl9JeLOBVnj7YUr/ismy/tllrVSqwzsqvFpGtrdRzl/nWgcItvfk+0l7km3+ktcT6779qTIwNcTP+aoi0wle//MAw0M46M9SF52rxNFsPgPRQhABSlHAFL/sQozVkEbXC5GjO4WfXLlU2h4Bya0Gh18J+tJ9M4pHOpn+d3qfyV+p2ZnHFXD+Q6pL5W2XMJh69abI1YNDfruCZLk5UXO9TydUoRRNqeHrPygrHtRHFav+QN0zuQBKk54aWEsA9NxPjaXOAEmxC6Fz/Uu26vVBV/6ccqSts=;25:TmbcXmZQF6NofWSjspMZSHWlzi8bwGCsJESXo4gYifNjAR9Su6h4M2wczikS3jEXYnl5O+4euZ3Mah22hfRjjfVFZuw5Bq3qh0yMkT+8e6M2odd5HOnhQ449DVjeEZJvNQr1+8u87zj2NpXr+8wOejtcwNSHqQKTfiQ5sLcN5zQT4gGbRsr/2+Uep4NNqFH4+7sd75hmfXt8Jf3+7/g0bBmVuplvzTarX29S9R76CrYovr3CgviZM1q0RL7dGEZSWaV9w8+j11DeJwFfnePZQ6Lz/nG2DkEZ9p9LoWjrabwoj0FO86V8xaJs6ijJzx9TgsNSM+JkZDzfs/Bj4norkSFm7nQFPrYTi/nrcrDUejwHZygEJsdYxAAAZDtvmNUalEgjlwBcKTFlDRqxYyLwM59A4F87yri0Xt187mleNtc= X-MS-Office365-Filtering-Correlation-Id: 28573202-9918-4cfe-1f95-08d40ce010de X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(8251501002);SRVR:MWHPR02MB2830; X-Microsoft-Exchange-Diagnostics: 1;MWHPR02MB2830;31:TrahNMhhkHe06Tdd81ETzgbEvv0f2nQUhwyox1B1jJ90oyqwGL5eHwDWUpCshBxWKJ6Ft2S1p5SfscDKolucScKSItWPlTo1s+SDn6R4gYu1bUYvPYUoKhb4vUOlWBKhAVs/Pw0cB87rL3CndBZNJ97k67BdIUPiHBYVLFfdwMZsAyZnEsJsGeUKJSOD4p3g3THIjQl9Z96gNFwCcT5mqi7JhAummpiB/OYrXZNozQZWxbvqh4uZzxOfygUhGVLh;20:Ztnj5hiTq/6ykdn7lFRTVIlK26wMiimV/6rxc+6/ZFCaNbvbMuZOfSMumo07SE0421DHVL8YdqX54jiCdJZWWHfd3SKAAewRlDNH8pe+DF0a6COGrQM6GPPuTcT2jFuCrj08OKgW0GDc9zM59SImxQ3wIjVNKTa/MuF+agijShBHVpcWTs8OSXoF9qV4NQc2yVBPnA1EGYb+Qo5/lAUWeNG72SurJC4LQb+WNGDez2AEyZOopPeIs8lDZXcc0Uyve3QhO4UvTDLETIl06UwPY/z0rUneag6ZYBYS3U+PNzjUvC+KTGIdUAPgCOBosoLKM9cIlTprwmGXLx3rwLgMAnCd5zCk+7Cgv3gWNyUSSt7N9ybnKHYpt+WdOggTnpyJ16Ti3vdVZvfyCyTBZxb0vExOnbi3/xtGKAJoKkgEhXqvBPj3AgxbsB5NTKNDhQMZ3aRvueK6Y3a10z5B8DrGIA5Fi1La2mKr+UObtsoRD+CNrRUTbOgOa43FPFrCsIVl X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6060326)(601004)(2401047)(8121501046)(13018025)(5005006)(13016025)(3002001)(10201501046)(6055026)(6061324);SRVR:MWHPR02MB2830;BCL:0;PCL:0;RULEID:;SRVR:MWHPR02MB2830; X-Microsoft-Exchange-Diagnostics: 1;MWHPR02MB2830;4:VuaxQ9G9zXNy8fpMGIFogsA2DnB04Zi3nyZeL0MHRQf9ENh1cv1GKtrb6Wqh+zvyqAVemIWVSUKCSvh/3AAFZkD99qJIBdJYcxBWhcF8I0umfNgGo01ciEVctlBAGvBnEdXePgJ2LL44EyHRSvV/zCW3IuvJjjgpKmoBzCAW1VW4mOHJMpOUnqSG5Tyjijn5Jpe1wDUxo4G8bIAFrIYTAOWjLs/Xa5cSl0wZ7TOYyREi9Y64VO9E4JV7s1kfrfPCWp4OZrxHfSTI/r+yU/Tt6NAOk+LX0bkH1a+ypIF+5U8bHVJCVmzWdnUQ0RYwlGZF9opWkP+NvO3l2tr2+tNSbKHFOs6luw4TtPfausYJhpnNnyHA5SnvoNK71zg2ciXp23LrzcRRXk7pcNY+s3S8r9g4F5g9Zthv3ogw0l8zylum9FTQrq9sAC6eAVkVgKnoMc4vzLbcoYqPVvV4EX4nLs7YV8guA5kR0ruDXy/d3QY= X-Forefront-PRVS: 0126A32F74 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;MWHPR02MB2830;23:KhootKqdt7IQaF/Nr2eK2HYttsFYFIY9cXcWE?= =?Windows-1252?Q?/i+IITib58zS53U51WZaDKmX1nRGDwz9t0MhVQMLVrPbL6Yjf+XGWEOt?= =?Windows-1252?Q?UTbfFYK5x/li8xWdhUdOcDiY6/hoqf7JySzuVrT9yjC7sOfj4movvAAz?= =?Windows-1252?Q?BoqmBkQg8j/o8NCulyBMrr6aSAQomJo4E3L07becVTQucB4etVKMxjpX?= =?Windows-1252?Q?JpVKqtnf3X9wkVG8kbcV5oUgTj0Nh1gmEh4IDetQR/O6oVzA0USd5bGU?= =?Windows-1252?Q?RGPzDylMGakJjXtD+PkVJlavXRRoI/rhp0BB0Tbr70hiAF+9UniZALP8?= =?Windows-1252?Q?eFs6ZAMqZPIjr5c3gl550qnjODALp1zxn3qp7bYczBoQtzpGEOx0Aq4E?= =?Windows-1252?Q?WHt60vxR5ocZqOF2pyAVDsP9M/6G/5I6Z4IiYq+rsf3Zu13frLLh1RhZ?= =?Windows-1252?Q?1oemeEGqlu97FNskg7H9TxvFoUBmTBAVILMv3g9Q1FKdTWgWHXHH3haJ?= =?Windows-1252?Q?o2UWvpkZa3a1A73t/LNmdTuvgQ6tXCfxoDOh6uMk6nYxMpDNNZBQ7xc4?= =?Windows-1252?Q?YR9ThgtzmFUMubxKK0s5pSX1tFdzZQAIcZbz7jFKUP3ph8pJPeuiWyK4?= =?Windows-1252?Q?bER4wRBKxfHwXMV81LHhercNGzthm7Ly7pwZ9n72/mA8MviwAXyeV+M9?= =?Windows-1252?Q?5YNprYSduIQIJAXi99ZmXz3xWqTGF48+WYgTDT6aRagiWbamxdiWAxjJ?= =?Windows-1252?Q?g0wqkP579I7xFkNKvNa9WNgSaH/lbk8HHL4MbKcY1pI8oDAbnQPCn66t?= =?Windows-1252?Q?BIPbGXE94UPFTvvgAOnANxyPsg12uctaHd6N2saIFzIRIq67rmciSmbl?= =?Windows-1252?Q?BAnLlcSEfTkCOm3yNQUP/gdtBnHrIqlgBdbMWJQsfczsGIkoR20nj5Y6?= =?Windows-1252?Q?ItTdA4Ujn/lnwUBcEMXUb/JonBaQK9JWTHp0TamW2PJFqtcEdNun9sF6?= =?Windows-1252?Q?D/1sPCG169maOg5NM+xvZZC0goJpgBtV11Nsb6D3lO8gW4DOiCNwQvEK?= =?Windows-1252?Q?7edEci0A256DSGYMC7no79oml+B5BYiS4Sp7EaykVNBJEXiz7e5Dudmf?= =?Windows-1252?Q?n27wCjeuV2qAlkfdeWihn5lPKcl9NfRRnw7ieur3KcK3BRgg6cWVZCLf?= =?Windows-1252?Q?BuGZ/L1qeWlTwvvLFPxoeNQPgfXTY12iDbDNuygdgEs+kQcmEFer4GA6?= =?Windows-1252?Q?AzPEhm5GMNAUjQg8Jvhhxo5Bw+MFpYJwh8W1w4RphNzXPA2MiE9MEjz4?= =?Windows-1252?Q?US04ucIzY9qtjiDnCQ2ZPOjo8wSdaIpSCtA2nrlCbI30dE=3D?= X-Microsoft-Exchange-Diagnostics: 1;MWHPR02MB2830;6:7ngL8maywsdbA5+56d0oH8OT8aqkTKqWmMg/nyawcXfMfXw2IKakj4t0Sx0t7GdwFcSZCdFw/ITJrX3QLHOdaSZxP9Gw2K23euhORYm/pkiGRqEsLQNMvnroNHrQ71VMiYjPQrwUZYhu5i15YODIsoP1tSrPN8PpVMzw/3vgFnhDuz6uqnSoOo6kw2tiXmdn3HLtfYpWUkRtqcPelGT5QTvQ4MViE7WrezEZn7XLajzR0rG2KzMxHbTe4hhwT7Ax8BDRTO8syktGbFNAIfa5josd3s/19tjaU2TpQ4cYxtK9KZgiIYOmAfABSHDHX0D0aiaYghuDFfknz11uHl2KXT/JlXc+NbhHqLr/YCrV1GN2RDj4vrs3YxKSap8N8c7Y;5:Tf4BbTrogz48xHt3OKZf+3L5tQqaLyiCkZXXhJa7bihc9hwLDXaPoWUvpKbn+BLzhfQ0AXd09QlvuhjtHV5d/t0Z8w4gsrs/BAVBHjuw+Y2wdMtFfVxuw8ZfiABs2+EELJd5guFcYo1jUE0jSKAC6g==;24:Xpl2GCxO7FdA6yG6J+bObjVxw3MBZGB3u8WBKzsvHji/axT0MXWFaMit/jpyq1OEae7687KocBks/qf6hZR5UTEsPQz8ClR6xxKvVRonfjM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR02MB2830;7:EstsqM7PssgZLnDCH8RelRfHo8b8DtM2yugbBLjwZgv/ehlVrCrSQP1DZJXNm3/krwRRPROaNc7V7zyZE1fsDHFTGzapdSS3oySq90Ihh1Ddj0uzTf8gJ+dEOjUGvkV7ErIlQ6qEajCNiFRNmTd0pqQtBOW2ewIPpzHN46o5qpYucVIO1VR3NJqWZQk1C1GmBOUkJpNhwbegSoLKBMFXRfnQKEdpifKXbvWFvoxz/KjWnXk0jhmlkHmADrdWCREMf1Di97alP8iSa6y12OCJHURTTUJhfhKPCTX6LQcwCuankRtmYr85U2jmr2JwcTKQgxLV1vym6sjdZP5J7McAxmprlOEU0jhZAmHzonF4dJk=;20:7MOWyXJSnCFg6TjSaVjJHb5Cque7R1InaiTkBbH53ZIUDghrgYyjVj5+2/A+UvIhekSbNhTodg49dOJhXO+KzO59pzTiKr0xT71Jl3CAKuS97+v7xeCmevqoEeG+6bXqy0d2LdaZ7e2GObnuy6PbRndesk57j/wg7FUU/+KmhpzLdgcNG4LisvpqqDAX4js7xeAiRNFla03N4CFXZfF/y1EbNR2X3wlkgPI0nDW/x7WJiR73rlySbCMF1n+Dt6x1 X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2016 22:46:26.0346 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d;Ip=[63.163.107.225];Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR02MB2830 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 636 Lines: 17 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? Thanks, Bart.