Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp92030ybl; Thu, 15 Aug 2019 13:17:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwF7lLT8OZ9W4kNWvAGiZmHOCE/QWiEkuvwsU4PjHNAVaJ6jvhyo/1rDhpVKJ3qRZ2TxL5V X-Received: by 2002:a63:f816:: with SMTP id n22mr4737126pgh.175.1565900252981; Thu, 15 Aug 2019 13:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565900252; cv=none; d=google.com; s=arc-20160816; b=hY/A7Gf+pvrm4IKPdbdj9g/wRH+EUtk9WEeV+Zc5hzSfvLONJh6fETvJ3tWnpE/Xnl DbiwxpREWVXftSIxaYBssYu9E7GCV33epxOjQ260spDlaDFu+rCOiZx56grht4mzM0A+ slPZxvMmQhUXrzDKrQ7qFzvlbeHRH3bgpunBNvfDQkm7IQqpOf29MrpPzwsv3ysUXfmp HmgC8cxZA0OFEhjR98VYDEoPCxaIyjNQwNV+sgXujPW7AMqs4ST45/7DTyLQk6F6xb1m ViqkhZEywOaJAFBaU61+9GFwa84RAIY1YuLR26D4IpkmqCGvgfuAzRuLrs5gA0OY/Ev1 gSqA== 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; bh=0zU1UzGhGpSs42osUb1VwxYmT+F95oS3ySvyshFJEKk=; b=mBlWXfRE/TVBuqpErnDqixqOY21X5Um7z39wlHuqVum+4mS6p+H+gznZXx2PluhjKm DQQ1u2aIedHvNkEbZw/YzrXsSxVyXpLMuKR/en7dLvdODhYHpox4WUX+xYFNlNWQWrgS fjR6PL151Zmsr7jI+DUxMB6kbIQFBdRLt1Luo0jeqnoXjjWdNweFnVpQS48xZ0t4PpH2 wbCa7IiS8ykTA0lg8QmD//R6IKuKKYv8iL2JSrg5QP3sqHtrPfXyq6t5+BxkjsS9lSaE ed4Mq2sGjbKG6VAxK8anOo2wfnnkPn3K7W2Fl+HZ/l1pbGMKDRxqm+k1vJZG+uoFTrjH YNXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="W/vU/7xc"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y16si1168645plp.70.2019.08.15.13.17.17; Thu, 15 Aug 2019 13:17:32 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="W/vU/7xc"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732398AbfHOTbH (ORCPT + 99 others); Thu, 15 Aug 2019 15:31:07 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:35536 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731422AbfHOTbG (ORCPT ); Thu, 15 Aug 2019 15:31:06 -0400 Received: by mail-io1-f67.google.com with SMTP id i22so1450542ioh.2 for ; Thu, 15 Aug 2019 12:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0zU1UzGhGpSs42osUb1VwxYmT+F95oS3ySvyshFJEKk=; b=W/vU/7xc7p47Vimmqfb1G2QAFDNTCqMFaGRsHe74Wkbx3UmQHnCznpOGppBbaqTWcc +VolBhjCxYDeXdliOmI2HmmxY4nH8B8J+UBWDvk+IL36DHmxcQmAU1ln3BX7cctIfCBF yjwLo/ZtJOegnWApB777y2VXG2wTFCipZVImeKD1AtIYfliO9cqFDmP8BCzcekMgAXuu Zw9Kmzt3+xaa4mJg6S0NR9wwpYJK4FjvLmgDrPv1UWddx0BEpCy/bwkd95d1TrvQsNKP JCQRpzjCTHUGnQCc7F0fhTww1+q9U2m4YSB9y9BKNZqZSTOrrvp07VVWalqxEYnHimfO wHKg== 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=0zU1UzGhGpSs42osUb1VwxYmT+F95oS3ySvyshFJEKk=; b=i2v07gXZlnoJ+u0+OTb2nWhr4korBLEWqaNahgu3XLVrKF2YxptGjJc4dUpWzHmRJ4 Fn9t5FjxU5PwswV5opvs1WqqDOQKGgqLKPnZAFWR4Z12Ak+fDd5f5alPimuje5tEv/44 tQKGH2yxfZnf5biJQUnfSRCoYKu9P6IraLuH+KBQu8+Ke/PmIjP1iECuSkwHe/FflAXO HX9QlXNKHL+TIqePWH9vsqNy3E3ypxFXggCPiFPn2G+7OC4Lt4SvHUffj68dHHN3l92L zhn/Vn0m92RKxDvQIcMzR0H2dSxL7ACSghZw8iJDGZGIadJdU52QDxzVoOrr44cnAr1p RE3Q== X-Gm-Message-State: APjAAAXARZJefyrCGfqGarBaYrZLcyI1r2Cfd/guu5lOr+XY8KP1NYXq rWywLcLi9JVFm88Qh5a1PywX3rXxlA0eNA== X-Received: by 2002:a5d:9448:: with SMTP id x8mr7675761ior.102.1565897465344; Thu, 15 Aug 2019 12:31:05 -0700 (PDT) Received: from [192.168.1.50] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id h8sm2468682ioq.61.2019.08.15.12.31.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Aug 2019 12:31:03 -0700 (PDT) Subject: Re: [PATCH v2 block 1/2] writeback, cgroup: Adjust WB_FRN_TIME_CUT_DIV to accelerate foreign inode switching To: Tejun Heo , Jan Kara Cc: linux-block@vger.kernel.org, kernel-team@fb.com, linux-kernel@vger.kernel.org References: <20190802190738.GB136335@devbig004.ftw2.facebook.com> <20190815192528.GA2240241@devbig004.ftw2.facebook.com> From: Jens Axboe Message-ID: Date: Thu, 15 Aug 2019 13:31:02 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190815192528.GA2240241@devbig004.ftw2.facebook.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 On 8/15/19 1:25 PM, Tejun Heo wrote: > WB_FRN_TIME_CUT_DIV is used to tell the foreign inode detection logic > to ignore short writeback rounds to prevent getting confused by a > burst of short writebacks. The parameter is currently 2 meaning that > anything smaller than half of the running average writback duration > will be ignored. > > This is unnecessarily aggressive. The detection logic uses 16 history > slots and is already reasonably protected against some short bursts > confusing it and the current parameter can lead to tens of seconds of > missed detection depending on the writeback pattern. > > Let's change the parameter to 8, so that it only ignores writeback > with are smaller than 12.5% of the current running average. > > v2: Add comment explaining what's going on with the foreign detection > parameters. Applied 1-2 for 5.4, thanks. -- Jens Axboe