Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940580AbcKOAtt (ORCPT ); Mon, 14 Nov 2016 19:49:49 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:50885 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755155AbcKOAtq (ORCPT ); Mon, 14 Nov 2016 19:49:46 -0500 Date: Mon, 14 Nov 2016 16:49:22 -0800 From: Shaohua Li To: Bart Van Assche CC: "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Kernel-team@fb.com" , "axboe@fb.com" , "tj@kernel.org" , "vgoyal@redhat.com" Subject: Re: [PATCH V4 00/15] blk-throttle: add .high limit Message-ID: <20161115004922.GA16173@shli-mbp.local> References: <986ada43-3217-3277-724a-5c76f8dad74e@sandisk.com> <20161115000529.GA15160@shli-mbp.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [2620:10d:c090:200::6:8ae0] X-ClientProxiedBy: BY1PR20CA0022.namprd20.prod.outlook.com (10.162.140.32) To BLUPR15MB0402.namprd15.prod.outlook.com (10.163.214.148) X-Microsoft-Exchange-Diagnostics: 1;BLUPR15MB0402;2:d8l/Usz8qSZAtZorjj/jGv7gdxXp25S1hoMqz4YdWjUV/zVqNb2GhARSTfn9gNlBXp9UOp8UQ1krEUtF7OwWgGmZ0i980AnLBPgkSS2Y2GUAr1u3cSYxWywD5PCJTGDfCR1TcbvQF+1qkSNRPhi1wTgk6B6OPJNpgfF/qvmOkTQ=;3:C+xGvqF7rmR1EeYmVEx+iAwHPwHHrUwFgUJMMJMlY5MljryR1f2VU6v953gGaI1KfPOEenjZFW1wFS0J3X9CsJiZcGcZ1XNzY210kBbL7MZ+VTZ0Xj8S3EgFpToHCY17Fvjfk6nKd/1p8qf08w707uvWRiatpIbH9NcX11kPDFA=;25:tGQ9M94q3auszWhA6ZOW1E4di13PZZTlIuaPbHDUMd9f81Ehm/K5dUG50nIEgoVuWr6LRhuA3/bBJKmKCQXdsLXiuInHDT7Do07u4pOK8iFkHn/PfUh72BonLNtCr1SroQqpbOU1saw6HQ/FdjVc39bUkVVVYqPvHqU36zzUVLmRl5Z+TF6l7+t2VbraTt1EGJfYn25gdQWzQbvwadOhQMpxNxSMa7RIQunqZRddoZpKmnN4KOvZJgPKJTNZIFJoOTjyoWMT1mWILsDKsEzKDjg1d3vWSkfXoS4GI/g4v08Q8v4DXSbS2pEoUFRww1fTuw+ahnkYSqKrIgePMxWNSVW68iDs2X1FA9tyPvv+Pu3roONq9zeHWtL2R5+gpfngCg8t4ZGtrRJrP9pVwPMTCUzTqW9IKy5YGXa1nN+v50GCg8P50ENd6ZCP2TYjN1lM X-MS-Office365-Filtering-Correlation-Id: e8c0dbec-f73a-4bbf-2908-08d40cf144c1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BLUPR15MB0402; X-Microsoft-Exchange-Diagnostics: 1;BLUPR15MB0402;31:s8bsyxMaxBipeetBibGXji5PJSCm0aG79mMGOPdYICpLbcIXkiPURNrgOwbz3vBG8/8cmXedgoU+gxU4sd0a7b24ode4gV8bLbYqCss8V/NdiD08kREeSB/aKKgquY2pFhqCQPcJVtMaP37aeftFY6IDj43E6mu0ZDRhMS2LjRf7G3AO4coZ5WALAHbk58IRZPBWRvaneP2RuTVk2cHcadzpm+NcKHbdYtTK6DN0Q+tbA53E8cBi51cmqxG3romomuXPrDBU+xsCTt0rXfKwvA==;20:yF/Xf0gFXMk8FOInO39KDltbIxHSiGjJdmnqlKXK63qt7yzEgSqyAo4TmBpOpdDcbREjrX1Wq3kVYtuoky0cFCwLrsiDz7qeg7qZhdiCVR3WUj+Z0yT/Hpnf1Kdl/d2BeWe0zsKvFTu3hWKxtLNeAxf0Pnc5uBQp2CuyBAa5dVwtIL9o+/6EEgzcZPOiQYEGNwbL3w5fH3upbSOZlRmlP4OMCBA4SfX5gMr3UjdEKX8vR6uUUU3fOQbY0buBQh7O 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)(5005006)(3002001)(10201501046)(6061324);SRVR:BLUPR15MB0402;BCL:0;PCL:0;RULEID:;SRVR:BLUPR15MB0402; X-Microsoft-Exchange-Diagnostics: 1;BLUPR15MB0402;4:+xXr/B2Q6rmjJby/oN88ADMseMdxXFfjCnym1LY7I2HGK1bEUlRUZIb3OXtOcaWpCw7hxmGQVhHgWHY3zZqNJc5NwyO8D/Be//wR8PnN5vp6nSuAvn0FbebuRKgzVV7leBiy9htQ0eipIoPQ0Gs1QRqBis3/JpKdvkFwb0oTLzQql31Sp/unTlXunLogJDNe4y9tycjdx4NtNqXivI8sbKffe8aNjEpf9FOxYpjygvr/pcNCDiJP7/E0z9ZlCgokeJa5cdN2d05wFXzsa04HNhEGnvKi+MarT5fLTegob8iafw8mOjrSWljWtSrIXfoLCPYCB5zBWPCU+dVSO/gMD4ATWsmQXxqu8HrOeXIIacj1YMn02cgRUnpIBc6vfZQ1We9pZ/AEOk+vpXD+gr5Ajty9HZBg9x/vYi+UamZfLLc= X-Forefront-PRVS: 012792EC17 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(209900001)(377454003)(24454002)(199003)(189002)(9686002)(68736007)(6116002)(98436002)(105586002)(305945005)(33656002)(7846002)(101416001)(4326007)(4001350100001)(345774005)(229853002)(1076002)(8666005)(8676002)(42186005)(47776003)(5660300001)(46406003)(23726003)(7736002)(110136003)(1691005)(92566002)(6916009)(97736004)(54356999)(15395725005)(83506001)(2950100002)(77096005)(81166006)(50986999)(93886004)(76176999)(189998001)(86362001)(97756001)(6666003)(81156014)(2906002)(50466002)(106356001)(18370500001)(7059030)(142923001)(6606295002);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR15MB0402;H:shli-mbp.local;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR15MB0402;23:T+x0G4s0GNy29tinowOeIhv3HMhlV6o4QZwO+T8oC?= =?us-ascii?Q?CpUenBOU6FG7Kg0ll1dLcwg2x7fgN4B9wioE0bL9o7bAmIszhPf8JdiTYlp4?= =?us-ascii?Q?8xMOV1mGw/HoPyTAUOIyFezy6AeNffAx8X38Zd4gxTx4VH4ZQIT5CRXd/inS?= =?us-ascii?Q?7+cLY7r/8Jeew6Ke+meUPCDKNp4PiNXaxRgWmsxtPDukzyVUhnt0O5NIkzsA?= =?us-ascii?Q?38VU+Ct69sVU0/7dWrujMskTfaUEV+eQFKCA0dxKHMlbXpYeJ4Uz8cPu2NKy?= =?us-ascii?Q?9nAJf4IUYZ9Du2lSViXqy9DP+BzM1cI3sz64F3/N94LUlO556yPlQH0/iZHJ?= =?us-ascii?Q?X2/EzrWRUdAGPZ8aoY1R/9AjI5D9ZbIbXlMQU4DSyUzMKP62wAs1oZ8+0Jsg?= =?us-ascii?Q?J7e1kDoQ5MIXgV+7GRW2LzU24AWI+/de7ocWYyTcTYM12h8KdNsfOT8BcuuM?= =?us-ascii?Q?BzXMWtVRkXVszYSFIJ/ygnJVS3hZgsiNa/he9u4l4EV46W/cEm6rJRWs4q8o?= =?us-ascii?Q?th01FRTEFrG9FWWA9Rfu4yldd3J670/gVwa2J8OMRSNXLTZc5LNM6SwW6PLO?= =?us-ascii?Q?JLH95c16fO8cjUTnfk/51W2gh5N+WrfRixNiANhXb2l95Apxu5ByB2slegwS?= =?us-ascii?Q?RV/NXW1Xisq4cvtif+ygEdsq6GVhbvVv7Oq4HAAoWMR46l40XOAROndn5y/+?= =?us-ascii?Q?D/Gyj7q2u5IEMmpD4zHo9bUsUEMFnXw/lllDa6nKuL1sy4Y66WGBWfYohf+u?= =?us-ascii?Q?otm/nK6gvbljvBuj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HVQY5hqBD23nMudb7aPvAMoAN7UTJUuVqU9aaHKxLLT7G0hHG6DVjehZhTc8Sbw2TiUwQ==;5:SpK8KW/VmgxK/lRUHQkJUEu1VXQev2WnXygoW7OUz4/dlxOKO7PmlMOhpM6MyTyqeKit6QjYmk4nbN91zrZTRXRDETa7d+mHsThbG3kOTnJe4tyDoug4tfaSNbJoqRDdw/jbavc46dUAFElopDnX9Q==;24:/QGde1UlyvI82/p9Fpo1AGXHT0tSSO8tsToE/rmJGPsaFOq5HQnpSXuUtd9f7X8nRKonZMWkKQ9qY4jzX7mxK3jBn4e44TIVsnmaNaWo5FA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BLUPR15MB0402;7:ICuaYvBAgNso2qLerCAah8WYJP3gh9Y4zZGAUyfXcKTMpbVL2aWi0oBS68o6lwlh7Vu4FJ/jYb5grppNAA5/jEBTViW204TWwUiyxkrQd+AFrO3sClKzI5+ZubPrdfFVr4d2Iy59SyKD9zOIfON6Gxbe76bSiAfYiYZCABRdEwErXHTh0AbI//DrWpeaHrTfggTM4EcPhz97sDDNgPyS67pJ0o4PSAp5xGPFdqN7dAmu249xpoJ4uAi2wCnFEPEZVvvS7pTiSpb6miO8eqzS5XYqLbPSysWGUYCc6h0zrYSI+L1IxgPYxf69Dbc4xaUgKx085P7ngXrjRvR9F7sGgbXHfGdwj75bG/38DpWbje0=;20:5dhcfXF802n6oxxd7Gln3C8BD8XboN2jtRAgCeXbVTajII0h7Tqqwi1Oiuj34viVZhUpXNmPu5+Sp9GWhwQ/POb3OpamUk4Q3tLYy5NA7aERg/SbWbG6BlKIaV88Rg1JHNmDB64nZIz4ye/TuSd8M8IXRi9/SFHautxqdLJaR0I= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2016 00:49:33.5234 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR15MB0402 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: 1996 Lines: 36 On Mon, Nov 14, 2016 at 04:41:33PM -0800, Bart Van Assche wrote: > On 11/14/2016 04:05 PM, Shaohua Li wrote: > > 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. > > > > > > 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 > > Hello Shaohua, > > Thank you for pointing me to the discussion thread about v3 of this patch > series. Did I see correctly that one of the conclusions was that for users > this mechanism is hard to configure? Are we providing a good service to > Linux users by providing a mechanism that is hard to configure? Yes, this is a kind of low level knob and is expected to be configured by experienced users. This sucks, but we really don't have good solutions. If anybody has better ideas, I'm happy to try. Thanks, Shaohua