Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754626AbcJETJW (ORCPT ); Wed, 5 Oct 2016 15:09:22 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:40643 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752973AbcJETJP (ORCPT ); Wed, 5 Oct 2016 15:09:15 -0400 Date: Wed, 5 Oct 2016 12:08:33 -0700 From: Shaohua Li To: Tejun Heo CC: Paolo Valente , Vivek Goyal , , , Jens Axboe , , , Mark Brown , Linus Walleij , Ulf Hansson Subject: Re: [PATCH V3 00/11] block-throttle: add .high limit Message-ID: <20161005190832.GA99272@anikkar-mbp.local.dhcp.thefacebook.com> References: <20161004172852.GB73678@anikkar-mbp.local.dhcp.thefacebook.com> <20161004185413.GF4205@htj.duckdns.org> <20161004191427.GG4205@htj.duckdns.org> <20161004202754.GJ4205@htj.duckdns.org> <257945FA-6789-4D80-8DA3-AC75640C71AE@unimore.it> <20161005144946.GA26977@htj.duckdns.org> <20161005183052.GA97491@anikkar-mbp.local.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20161005183052.GA97491@anikkar-mbp.local.dhcp.thefacebook.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-Originating-IP: [2620:10d:c090:180::b686] X-ClientProxiedBy: DM3PR14CA0064.namprd14.prod.outlook.com (10.166.156.160) To BY2PR15MB0408.namprd15.prod.outlook.com (10.163.109.26) X-MS-Office365-Filtering-Correlation-Id: 724bfb73-906f-402b-c94d-08d3ed5307e6 X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0408;2:3WdVpU/ceyh+nBa33Ag8//wbhOV05cGfetcl90Uq6V+yhYDpE62XobyyFYWmTrVQvkc6oGi26gnNHLpiKN6QafEl43f+YQwfn5FAi2DdW/erEEztyp7fm29M+Ipn4kwFYm9qDUopFXfZ4jCR8UEHdytN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sX21zmu6QvlPLtWIcfKwu8BYjdDmcXSSpopd8xDHZVtaWY6sAgpSJ3xIxpcIv67P84=;4:gk7wV7VBNmX20WWXZUeTVUJwzU1Yot+/7X5yARf+T/KbO4aNm+qKNOStLqztqgMta/jMzTHuTLqrY4oTlBoXiUH/kPD3w06Uc/6GDReXoYQWUGhuG7xC8bOTS9VLZC07Y9DaNge84537EXmSaYDy/ePrgudAG80jrWcTHJgklPE92SRmIn9sk8D0H7CX+JgVsoFlWftyUKxtkofpNqF8x4EuCHf9MWdnh+iO+r0hzcruAyZ0MF5QrBuNVSwmfdIeREY7WLR/XgwN4i7B4ekrRynM7TqoFma9sIj1VSnZN7oC7B5vVUcW6iLG3GRi6V79HIVzZfxrNtIfnHJGMnEpCwnjXl1kCRB4u7FdXi9y+KmR2oImp5pcbwJVeOhDLXj5++Y3PH2xqUyBdlJZsIjxIg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001);SRVR:BY2PR15MB0408;BCL:0;PCL:0;RULEID:;SRVR:BY2PR15MB0408; X-Forefront-PRVS: 008663486A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(24454002)(199003)(5660300001)(77096005)(15975445007)(19580395003)(68736007)(47776003)(46406003)(97736004)(105586002)(106356001)(1076002)(93886004)(4326007)(4001350100001)(8676002)(110136003)(189998001)(6666003)(76176999)(50986999)(83506001)(54356999)(2950100002)(6916009)(9686002)(92566002)(7736002)(7846002)(86362001)(98436002)(33656002)(6116002)(305945005)(101416001)(586003)(81166006)(81156014)(50466002)(42186005)(97756001)(23726003)(2906002)(18370500001)(2690400003)(142923001)(3826002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR15MB0408;H:anikkar-mbp.local.dhcp.thefacebook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR15MB0408;23:C1dq1vtELTceLcpp6RaU7+r0ITBtmOGGFH7P/IeG8?= =?us-ascii?Q?YhFlenXKwWQgNihaH0IHppMF5EnQ/eneMBwh+AEZTzWSALRRhiFhQsuwAFt7?= =?us-ascii?Q?jgkNHOD3MsV7PaHwx2iqZKCTLQRW+Yvqd7K5rGAsKvirR1zD4ulkwwAiw+QM?= =?us-ascii?Q?ruCx6G4i55LkYRypbp1EqTrmHoevZBB01q6Ly7cfHmXFNJyux0IP0ps/y9LD?= =?us-ascii?Q?xL3brYPFsew81kXbR/DXH3uh9pk/16KCabEirwDsrzCv64cWzC5B4hlQ97Tc?= =?us-ascii?Q?FQir9xTKgOlLGCzwEggzoYyLjH6WzPcnf8S08mbRHW/YC/RL3uKF2tQMsSey?= =?us-ascii?Q?jbPUBKJgwejOgYNJz5jLEbn60SdDd9aEBPOjr9htHo2JOHWG8r1m820741tM?= =?us-ascii?Q?cCKRKDz8eNeWy87UJVY63IBOy02SSiWHqzaHAjgb0jPzpEBsIKjLDkIeP/Vg?= =?us-ascii?Q?MB++iOu0SxnVJ7X9tZ81xYfyCouE8LB6onB0V+HIOCTOyS1JFk442ivl2Arp?= =?us-ascii?Q?tgEdsY2kShTEI3B/aNAyI+B0Ggf+LhKlSJKFYJ/tz2Qti7CpZrDHUNYedN6p?= =?us-ascii?Q?8NC9rzvQwI+cMHaQJ4xkiDAHq+3Eyg8Y7/CK61D73lwK71Ozs6Nb0Z1j1CUC?= =?us-ascii?Q?hltq/fezQDR2Oa3MbLqyQnNYjFc2mDTq5ZNI19OjGaZzotjvtX16OpcLwDGg?= =?us-ascii?Q?gnRPW1qeOn52j3QVZUljhL5F6pZ92ICABiWhB034gVL6FfU86VdIKx2jbwI5?= =?us-ascii?Q?SmBSwN/oZ30B4WMJGGT6lkwKMSpwBFaIojKUrzNHeAB3vyJIhV9CUyI/fzJJ?= =?us-ascii?Q?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+Q==;24:aEkPB2Jw85ixTWbWyu+3AVxG4kSnmXg8pooKsURlsuqb53pS0FF5o6V1dOj4+yHUFqXFzlMwsLItOWVZOr4L+6ZsFuSe7r8eIyUbWfW8Ghs=;7:t8QH40B0U/vCoGmgbmdsLtusV4Uc9b1QcaR2xuj7M0peg6MSss7NOcIDQJUQ4wzqhgh6PUB5u44R6Qg7IH+9laBAVRh7MHhwQnvydMH33r3lFU+YZL3g4seOIAD6uKIV6j+AS9dt1CO591oA7fccAV4W41M0Cowi57UbxVILky1dX7rjp0TtbLUnlLYVMTxTa46HU5xUBZUz08Kk24BZdQFe6+H3L8+kohWNbaltc3DqrRiyOviHHoRvy3aWkfcgWRnyBIdiCYUAOc7lf2HWlX1+6lZMdxZvHh/8fUKUAuCKh+PYc/gz3WSgKjSMQYu2 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY2PR15MB0408;20:e/M7FwEiameuX3kcLUS1jKFl5Y53PRrE06bYTDl1KRiYdgP9XhT7AfyU4ZgFHhvsvvgVjCFspWHzuZuYwdiKss7m4H9khv8zs7tgTiYzWB7opKFprrnWdKu6UmIRbaBJQlRD2TWgRqlhzylCNWLeMXWI1FqHDvN9KeDrUFaB9yk= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2016 19:08:44.0037 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR15MB0408 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-10-05_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3213 Lines: 96 On Wed, Oct 05, 2016 at 11:30:53AM -0700, Shaohua Li wrote: > On Wed, Oct 05, 2016 at 10:49:46AM -0400, Tejun Heo wrote: > > Hello, Paolo. > > > > On Wed, Oct 05, 2016 at 02:37:00PM +0200, Paolo Valente wrote: > > > In this respect, for your generic, unpredictable scenario to make > > > sense, there must exist at least one real system that meets the > > > requirements of such a scenario. Or, if such a real system does not > > > yet exist, it must be possible to emulate it. If it is impossible to > > > achieve this last goal either, then I miss the usefulness > > > of looking for solutions for such a scenario. > > > > > > That said, let's define the instance(s) of the scenario that you find > > > most representative, and let's test BFQ on it/them. Numbers will give > > > us the answers. For example, what about all or part of the following > > > groups: > > > . one cyclically doing random I/O for some second and then sequential I/O > > > for the next seconds > > > . one doing, say, quasi-sequential I/O in ON/OFF cycles > > > . one starting an application cyclically > > > . one playing back or streaming a movie > > > > > > For each group, we could then measure the time needed to complete each > > > phase of I/O in each cycle, plus the responsiveness in the group > > > starting an application, plus the frame drop in the group streaming > > > the movie. In addition, we can measure the bandwidth/iops enjoyed by > > > each group, plus, of course, the aggregate throughput of the whole > > > system. In particular we could compare results with throttling, BFQ, > > > and CFQ. > > > > > > Then we could write resulting numbers on the stone, and stick to them > > > until something proves them wrong. > > > > > > What do you (or others) think about it? > > > > That sounds great and yeah it's lame that we didn't start with that. > > Shaohua, would it be difficult to compare how bfq performs against > > blk-throttle? > > I had a test of BFQ. I'm using BFQ found at > http://algogroup.unimore.it/people/paolo/disk_sched/sources.php. version is > 4.7.0-v8r3. It's a LSI SSD, queue depth 32. I use default setting. fio script > is: > > [global] > ioengine=libaio > direct=1 > readwrite=randread > bs=4k > runtime=60 > time_based=1 > file_service_type=random:36 > overwrite=1 > thread=0 > group_reporting=1 > filename=/dev/sdb > iodepth=1 > numjobs=8 > > [groupA] > prio=2 > > [groupB] > new_group > prio=6 > > I'll change iodepth, numjobs and prio in different tests. result unit is MB/s. > > iodepth=1 numjobs=1 prio 4:4 > CFQ: 28:28 BFQ: 21:21 deadline: 29:29 > > iodepth=8 numjobs=1 prio 4:4 > CFQ: 162:162 BFQ: 102:98 deadline: 205:205 > > iodepth=1 numjobs=8 prio 4:4 > CFQ: 157:157 BFQ: 81:92 deadline: 196:197 > > iodepth=1 numjobs=1 prio 2:6 > CFQ: 26.7:27.6 BFQ: 20:6 deadline: 29:29 > > iodepth=8 numjobs=1 prio 2:6 > CFQ: 166:174 BFQ: 139:72 deadline: 202:202 > > iodepth=1 numjobs=8 prio 2:6 > CFQ: 148:150 BFQ: 90:77 deadline: 198:197 More tests: iodepth=8 numjobs=1 prio 2:6, group A has 50M/s limit CFQ:51:207 BFQ: 51:45 deadline: 51:216 iodepth=1 numjobs=1 prio 2:6, group A bs=4k, group B bs=64k CFQ:25:249 BFQ: 23:42 deadline: 26:251 Thanks, Shaohua