Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755562AbcK1WOl (ORCPT ); Mon, 28 Nov 2016 17:14:41 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:38227 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754917AbcK1WOb (ORCPT ); Mon, 28 Nov 2016 17:14:31 -0500 Date: Mon, 28 Nov 2016 14:14:16 -0800 From: Shaohua Li To: Tejun Heo CC: , , , , Subject: Re: [PATCH V4 11/15] blk-throttle: add interface to configure think time threshold Message-ID: <20161128221415.GA94530@shli-mbp.local> References: <52aae27038728bf0fd1b2b3b6536fcc28c9f2e6c.1479161136.git.shli@fb.com> <20161123213243.GD11306@mtj.duckdns.org> <20161124010629.GB4724@ksenks-mbp.dhcp.thefacebook.com> <20161128220818.GA12948@htj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20161128220818.GA12948@htj.duckdns.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [2620:10d:c090:200::1:e0c] X-ClientProxiedBy: CY4PR02CA0028.namprd02.prod.outlook.com (10.175.57.142) To CY4PR15MB1637.namprd15.prod.outlook.com (10.175.119.149) X-MS-Office365-Filtering-Correlation-Id: 3d59797d-5a99-44ef-e82d-08d417dbe94c X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY4PR15MB1637; X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1637;3:88LAUviZ8Gxo6IF2HwX/JdfcXBQvcrogg0DtEgeg1hWEMaZnWGXOW+0yUyPndk0VUPuiMgJ0O4M0PhqOuq0H9YkhVVkRbjJL80e5wante1flrdpnpQfO4K4RzIALf+y2COjsS7/xyTHakNdQ04qDgllabDlgr5LswiHjksWyEZtaTcMrStB+366hPzq2I23z+8Ir0wQGGDnJPa9Jq8lK1h1Afk+mAONHDuElb9wmiGpMi1tQlcN2es1NiXlX1JTr6fETGPpFobhqftziOPDIfQ== X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1637;25:akpx1pW5IDLVJOyCyWGmZAQX8YWbscI7tjg2o7A7LWMwz55vlxuSBwBWEFH319NrgzIcQxG6w1+sgBRgsBq/csySsUcq8P8TnadB548QmopDtwuKRsf7KQxSRxPvNwSEDF8iEYHIQa9MWmdKZqP9ZlsUSpsEkHupExWq9OlPNaH56y5pGxDoTZIENAMxrAnsksBAA9pN1/zCG0YQthmpmB7d6PKXKBgJ3IRlb57IFUrcBwWuC2dpRCsu0yT0uEh519CfN0HtNrnBSNvz/kTlb02R4/rxpABd0OuyLfmpEcCxAE6+kjGwlxmOwgO2/1mI4bIWvqrzyGwcKBLfQUChWH58vyiFwf5tVGhB9qzLpqjRobI9B6+jA937huABxAD/g1efOrE7umcFilNSQrsDYosBm22x+3ymWfauWlNxXZi5ooVUdmpgVi3/Q0g9LuKw83W4K/8Tav/8fkUhGwPIC9iXnGpqm3NIfgLxMugJIgn24AJmrWOM9pRH2W0F2t+yW4E4y8vq4SPHFFuwMnsq9teoN3YgjZeXe7svem+7qhp7VZwIfnnTFngT2P17oEkwTdvAi93t0lFqjsfWeNL2HnT2dp164LGIsvUXC0F5W1KKNVPiH++ZEGydPSzlTWupipbh+NMB2fVH/ZtfkytzXT7kZiy+//aNElocEwxrcOBrTpfqK96AJlsv5P/Z8uR2GM1s9uRlDKXlxz+CvDzNnLxZ8+Dshtl78IZz7c5REEl5hTVBdm2jG0C8Rs3uPwb61U85oCFxqX+e5TpvHXDleQ== X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1637;31:y0bW5Pn8JiGX1RW+bnok4173s82OhwVsoSF9QwSveiQY7QM6x6siBp9mz8tO+wmfXEi3onR2YLlr9MlYyJfOJor9eBqo77Olzm+fTo4yxiEVs/BlnGQlDkzYttiAG3Jub3zpvA0pERunE1j+olh8OPMk+jJpZEvco5p+aAMIjZCLrj2Dj18g77miwgG+/GbIVIBEfbvG5IsfFv5NrGwva7mGxvw+xiEVVulH4ANH0wW9XGXxhMjN4Oe9Xj5s8ofD;20:kHOrGpxUJFwnCXIYtD++428eBeCd22NpP6Z6rOePlXxJtzmaqZTgOt+i2rgvxtp8NqJfov1dhI5QUA7sNPCmkT0Kck+kTU3cLyjdSWOEQn+Bk2EG/EGJIo21OjepyItEqQHCON7OfJpNAQAHkLn6oL9I3dCoowf7/gRFVLnxszt5ow1nNGwSh5EDiojCf6h62HFSK5MOD0t6nQ08KjNLZRS7eL5Ws901lur/xcBGsVVkl/aKB20sRYpJZ5jYrPoC X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6060326)(6040361)(6045199)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6061324)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123560025);SRVR:CY4PR15MB1637;BCL:0;PCL:0;RULEID:;SRVR:CY4PR15MB1637; X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1637;4:y7fz+m5pCF+Mz6AQO48eFjqLj74GWmVoLR4skSTh0ZWwRCulL3YMk8WM63SasikLij4FLo9H5rr8jnN4DZay5y9Zik4S0eqmXx1uMDUC+B8VrUcQip2zIY8LSFn1uljGY+AIWkazw6uPcQs23O9hhvd8uRGTjRa99XVE105LbysHaq3qBtp8fWtOefPai29A7cspOz7/4DQiB0bk8zw1zvbTksg2z9OrA8FYY+AInCg+wNki/S1nim1S2LHAnXGVMOZ0slxlCVjA291jeh9ZxGmPWxDdIY6bnI2DuLQ+BVv0gbbXam/TdSMTOGqR6IY1aojP4mb9JobqsS9z2aNJys9fAzDHdHaZrXkbTsf6VDEaPEwhef3OsUEnFQ8I3QCnLT3BA966PBM3DEEZhFFnfVec6tJRkUM1dEqWwag5nIw1ykKtsXba59+c8tWYdSn/mR21kmUDn1EGB2hzbofphq8mQ2MorvaEW60nkQ9L5f9RbIT9rEPX6gAeY19Y9bMAo7jvJ9oNseADObWSuCal+FLGfaxjK5A20hsJQj/aXbDxe1wLLFK6uIWxWB1ylZV93FSaZ6PUwCojcbyV0sMSzdTa8gGWsLo5e6Dm8IbOIbo= X-Forefront-PRVS: 01401330D1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(24454002)(76104003)(189002)(93886004)(42186005)(86362001)(97756001)(6666003)(2906002)(6916009)(2950100002)(23726003)(50466002)(47776003)(39380400001)(7846002)(229853002)(7736002)(39450400002)(39400400001)(39410400001)(1076002)(6116002)(305945005)(38730400001)(733004)(105586002)(98436002)(5660300001)(9686002)(46406003)(4326007)(33656002)(189998001)(101416001)(4001350100001)(54356999)(83506001)(50986999)(76176999)(97736004)(68736007)(106356001)(81156014)(8676002)(92566002)(81166006)(110136003)(18370500001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR15MB1637;H:shli-mbp.local;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR15MB1637;23:enWQnlWKF+6rCaIU2C0aJcvGkGT+w9BhTSA/ef5/r?= =?us-ascii?Q?wR1Q6SXPvWNeuy/TM7vDpt6MbgxAx7eV+HVde4fqmqJlzZDOlBUB38IDS7Dd?= =?us-ascii?Q?Tg8MYPqcWMo4ySwudT20OtAVIBIwEKrRLc4q0eG+ln2q+yXKPaK+dVGYY4ah?= =?us-ascii?Q?soAHWubsKJ9+mT+JndYm0tLZ9o2M/LwHTkyO6T8MvBbNVSsU3X5Y79ERsWNK?= =?us-ascii?Q?9jbeK1BDihkltRUYdvLCkMF6Lq3j+o2YzusclfqlvwITvd62fT+6vr8fEYAn?= =?us-ascii?Q?6XRNqR0SlUxjOJxIms8iUsBXYbzbsKEThp8BnK2QkekcPqY5HScdM28ZEJtr?= =?us-ascii?Q?BCQhbraaH9gzPamvIl+LBItTrRX1pgDx4OfhhJpNX/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LV+VOmJgom9z/IUU4+UVCKcgOw+IqyVyW422enMjLZ10YWoluOY2di?= =?us-ascii?B?dz09?= X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1637;6:OUcm67Ltqfx133uOR67qlf1EGKJZPA6r51dPFAKBmIakcojUIhDRGSGlPd9ii3Rbb8ieoG7nTmLQaPPZ6RSBV4oEAkozGIBXsy5+LlKWdS5XM9UpJduKbR/slB4f1AHiE3QHgQbLB4nveApWaOHGfRN9c+UcEhHuAYNwHI1w6rlAtNzG1XaGbET+3bpBVjrw6DCH4yAdv2hTNxWsgJbnssZqB0gi6/m/c4pqTuMHCEBKC8fvONa01gzNsGjGCmv7VrEy+jIh8Wx2/GeJ9sGGez0mOLA20skMBH9rBTdBrYhHpALmKBb7n9zT9HaaD7foGppvIt0LQTe105b9DJXUX1w4FcD7zhl2gT934JlFDUMRKn/l9FQZViiFR3OOMbiIWW3ctpZq3FEVNPZUA576TedAPuQDM9kUQPOAiWSVpq+u8hfj2nDHI3L6Ud2EaS+t4A+OO0ovjohnDA0JoMoRbg==;5:XljfoR+OvxOggMKZBdf80d8n+PH2FlH+56Ivra9k0FzngR3tnoLcr7VGoF6LAmRBoiXGDlkOnMpev4WQyeB8uSumhHAjfimtl539rQxKHanxOlIvxEgzMYi+oIB+L25e4rLTzqc9Z0jmmno1J7q8yQ==;24:3G6qL/0X4qeMQVs6W/ApIr+W8MmbH2JQ3RpWHtmP+QykGNZq+ybQiLVRVVjUuR8NrJ6R9oceWRHXuhxMFjnj25AcDfw+/JNvOB9fgXxtNpY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1637;7:/XBMhJApf10yGhV+S3gnvM53/HFOKiU9cjHn8lmeCoYc0Vo50KGXfgexzw0Zn1yILmWufL9k2eyRaed2gbeeADigH8wMB/BzlbaaVwU5WNTxMfYYFgemWNkOL4IEblYMSnCQrUzhbDGqluBjEwwyGoxupBSeC6g4+rZ98mqb1siXeya1CMw4kSa6PiK6QJJ0QakXfySClM+DJAsrrPy1Ia//sj2PN9eay9PjNOy89Yup40TfgPWusllhE9BKywexzcLkl8vcTmbI5ughsvMayULPq2ZvzIzaoHHM4t9bQFWzqWqGa2sVyUKpaRbk/7A/jPw9TNibOPq96WRZaX/Y+DjyPuVvfia2zBcNfLveVQTdsn9GR9W0XClAykTUUL6p6aUDnA21cdNMu566u1/pdgNey1EiePKxa+ptNW4/tEv6M6caobU92sfDIIdV5MHfnGTez0OZmgrCt5VlAoQ5uA==;20:lkNZLaXsOhXHF/64QyXXRdZrwh0SEiZUiVH9HUSCIMjF87V9QDFfnxQZFvXT4hXzc9Tyr9/jtds7WH6jksox3QiipknGHF3OIL8+khsIQx0r9dBlDYAQwXns+R5l5XAPmF6qjeoCjHtP8XNCMlxl1BCUn5aqCGlL98eWDl4IwT8= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2016 22:14:24.0366 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR15MB1637 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-28_17:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 947 Lines: 22 On Mon, Nov 28, 2016 at 05:08:18PM -0500, Tejun Heo wrote: > Hello, Shaohua. > > On Wed, Nov 23, 2016 at 05:06:30PM -0800, Shaohua Li wrote: > > > Shouldn't this be a per-cgroup setting along with latency target? > > > These two are the parameters which define how the cgroup should be > > > treated time-wise. > > > > It should be easy to make it per-cgroup. Just not sure if it should be > > per-cgroup. The logic is if the disk is faster, wait time should be shorter to > > not harm performance. So it sounds like a per-disk characteristic. > > Yes, this is something dependent on the device, but also on the > workload. For both this parameter and the latency target, it seems > that they should be specified along with the actual device limits so > that they follow the same convention and can be specified per cgroup * > block device. What do you think? That's ok, I'm totally fine to make it per cgroup and per disk. Thanks, Shaohua