Received: by 10.192.165.148 with SMTP id m20csp192561imm; Thu, 26 Apr 2018 19:11:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrnSMPTS6sniqFtD/htblFLOKLDNxYvyHQBh0VP5dbTp4/iMRq+Vdkb+7l9AGgfp4bDBkJr X-Received: by 10.98.226.17 with SMTP id a17mr447693pfi.126.1524795102950; Thu, 26 Apr 2018 19:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524795102; cv=none; d=google.com; s=arc-20160816; b=CyurbVLz3XPqx8v38y7K0pOtVe096W2hzpYxf8sRW/+Ka0Z/AmQYa1aGDsFydYDFmJ p4khUKfxY8u16RKPd8ofjY/Shs5GU/YAiMiWnZ2MQmaJPl4YKe/tuCJxIbLnyvS+/hrB UB1X2sHWjK1MXALsn8yG6RHbjlvrLmoQ1Wb8dffZPkZYSuGyBV90SwdEPeDGCcl9GGYg bOlQudF6lQhnebduZnxQ/eLKf6HNSMjsZHGIgW6WO+WrrIG0eOtTcgxQipR3cf+enHPo GeqkPKvoydSx6eCyrBVn0kqJx/x4cWCrIJKOzmgYWTCVGwT4hcbg7n55nXvzgTXAjcfw HcBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=fud9JeDHJnKHQax2P5gBAViFNTWpRi1sVN63uS8DAXA=; b=aja/oo6l1HBpZbSxj9oBEm1I1YZJlilsUXj2OjHKZM7ntXRJh/xoHv3HlIUoQTRfzy 2XjeFi9ggfETFoCvg8yN58xWYhkkvzbugS3neqtOzwnOe07BAwx7WhyStc44ZJ/tUI7V nQl7OEHzO1DOolc/THyQrj8UnZGAs77ry9tcrg9I5I6AL6/yiYWSoEMpelxY7EjW+KcW lVXtSdZeRPbjb4XZy8AKtsaLmQWAcExDU0j7GJJgba8EpqYet3ENn2vP9SLnhBp9wBUa P1MhrODaXD0/5cWppBD0WqHrBDl4wJ5aeDItCLMqP3OEOtaPmXiJSj7SyEUT8gFPfJ0G u0lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=EQguLxNW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11-v6si257005plt.284.2018.04.26.19.11.28; Thu, 26 Apr 2018 19:11:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=EQguLxNW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757266AbeD0CKZ (ORCPT + 99 others); Thu, 26 Apr 2018 22:10:25 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:54910 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757142AbeD0CKX (ORCPT ); Thu, 26 Apr 2018 22:10:23 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3R271ne112349; Fri, 27 Apr 2018 02:10:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=fud9JeDHJnKHQax2P5gBAViFNTWpRi1sVN63uS8DAXA=; b=EQguLxNWZnSl6WA1Xjf5SaVfabADTIgX4bP/jHpcd2IV9RR1pq8aw3+KHTb4BRHxHXlz X5jh30GlGy1ghFyvw7qFpO4rGz22Yo09EAqbxnE8IHA1TYzuPztHdUdv24mtFXfRtG38 R7HyywRRkKqphVD6CmWGqE3HVYWvBqTU9DqGL2g+fk5VE5kgTDNbrI9cOsCF2mTQFa7g zJE+OqaZCuSVaqoEoffj3XUrF6vRzjAtdN+2baiGIQKqSY+xohazgbxbi/R3QMsqH7+6 vFA9pTa1n28JeR4cThwESCu2RoS+X9pmxUefXzDo5DHPeGwxJMIP8BzfrgADQzA15cfI bw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2hfwy9wgwq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Apr 2018 02:10:16 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3R2AFqI009925 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Apr 2018 02:10:15 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3R2AEDQ010700; Fri, 27 Apr 2018 02:10:14 GMT Received: from [10.182.70.180] (/10.182.70.180) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 26 Apr 2018 19:10:14 -0700 Subject: Re: testing io.low limit for blk-throttle To: Tejun Heo , Joseph Qi Cc: Paolo Valente , linux-block , Jens Axboe , Shaohua Li , Mark Brown , Linus Walleij , Ulf Hansson , LKML References: <4c6b86d9-1668-43c3-c159-e6e23ffb04b4@gmail.com> <18accc1e-c7b3-86a7-091b-1d4b631fcd4a@gmail.com> <536A1B1D-575F-4193-ADA6-BA832AEC7179@linaro.org> <20180426183200.GK1911913@devbig577.frc2.facebook.com> From: "jianchao.wang" Message-ID: <9aee3b22-2600-b16b-d944-f3a09089664f@oracle.com> Date: Fri, 27 Apr 2018 10:09:55 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180426183200.GK1911913@devbig577.frc2.facebook.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8875 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804270019 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tejun and Joseph On 04/27/2018 02:32 AM, Tejun Heo wrote: > Hello, > > On Tue, Apr 24, 2018 at 02:12:51PM +0200, Paolo Valente wrote: >> +Tejun (I guess he might be interested in the results below) > > Our experiments didn't work out too well either. At this point, it > isn't clear whether io.low will ever leave experimental state. We're > trying to find a working solution. Would you please take a look at the following two patches. https://marc.info/?l=linux-block&m=152325456307423&w=2 https://marc.info/?l=linux-block&m=152325457607425&w=2 In addition, when I tested blk-throtl io.low on NVMe card, I always got even if the iops has been lower than io.low limit for a while, but the due to group is not idle, the downgrade always fails. tg->latency_target && tg->bio_cnt && tg->bad_bio_cnt * 5 < tg->bio_cn the latency always looks well even the sum of two groups's iops has reached the top. so I disable this check on my test, plus the 2 patches above, the io.low could basically works. My NVMe card's max bps is ~600M, and max iops is ~160k. Here is my config io.low riops=50000 wiops=50000 rbps=209715200 wbps=209715200 idle=200 latency=10 io.max riops=150000 There are two cgroups in my test, both of them have same config. In addition, saying "basically work" is due to the iops of the two cgroup will jump up and down. such as, I launched one fio test per cgroup, the iops will wave as following: group0 30k 50k 70k 60k 40k group1 120k 100k 80k 90k 110k however, if I launched two fio tests only in one cgroup, the iops of two test could stay about 70k~80k. Could help to explain this scenario ? Thanks in advance Jianchao