From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7CCBC35242 for ; Fri, 24 Jan 2020 16:41:09 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id AC6922072C for ; Fri, 24 Jan 2020 16:41:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="dZ8JwUXz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC6922072C Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 384A36B0005; Fri, 24 Jan 2020 11:41:09 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3343D6B0006; Fri, 24 Jan 2020 11:41:09 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 24A7F6B0007; Fri, 24 Jan 2020 11:41:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0203.hostedemail.com [216.40.44.203]) by kanga.kvack.org (Postfix) with ESMTP id 0F84F6B0005 for ; Fri, 24 Jan 2020 11:41:09 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id B63A2181AEF1A for ; Fri, 24 Jan 2020 16:41:08 +0000 (UTC) X-FDA: 76413092616.18.cent11_9e9520d2f80e X-HE-Tag: cent11_9e9520d2f80e X-Filterd-Recvd-Size: 4708 Received: from smtp-fw-9102.amazon.com (smtp-fw-9102.amazon.com [207.171.184.29]) by imf05.hostedemail.com (Postfix) with ESMTP for ; Fri, 24 Jan 2020 16:41:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1579884069; x=1611420069; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=LXgdOlwtujAE1p5EJnOr5sMTZO6PUyuqb8t7aQa+aDM=; b=dZ8JwUXzmZrVHVT7lf/96lm30A9PQBxt9xfGyaiiN5pZzWBtKZ3GdsSI 7D17zfBQHYKkQG55Z/nCuj3ib+uJ8kYk6cxCtF/EIMIrnfYBPc+z8dsKJ coaQuv37WAxK8vt+kRyw69uiQcUKYdB6WQjuh3yqD5dZpVWe3g3RO0KDq M=; IronPort-SDR: kEggzGRjQUbhQNgPmmQt5XZjqmvhOZQFx2qGTmem87b+uhUWRsd7lY08kKes4pYB2fJ2QwHwLX yoqe9nN7w4QQ== X-IronPort-AV: E=Sophos;i="5.70,358,1574121600"; d="scan'208";a="20841900" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-53356bf6.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 24 Jan 2020 16:40:57 +0000 Received: from EX13MTAUWC001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-53356bf6.us-west-2.amazon.com (Postfix) with ESMTPS id 61392A1F07; Fri, 24 Jan 2020 16:40:56 +0000 (UTC) Received: from EX13D20UWC001.ant.amazon.com (10.43.162.244) by EX13MTAUWC001.ant.amazon.com (10.43.162.135) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 24 Jan 2020 16:40:55 +0000 Received: from 38f9d3867b82.ant.amazon.com (10.43.162.133) by EX13D20UWC001.ant.amazon.com (10.43.162.244) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 24 Jan 2020 16:40:53 +0000 Subject: Re: [PATCH v16.1 0/9] mm / virtio: Provide support for free page reporting To: Hillf Danton CC: Alexander Duyck , , , , , , , Minchan Kim , References: <20200122173040.6142.39116.stgit@localhost.localdomain> <20200124132352.12824-1-hdanton@sina.com> From: Alexander Graf Message-ID: <286cae85-5dc0-50a7-4fb1-96e75cef408d@amazon.com> Date: Fri, 24 Jan 2020 17:40:51 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200124132352.12824-1-hdanton@sina.com> Content-Language: en-US X-Originating-IP: [10.43.162.133] X-ClientProxiedBy: EX13D19UWC002.ant.amazon.com (10.43.162.179) To EX13D20UWC001.ant.amazon.com (10.43.162.244) Content-Type: text/plain; charset="windows-1252"; format="flowed" Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.009173, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 24.01.20 14:23, Hillf Danton wrote: > = > On Thu, 23 Jan 2020 11:20:07 +0100 Alexander Graf wrote: >> >> The big problem I see is that what I really want from a user's point of >> view is a tuneable that says "Automatically free clean page cache pages >> that were not accessed in the last X minutes". > = > A diff is made on top of 1a4e58cce84e ("mm: introduce MADV_PAGEOUT") with= out > test in any form, assuming it goes in line with the tunable above but wit= hout > "X minutes" taken into account. > = > [BTW, please take a look at > Content-Type: text/plain; charset=3D"utf-8"; format=3D"flowed" > Content-Transfer-Encoding: base64 Thanks, looks like Exchange doesn't pass 8bit data on, I've changed the = default to ascii now, please just notify me in private if you see it = broken again. > = > and ensure pure text message.] > = > = > --- a/include/uapi/asm-generic/mman-common.h > +++ b/include/uapi/asm-generic/mman-common.h > @@ -69,6 +69,7 @@ > = > #define MADV_COLD 20 /* deactivate these pages */ > #define MADV_PAGEOUT 21 /* reclaim these pages */ > +#define MADV_CCPC 22 /* reclaim cold & clean page cache pages */ This patch adds a new madvise flag. I have a hard time seeing how that = would help with the "full system expiry" of pages? The basic point that I tried to make above was that I would ideally like = to have a coldness cutoff date at which you can be pretty confident that = page cache data is no longer needed. To work properly, this needs to be transparent to any normal process on = the system :). Alex Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879