Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941159AbcKOAlw (ORCPT ); Mon, 14 Nov 2016 19:41:52 -0500 Received: from mail-by2nam03on0062.outbound.protection.outlook.com ([104.47.42.62]:64680 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S938974AbcKOAlp (ORCPT ); Mon, 14 Nov 2016 19:41:45 -0500 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; X-IncomingTopHeaderMarker: OriginalChecksum:;UpperCasedChecksum:;SizeAsReceived:3244;Count:19 X-AuditID: 0ac94371-72fff70000000ee3-82-582a5816d673 Subject: Re: [PATCH V4 00/15] blk-throttle: add .high limit To: Shaohua Li References: <986ada43-3217-3277-724a-5c76f8dad74e@sandisk.com> <20161115000529.GA15160@shli-mbp.local> CC: "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Kernel-team@fb.com" , "axboe@fb.com" , "tj@kernel.org" , "vgoyal@redhat.com" From: Bart Van Assche Message-ID: Date: Mon, 14 Nov 2016 16:41:33 -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: <20161115000529.GA15160@shli-mbp.local> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHLMWRmVeSWpSXmKPExsXCddJ5ka5khFaEwd6zuhb/9xxjszjW957V Yu8tbYvLu+awWSzb2c9i8Wv5UUaLa7f2sTmwe0xsfsfusWlVJ5vH+31X2Tw+b5ILYInisklJ zcksSy3St0vgytj9dx17wVLeirczr7I2MD7k6mLk5JAQMJFYt/YwUxcjF4eQwFImiW3zL7NB ODsYJXbc38wMU7Vr+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4Hj ldPnv3uS1t9T+8358abj25erosPOCH/6sGXGiQepRt8/fK5cfvVV13WPxs3FeovYJ3Qn2oRx aKx0E4k58Wi3BkNz/L9arr6ls9801of4ch6ds/CvxZyrBn+7aj+usVRiKc5INNRiLipOBAAk 5LMOBgIAAA== 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)(209900001)(24454002)(377454003)(189002)(199003)(81166006)(81156014)(8676002)(7846002)(92566002)(31686004)(50466002)(53416004)(2906002)(305945005)(356003)(33646002)(65806001)(4326007)(68736007)(65956001)(31696002)(47776003)(189998001)(4001350100001)(64126003)(97736004)(77096005)(83506001)(106466001)(5660300001)(2270400002)(626004)(229853002)(345774005)(6916009)(69596002)(76176999)(50986999)(54356999)(15395725005)(110136003)(23676002)(87936001)(2950100002)(8936002)(65826007)(6666003)(86362001)(230700001)(36756003)(142923001)(6606295002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR02MB2850;H:milsmgep14.sandisk.com;FPR:;SPF:Pass;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD043;1:L5I78cxvkJTzapsihCkx0j3QvJzYx6y8bNdaZj5LLx4HCWNel/0h4KYtfVIOokHz0IiwZTdP/BbPIpl3nbPfaIFhRY2CS2ZR79edUY5tl2P4uyWFTJFAfItkv8g51FGqFvX/mdcffP/22GC2PSso33RUxYvX7md7Yy4MubcrilwxhVfWSkqe+MnYfaWklXGG8Jpc6JWyLugay/h2BVSOFrpPsbQLi7CS/8GqPSMs7goVHiSCZcWSGeXD31I+HmK8Hcx0rQaAsr33I6FZXtwd5VbYQ3U67cBw++F5DkfXYlI3XV9Z4bDtVdb1hPbu3/4mSnfniq+cAL9umiatN55t3qDA7nfppP3NcBiKNGD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bNwhN+6BNTtjl3BEUWHpbDgOZ82qBqWMFmuktjJk= X-MS-Office365-Filtering-Correlation-Id: 530b6075-953d-4c3d-c5f1-08d40cf02a76 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(8251501002);SRVR:BN6PR02MB2850; X-Microsoft-Exchange-Diagnostics: 1;BN6PR02MB2850;31:NjFIcj7QO1+eArd0TLyAY0HeV7MXwV4oZg69rFqkLyd9HBAM8Q7tdB6SEVXYet+S+rV8SZzXKgmoX3Z0zF47QfW6U36cHXejR+vpY+0ruCmvSn3fTlktvrFYq81wUNUof5qObJmy3RiOOWBNhGWwUQeZRwPzqnvAiOGFZQ3Tb9eoLUABMHf5GuCDZ00B0iRkW4uGYryLGDQ6iXtS2aD4Get5pjrea8Uk/M2RuDdT+6D/gzEJ7RDEe7Vr7DLveSXk;20:KUy7FeiQA6VH+bW/lsDecWV66kd+Fie6ASb5xOdunS7aki/WusnxT72FhKGrs+az/Su7ZgCX09I1WBMZOrkJbDyGhj1bzPHyOlDv2XEeMGDTUkT8xkchzKYenB0THcKFyBFua2pcmODPodxijqHwz5KkP1E3VH94vWobP6oEXdH5KxKkZiuYsIcJIOq8E1r/maVJbW+Vawcms+QtWuNn0Ix5EAjkBKBDPhsD2Ofq530DyqOpZ3PkvSxYPtex8hAYrIVZgqgv/UPVt8bKynBq4xGU74+OFSEvF/8ZmGHa/uqP+JrwN7Lxe5u58Y5ZPlDRLCXSp6HZTWotH9cUJxqmYQGVQJPTpIKrgPk7LAXnzEqt7D7+MbW2nWeJSD9NrNG8inBs3NrSumN1UC9ZJQy340M8bP9iJjVl2Sw8rJnETIzcPcidnIwt22WBMmYc7Fo5Ro3q5y2adlQ7mvtJL2cZPAp/M/ajzXSX4euE+c2DDnCQSWvLM+qlryujbDTfUqSS X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6060326)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(10201501046)(3002001)(6055026)(6061324);SRVR:BN6PR02MB2850;BCL:0;PCL:0;RULEID:;SRVR:BN6PR02MB2850; X-Microsoft-Exchange-Diagnostics: 1;BN6PR02MB2850;4:ZiUPP4UsyrIPusCb93tTZkwY5lf0GN3l7Ennw+JJmEzoVqGTeaJBbKnAdk2BS1y9Pz92JSgHGNmUwjxDHfInX9L7qj6cZ6ARLiXiQ5N7LoOMbZSOcWp3CQUFUjHJsqlWsn9M9LTVV9HM3eQlMpQUhvQ9bILwV85ivx04U9vG7lCdLg72yk/GWsaZVj3NL1WWAxhPIqQhiFCALpdO0auO3EeLU9ZmKAXoUkMrmBu7uaBKY9iRK06tdQdgKprbSy3G4UoznSA/MbKPRDlxkprrWa3xTrJITFvCkZyNSy7rMQcnhJ0OcrlUBXWSUXcziknUGyZJTJPbJ6eX3WjjZMv6A3tt/E9z2dAclWy03x3ftMBHtSG6rLUlEa3qHB/tvIZT6spjMuOKvjgA6jDmWo3Z98un/fKEkQVj4PaO22yaZQoiGZ67i+aEZUcXMcD9K7X/gzPtPyGqaTcVwSl0pIzhHQ== X-Forefront-PRVS: 012792EC17 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjAyTUIyODUwOzIzOlArMkIzV1U2bExuK3NTakxRM1AyZmdYVXcx?= =?utf-8?B?cnAzdll1aTFWcGlOM0UzRnc3cnJjeitqOHhGOTUxV2xBcnZxQXFhWmQ2K1dL?= =?utf-8?B?aGV2ZXVpTC9Eb0xYRnJDRktlVkc4SlB0anAzcGVMYmNJTC9KdGlsaHVkVDZl?= =?utf-8?B?MW5EMWI3dnRLMkptbldUSVhUTzVmdHhOUGl0MU4reG9qZmZOeVR6NE1PbUpw?= =?utf-8?B?NWxnR3Z2cFJ0bHJKNzNQeUF5QUZtZEtxekVWTGc1dUlibVNIbnA2bWYxcGMy?= =?utf-8?B?QkszWUV1WHZLNG1aQzhWTWFxbkZZTUxYZlBWMUg5N1RvR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uI X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2016 00:41:40.3485 (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: BN6PR02MB2850 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1667 Lines: 32 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? Thanks, Bart.