Received: by 10.192.165.148 with SMTP id m20csp211103imm; Thu, 26 Apr 2018 19:42:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpEM33yvLx1XWKqntfwAEmO8F1GW7m9pRBe7e7dw1gLxr2kuBANGdr2SwBFrkCPNKCAn8pf X-Received: by 10.98.192.220 with SMTP id g89mr505685pfk.223.1524796946493; Thu, 26 Apr 2018 19:42:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524796946; cv=none; d=google.com; s=arc-20160816; b=dvnUtXNRt5ufG+efEgebuRaE7/92YQi7S2XOf6C9sATGTgYVTHcL94IsSpjm2aavwZ 5P5wyqCqu1T8d+hPcSf/Sn0LcvWG0Ia/m10iugy6XQg83gbDbkCGUdK4YUl0InxSKY7D AtcMNEEqcj2tVBTRIQatDmqSZWmPuYFGTZq20nOo9cZykfEJtx0uuVPMp9t9ELOGNfkn zrEe06JzRTFdEIvWpgmc4tRJDVrjA1mkZs5Q1Tn1anARMCnIpKzb46WH3q6G+5Vh76En PU3VQzNHBUE/ZR21vmFtRobLLoVs8hFuzys9reKGxNYm3uwm8U803GFeuX+irAtaDYNX kc5g== 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=3qYI5wrHstguVX+06Y7a6CrzItsgModIjG+j/V2Vvcw=; b=c0HrYwIR89a2ZTKxT4AGNN+5HKecDiY4I4vfrMMA+i1IhQ8ulw87j6WuuGiv/PPfEe Qy45O7N+FXPbZEi8nTvU4/NY3NY8Vr82WYz2mqi3SfrygWDny+D4Ax1HnxukLwhS9LgK LswPI5rkWpqLqADoRqQ/YPKh2426Pm7ZtlF9kMdprbjVwFiPZDHeZeFi1GBTlEjOE2cD lRESiKi5lRylrcho8jMSUhm1zItkhsayExewnFRo7872hrBj7KRHVo3cP0GWPMQTXMAZ ItKACfPUl1IvV7Fxf5o3+LIXYmjCVR6Bfa/2/as4kRD0ChfOOhdGCoCYYCqLV7nH90Uw sg1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rbUYOEyw; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x137si290031pfd.313.2018.04.26.19.42.12; Thu, 26 Apr 2018 19:42:26 -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=@gmail.com header.s=20161025 header.b=rbUYOEyw; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757343AbeD0Ckv (ORCPT + 99 others); Thu, 26 Apr 2018 22:40:51 -0400 Received: from mail-oi0-f52.google.com ([209.85.218.52]:42769 "EHLO mail-oi0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756854AbeD0Cku (ORCPT ); Thu, 26 Apr 2018 22:40:50 -0400 Received: by mail-oi0-f52.google.com with SMTP id t27-v6so336428oij.9; Thu, 26 Apr 2018 19:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3qYI5wrHstguVX+06Y7a6CrzItsgModIjG+j/V2Vvcw=; b=rbUYOEyw+0MnXax1B94svujvo0fcvIYffepK1I908klrZ7H2ppY+D9SEB6PjSEznY0 uD/11VtRRJpkRputIv3QapbbMSaqMpfOdK8cf1UiLVfH2tBaco9zLXNyzRwFArtcLEVX AWoQscPtEEkU5TkaY5IAt3+mBx2nKrRd+eREThFhrEfRjX1U7Gix0gSCQ1/JCNUwfZg2 f1rgFnz2UQj3PR8xaRIrUjFPRV56llBxS/aGN9mOsS5qBaZz4BTpsZ0zYzxh/wV+gQXd KcKQuq3Vsr+4HKv5W+FikYhRFvifklSR0y0TfJphrYa8upGCn8u8j7JMxfZwKfzNIwzP Y2lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3qYI5wrHstguVX+06Y7a6CrzItsgModIjG+j/V2Vvcw=; b=oOD4Yx2paL0Stg4xFraYSd+iWgk9eS3dosad1i8pZ5mqjKjDHDU/iVYTXATzPDd3pA G5Xj/0QqAZ6+8ZD6FwfmNSjIQtRJJqWqrk/ZpGeG5Ljc8Bege1nf4OGg4ks5vhKQTneX OY5UfdawJxJiPIDWi8Bgd6m/FxOm22jHLpSQfOA754KC06Rrx6EIs6pr0sC/5J6KbFxP 93laZrw+HoReLUY4YAOXb5XVbZNo5KODMQEIsPhhZGQG2XVUfQcMyJ2mgq5v4C7iqgpN y2/kQ4nLsaEqSMb7TyLEEei+7E/xyDysqf/VlsumdPrmU3mh1CWCeWizN3EqlQNT1oqX OFTQ== X-Gm-Message-State: ALQs6tD+msPnS8ZGc3WxbDSd+kNAU3uyhEC3PJUAfHki3yKWShZ2GvIr lenG+8ypnhTKpuSI8gFkTgnlTIW6 X-Received: by 2002:aca:5885:: with SMTP id m127-v6mr253348oib.352.1524796849146; Thu, 26 Apr 2018 19:40:49 -0700 (PDT) Received: from JosephdeMacBook-Pro.local ([205.204.117.17]) by smtp.gmail.com with ESMTPSA id y71-v6sm241225oia.13.2018.04.26.19.40.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 19:40:48 -0700 (PDT) Subject: Re: testing io.low limit for blk-throttle To: "jianchao.wang" , Tejun Heo 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> <9aee3b22-2600-b16b-d944-f3a09089664f@oracle.com> From: Joseph Qi Message-ID: <9ef3c9be-8973-33ae-6dba-c7a5af55e5ea@gmail.com> Date: Fri, 27 Apr 2018 10:40:40 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <9aee3b22-2600-b16b-d944-f3a09089664f@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jianchao, On 18/4/27 10:09, jianchao.wang wrote: > 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 > I'm afraid the latency check is a must for io.low. Because idle time check can only apply to simple scenarios from my test. Yes, in some cases last_low_overflow_time does have problems. And for not downgrade properly, I've also posted two patches before, waiting Shaohua's review. You can also have a try. https://patchwork.kernel.org/patch/10177185/ https://patchwork.kernel.org/patch/10177187/ Thanks, Joseph > 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 >