Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935481AbcKVXSn (ORCPT ); Tue, 22 Nov 2016 18:18:43 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:34800 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933800AbcKVXSk (ORCPT ); Tue, 22 Nov 2016 18:18:40 -0500 Date: Tue, 22 Nov 2016 15:18:24 -0800 From: Shaohua Li To: Tejun Heo CC: , , , , Subject: Re: [PATCH V4 07/15] blk-throttle: make throtl_slice tunable Message-ID: <20161122231824.GC14628@shli-mbp.local> References: <24137f881a149d30b98ef040367f26378128d4d2.1479161136.git.shli@fb.com> <20161122212715.GD17534@htj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20161122212715.GD17534@htj.duckdns.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [2620:10d:c090:200::a:890d] X-ClientProxiedBy: MWHPR14CA0037.namprd14.prod.outlook.com (10.171.142.151) To DM5PR15MB1641.namprd15.prod.outlook.com (10.175.105.150) X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1641;2:jJgU5m6Y8EZQloZlOEUC/fqSoWa32uzraORim0iKwZUlghSKfsaqAHQoScOQ/pyCDfcv17FWw0+r4MX6cAQ6h/QnrVRLMxmJ3spGgFGJB7oCMDSAzduNc7WnUOr52INhvu5+RnKykwc9F5070J3eyw2CL7NClHEV1eqSj+9zrIM=;3:DAowg0O4yKZO2iKxlqSc8ph4KLHttVME/1HiI603grvCx14utxG3Pjl6MDrR5CuES0K6q3ipW5s/s+xMgm8dlp8m2Iu1g2B56YA9cdbokJuEF2NrueDICplPikWTm3ZqTE2A80/D/Edm3shK825bQGCUewvOImrl4FY+uyYITcc=;25:lzY8LuRM4Wv6+3QN+0DO0ji9WIIddadcfpXTWuEdWhjVLXLPzrs04YaAvzJl9jzlTkg5YhfW12Y3i1FJnJzE6OcWGoHMc6g1boc3sNBuqlU0qGuuBURr/Yli3zgyHtdnHTyg9jnUbZ2v4f8lPEpMeqdcrFK/gDkOTuuD6T752bJQnjScmLSMfskOHJAlo3pPB2p5MxWCZSmexc1zN4l29nAbpP1FtdkkrzbHYgF8xuxutvqJbDtHkteJ6l8YIJMcV/5+uEGV2bqaMHNFgtHm+tVHFhlTGtcwtDtdMd6GFfATjfJLYFvTcX/bqtpGZBHmvQwezo7oTn73DIi453V/tWyxZKK6euTxO89duJlN2vGIqcgK2PJVGDN5M6lFXoP0At/F2mGRrh6gnubIZoK3/HMdLrFxieCXr2mOtmlRRq2dtNpDR9//t7PhHjey3JA4bgt+Sa+mB5v6uvR6oHmu+Q== X-MS-Office365-Filtering-Correlation-Id: 5fe15c8b-5c12-41c8-0fe6-08d4132ddf8d X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR15MB1641; X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1641;31:NtohjYnC1Z4UrTd7+cONV18CS5rVSqjwyAFBF1qadiEfh7BuQpnGownKJo06//m+TkoIg7RjBOmSiq4xsqHLj07xi4bz56w2W2R8IXmAOV6FbgfSKshWloodLVeY2Qwq+CzHcvcv4Ahys0JP5VDFo3s/HxuhOp8L+Vrbka8W6m34fs+lWuYeqlmIo2tD+InX4aSU5WQwPMwmGgieo6jXOCxNfir5VVCYy15Vk+M/jooPMR3ZtfcBlTkpXYYZYJVE;20:VN1uWxqB+Umz0KbmxOiA8C2ACLxIBwrzmyGHRVPDC/AAl3/X2Wtk6je21Qcm/KS8+bhh5cV0E1+cTG3RRlpZ7Leto5hRSvv3wiE1bKQCJLIdUSW41Yd61yZPyVbD7BBgzxn9GtthqU8dwVMga5kqtesMYIVyVCQcjfRkUTheXSgsIyB8RYlBGdCUo/IeB3Wa+RnJWnOI/Hiaf8UfFAP9zAdV1cbMPsoddQ41RvXHcmbNogtP/r7EBw2KSJcNWoDz X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6060326)(6040307)(6045199)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(6061324)(6072148);SRVR:DM5PR15MB1641;BCL:0;PCL:0;RULEID:;SRVR:DM5PR15MB1641; X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1641;4:JgnZrXRA4hrSFVNhmzG0J+RxwbBCmaGUi4bpuDJxWFS0dVYwSj1AfNV8RM0OXemf/8Hj3/s+MkdD/dcBJdqhz7G01OjtUGlqK6Usz6rmQD1E1FvUdTYpOI0WtC0oQohHylQJzt2178KAGQKwVdvPiNdA6urMX5jLFgMk7Q/+/ML4ARv23PrP141shK7CwE+PxKEkPh7UdASwYHNlkxbMi5fMiD0g37eJyisOq+VTaYfzmUGdD2uPlUI1Wgeas3r+4czZvnfpqBgmlaTYDS/QsOCMwWUaqGx+4XuSRgiK+sKeVGRmQuzqhwqty5uukAsfq36SBCG2bpeuwjgNpcyyzVNxc6V5ZQY5N4Bo24JqNBfcFf/IgD4lb/EIGexZ7/hKNpXv8dU9t4bCLZ4eA+iImVxe+uGKFN6TkCbiIcqJKQmkrkL+RhBgehqMr4CHTQWDgGoKbZY28LnygWx6hfxhFbWHbzQROYsScEIrkegrvHrD/i2q1vTuudbuLBc40XSB X-Forefront-PRVS: 0134AD334F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(24454002)(229853002)(83506001)(5660300001)(97736004)(101416001)(189998001)(42186005)(86362001)(50466002)(23726003)(4001350100001)(68736007)(77096005)(38730400001)(1076002)(92566002)(8676002)(6116002)(2950100002)(7846002)(106356001)(6666003)(54356999)(305945005)(97756001)(76176999)(6916009)(4326007)(47776003)(2906002)(81166006)(81156014)(105586002)(50986999)(33656002)(9686002)(7736002)(98436002)(110136003)(46406003)(18370500001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1641;H:shli-mbp.local;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM5PR15MB1641;23:iOAFH/vDkbR1AAMGSdDcl+6rK0yPYWVPWqjGNlUl9?= =?us-ascii?Q?ziQX2wjWrS4B0OJrmby5R1J7MHnVnGtifEhIp5Sy3TgEQoPXglVXUmnsTFjm?= =?us-ascii?Q?qPXBO3hVdcZVwSFKN6Ve/aRT92m2RdSGozJYKuPjR2gVGqAgGfF4NfU61KXJ?= =?us-ascii?Q?OZyCLCM7Zjiljh99OpJzLsSvDGvQAkibsUDk/M95G7ws4/DWh5aD+Mw9syic?= =?us-ascii?Q?Wgkj7hoqRentKEygo6PkA5rtUHehuLRYouQI1EyF6izRzAo7/rsNX+0TIbQI?= =?us-ascii?Q?zboSKJmcWFugFMIigP3rSi6z5KXLzZjCHTXSaki1TokUIk1V7Xiw2tBSRKUT?= =?us-ascii?Q?Y/Qd8B3wUrkEJriISMs4riuQmw+MX36NQaSH0qkX9yMixCoVYJij2F3BMK4d?= =?us-ascii?Q?fb8RbHkxaC3JHxQLsBiDx9zmcL+maMMukV9POwIzjdLqzIN/KZJQw7ACkjet?= =?us-ascii?Q?vT7O97tf4PdlUnVjDS/aBDlb2W9RTA2GriR8OkVCaVKJVtUOpXpZeFydYV24?= =?us-ascii?Q?tJyVh2MJWz4uja6b4A3RxLH5wWEq8Io8UfP5186jaE0D/L/B02/QC/GonvUG?= =?us-ascii?Q?oNT94HuZKHxGM4HpK+4YLC1avQgr/1ueQAmSXgX/Wkp9V6QDP1Wl/Smk7dOR?= =?us-ascii?Q?9gbwzX5fDp6jNcwfRuEyTNIVfllb0IAW5QVzUpmHPNpX9XIVxwmk13u7yQwH?= =?us-ascii?Q?TIP8/F79ShP/KWHKIXAMCVqpz5UQsX7H7mkjAALA0R5GCmfsDsRZLgPd+/rH?= =?us-ascii?Q?k+Ir0OlYZM3ht+5Qwymv01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a0uHfLGiF85AuwN9VTIbT+Gi9hEqVwQN5dBorCusU7iG29cYwqTQLBhJA7nVh1On+SGHEjVQ0XZSsvPH1uUb3Sn4xSf5WTwK8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1641;7:tbwRhI6BtxZp+Fqf44kXJXv72+GZyvAn+uf47MEJ/A/DkOc+T87X3DWpP0LK5v90W+aArjwPHORR7pAbDv34V6Gm3Gm3g4lIaxoF88r3DUKVUuIzWEJWhQdnFbhb0Wav0Jt1ZcL+PRMzLKHL44/jLU03UsTMW7K8hwni/HP1FJ1UQmc+VpphwUzDeUIQH5RQg7tVcPuSQEMlywbnVjT6ZyW5aJxFceq2Cmav2nBObTW4Mjo7Ud+QT6qJE926A9pa2wI3831OMeoXu/q4S6ZKTMHsX2ZNtEnBjRwjgeWzsw/1clc07+z4b7XAXJfxCiX1AgXiQVTsR6FjifXi+adykrJstHN7yj9muoxZonNLkXs=;20:doR4Pfl7KX8jYjVfPcDe8hdTIvfCjoBVo+gqjj9OspGnb0DOt0ByAmT0NcFGBjKQAsGaCZmIuX49Do7AhotgpS6MIJKdlKrajwQ7TJoeLkR1ZJMtjo4Ma+82K60cP/K2RR9H/xtDZLRCOj1xuMcgNqvQqboQTvkBo33RP0ATzU0= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2016 23:18:30.5487 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1641 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-22_13:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1127 Lines: 24 On Tue, Nov 22, 2016 at 04:27:15PM -0500, Tejun Heo wrote: > Hello, > > On Mon, Nov 14, 2016 at 02:22:14PM -0800, Shaohua Li wrote: > > throtl_slice is important for blk-throttling. A lot of stuffes depend on > > it, for example, throughput measurement. It has 100ms default value, > > which is not appropriate for all disks. For example, for SSD we might > > use a smaller value to make the throughput smoother. This patch makes it > > tunable. > > It bothers me a bit because time slice doesn't mean anything inherent > to throttling. It really is an implementation detail - throttling can > be implemented at per-operation level without time slice involved at > all. It's okay to expose the knob if necessary but the meaning of the > knob is almost completely arbitrary to users (as it has no inherent > meaning). Hmm, it's not a real 'time slice'. The name is a bit confusion. Maybe rename it to 'throtl_interval' or 'throtl_sampling_time'? not sure. bandwidth and iops are always in terms of a time interval we measure them. We can't say the iops/bw for a single io. So this is really a tuable knob. Thanks, Shaohua