Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp597545pxu; Thu, 15 Oct 2020 11:30:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoWPcXxE8nQuAKj3tQbD/Hsa/tLTQ/WzG26/5aODn2RkuDXWAtfOsmlvyZHYkpShrT7B52 X-Received: by 2002:aa7:d992:: with SMTP id u18mr5760252eds.284.1602786625956; Thu, 15 Oct 2020 11:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602786625; cv=none; d=google.com; s=arc-20160816; b=krEELWyWdnjQhRCMjMtXzRXpdJEUOWVMiuQHq/rnhM/zM3Gp4oxNPMCiDNkQNZG/PF Qg0wxJGFPCpSagHvf22RGD7T9D9yHonfb1HBiBtW7T/LA1SiFWJqwl6P8MSghbXOb+iN +7dVpFKyc5wIq7XdUdhkiFqqQ036Lr7spSHxworAi8ERhMLnmND+kCuZfoGclSUITUS5 xHg/PWtfMN4G8U4wjIbEu23Gn45Jjly0UGrO8DW2PghMdkw6rpb24rfuw2QeyVu0l6f/ 5OBB9on9OTjC/X2MPiPEytaFwQpH7kWou9qWRk5uvEA4iVVlb9hkAMhCM5XpvofUxQPT MzmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=xI1wCRbxJCFX6yOdKgXcnKW1y6wTWNYIfl97uYZxpXE=; b=dTpyBCNmXZHsc6R8U/BDawcKgr6WHaAJHLWcBJDxoB+RhJz4b+DOngDnrf4F7/Qryu RTl8SU48EUFVxH/dQGlRV+iHLDEtJAyt/P2WM12clvAGf2WO6pTrIL2m8e95vM8YYKqh Z9qxOd9XoeZodlv2GAifTBp/8dr0O7NhEuIjenlVnOPtk0t+uSDDXE3cB/3kfND7PtWK qRMT8kZK138Ycor0lPR0WpC4Q27pT0C8PzJ5TnLzdlbLFrZv5TPMgEtFGSH41zfMm8AD L4H4dIVzpoQZrdPInyGLFZREs+lSY9MCh/c6n4HzxPZczw4fU3QdXzGbyIgxLRNbEc8Y /cLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Vsjkyc1f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ng3si2899362ejb.345.2020.10.15.11.29.54; Thu, 15 Oct 2020 11:30:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Vsjkyc1f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389559AbgJOPJ2 (ORCPT + 99 others); Thu, 15 Oct 2020 11:09:28 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:6655 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388764AbgJOPJ2 (ORCPT ); Thu, 15 Oct 2020 11:09:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1602774568; x=1634310568; h=from:to:cc:subject:date:message-id:mime-version: in-reply-to:content-transfer-encoding; bh=xI1wCRbxJCFX6yOdKgXcnKW1y6wTWNYIfl97uYZxpXE=; b=Vsjkyc1fSH69yCRzbm7KZgLcZ4D5al/jk3pmbnVEPrp0v40cWisL8N4v 0uKrSD4N8yImivzTtD4aE07m/xbxepqapYq8lSiATPveM8XzwGKYLsGjQ EMraV5CcP6eIqI1fdu2FEyopPBxnHdwXbU571dpJJad4bEr6mHWxeULiI c=; X-IronPort-AV: E=Sophos;i="5.77,379,1596499200"; d="scan'208";a="59532495" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1a-807d4a99.us-east-1.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 15 Oct 2020 15:09:21 +0000 Received: from EX13D31EUB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-1a-807d4a99.us-east-1.amazon.com (Postfix) with ESMTPS id 65806A20A0; Thu, 15 Oct 2020 15:09:18 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.160.125) by EX13D31EUB001.ant.amazon.com (10.43.166.210) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 15 Oct 2020 15:09:13 +0000 From: SeongJae Park To: Roger Pau Monne CC: , Konrad Rzeszutek Wilk , Jens Axboe , Boris Ostrovsky , SeongJae Park , , , "J . Roeleveld" , =?UTF-8?q?J=C3=BCrgen=20Gro=C3=9F?= Subject: Re: [PATCH 1/2] xen/blkback: turn the cache purge LRU interval into a parameter Date: Thu, 15 Oct 2020 17:08:49 +0200 Message-ID: <20201015150849.3844-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 In-Reply-To: <20201015142416.70294-2-roger.pau@citrix.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.43.160.125] X-ClientProxiedBy: EX13D02UWC003.ant.amazon.com (10.43.162.199) To EX13D31EUB001.ant.amazon.com (10.43.166.210) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Oct 2020 16:24:15 +0200 Roger Pau Monne wrote: > Assume that reads and writes to the variable will be atomic. The worse > that could happen is that one of the LRU intervals is not calculated > properly if a partially written value is read, but that would only be > a transient issue. > > Signed-off-by: Roger Pau Monné > --- > Cc: Konrad Rzeszutek Wilk > Cc: Jens Axboe > Cc: Boris Ostrovsky > Cc: SeongJae Park > Cc: xen-devel@lists.xenproject.org > Cc: linux-block@vger.kernel.org > Cc: J. Roeleveld > Cc: Jürgen Groß > --- > Documentation/ABI/testing/sysfs-driver-xen-blkback | 10 ++++++++++ > drivers/block/xen-blkback/blkback.c | 9 ++++++--- > 2 files changed, 16 insertions(+), 3 deletions(-) > > diff --git a/Documentation/ABI/testing/sysfs-driver-xen-blkback b/Documentation/ABI/testing/sysfs-driver-xen-blkback > index ecb7942ff146..776f25d335ca 100644 > --- a/Documentation/ABI/testing/sysfs-driver-xen-blkback > +++ b/Documentation/ABI/testing/sysfs-driver-xen-blkback > @@ -35,3 +35,13 @@ Description: > controls the duration in milliseconds that blkback will not > cache any page not backed by a grant mapping. > The default is 10ms. > + > +What: /sys/module/xen_blkback/parameters/lru_internval > +Date: October 2020 > +KernelVersion: 5.10 > +Contact: Roger Pau Monné > +Description: > + The LRU mechanism to clean the lists of persistent grants needs > + to be executed periodically. This parameter controls the time > + interval between consecutive executions of the purge mechanism > + is set in ms. I think noticing the default value (100ms) here would be better. Thanks, SeongJae Park