Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp219989ybt; Tue, 16 Jun 2020 22:13:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw0NOD1O/ZVnldB11Vy98G4PRs2Yw1rKi9t88QevRoO/lgSM7k6f7OwLJ/AWe/Fzj6n4rY X-Received: by 2002:a17:906:5e08:: with SMTP id n8mr5971067eju.132.1592370782222; Tue, 16 Jun 2020 22:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592370782; cv=none; d=google.com; s=arc-20160816; b=uGRnyf3qAZAectIW8amzU5BeA/KvHV7mz5YIFvjlWJvRf5e1Ntq85/kVdzVa7nzgEl q+eTAqCf6XbRn/OmLV8zqjjnl9ZfmKPxEXbRXOPTopXLcQMTiFjgeqOJg48x56nzsxzj PLMdwZiFa9Vzb6Sivjj95cZnJw7xZa8PuqhxXBZlvYYg87MLzIQZx970nOydcszSxRjL fDXGqw5ALTPiOWDNgq9R9WoFghcleM8Kne/TxrTjA/rOWHsy9Z2plWXk4ycmM103dYLE t7v6jqL5cOgbVdIS38+6zBOnIp9qUGw/tTAjbw7H5zbQeUZ6FG/eFyJBDIRV1GPwGuQ9 x6vw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eSxlgyWtSoXSmG1hmoYzEM444NpFB+T4fXxIpsIpthk=; b=yX5DyI6iq2U3ufXHasRTZVFZ7pRySywnEz7e2BQ2mTcJTGcl+57YY4LEnOe7JQh/w3 GbEt3sGDkZSmehWscH7+FVOb6CGuRobNHlqt866v3/2grhwoRrxSrRuLnHHEiQQAHQRj J1AGzcTl0Og7mAO/uPoPZzVOpPteJkVO3Wlu7u3UhQu4vBWSnzsNAmju+B0J3njofJCg jd2SSM8tz4uYgv5bYycdszdBP7mW4m6aCWaoFOqU3CCFQQt3nXk54SaodUngP9SM223M FrMJ+AYw08ICp1Q2BWSo7vPRawquTwJT92Rd4+gPRF89w+Q6ydnQKpBDFE5JpJafCKSz RLCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M7+46Mbq; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x15si12414387edj.153.2020.06.16.22.12.39; Tue, 16 Jun 2020 22:13:02 -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=@gmail.com header.s=20161025 header.b=M7+46Mbq; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726715AbgFQFI6 (ORCPT + 99 others); Wed, 17 Jun 2020 01:08:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725923AbgFQFI5 (ORCPT ); Wed, 17 Jun 2020 01:08:57 -0400 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AB79C061573 for ; Tue, 16 Jun 2020 22:08:57 -0700 (PDT) Received: by mail-qv1-xf43.google.com with SMTP id p15so442434qvr.9 for ; Tue, 16 Jun 2020 22:08:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=eSxlgyWtSoXSmG1hmoYzEM444NpFB+T4fXxIpsIpthk=; b=M7+46Mbq0O0SaclOTpKcRrjHwmidJX6jYuBGOcEZ74jIc/ta25h4mCJTNKo4bq+83q 7Uf886njOoRqxWR8QDZ7/RsRA5Sugeo26726COXuet5ealArLVgpNAm7WzKWvnkh7F1+ Jw3mYYda8xVnPjMlyXz7F265CnwLEXNnmmS2yFdk8jlUxSipLaxR2UNlpiT1HHST/Czj QSitAsKXFmaKnXzUHNsFAZbaKlGpWROPZnVrleXd4ToGLrxLx3T/hNICu+ms2dOXC6Ou 8DrfE25X06wx/PoqcbLlyhSZSJRF5gJSApRzvsVNAvoz2+qX/vNn52K5xsuuaSGiOkJ0 6LDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=eSxlgyWtSoXSmG1hmoYzEM444NpFB+T4fXxIpsIpthk=; b=hiOFFmCJiblpk9lh4lKfMrtIIZYByRf81jxk975WrAUkzayQeHlFqOaoHMKGfBaPuF 50LqH/Xsj3/C4OVvguJJhAX2ah/Exm52e1MCR0XJ3iJV6GQkSIGI8KC9UagNFXKy1VLq Ne7Qma0GDLaoIvjAysYgVW1pDHO6MApPbUFcwMoNAZz8NQ33OyTbcgPkbdUTbukPpGQw EZnRCHYt+2iAL8d3cw7iUjHXEAUBcRG4KrxnS/Zv4q42bPGpzr/NWVMBhMt6T5O8W4pT 4Fv9Y0o2emI2qIAeHCwzsTHf42GBLhI3l/qf8RmG20kh2ImSgx93ZzNX0zw1ecaHboTJ dAsg== X-Gm-Message-State: AOAM533G7l0ausc8qHzh0TGhGPA+Bj9ycWlcAbnYkD4c7JSW/wxBxUxu 2SlCG+iFC6VGVIitP00FAAUAlpl3D+cnAOyIlYGrRrDR X-Received: by 2002:ad4:4d04:: with SMTP id l4mr5937206qvl.88.1592370536428; Tue, 16 Jun 2020 22:08:56 -0700 (PDT) MIME-Version: 1.0 References: <1592288204-27734-1-git-send-email-iamjoonsoo.kim@lge.com> <1592288204-27734-3-git-send-email-iamjoonsoo.kim@lge.com> <20200616113601.a8ab80635b6434efe43d2ffc@linux-foundation.org> In-Reply-To: <20200616113601.a8ab80635b6434efe43d2ffc@linux-foundation.org> From: Joonsoo Kim Date: Wed, 17 Jun 2020 14:08:45 +0900 Message-ID: Subject: Re: [PATCH for v5.8 2/3] mm/swap: fix for "mm: workingset: age nonresident information alongside anonymous pages" To: Andrew Morton Cc: Linux Memory Management List , LKML , Johannes Weiner , Rik van Riel , Minchan Kim , Michal Hocko , kernel-team@lge.com, Joonsoo Kim Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2020=EB=85=84 6=EC=9B=94 17=EC=9D=BC (=EC=88=98) =EC=98=A4=EC=A0=84 3:36, A= ndrew Morton =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84= =B1: > > On Tue, 16 Jun 2020 15:16:43 +0900 js1304@gmail.com wrote: > > > Subject: [PATCH for v5.8 2/3] mm/swap: fix for "mm: workingset: age non= resident information alongside anonymous pages" > > I'm having trouble locating such a patch. > > > Non-file-lru page could also be activated in mark_page_accessed() > > and we need to count this activation for nonresident_age. > > > > Note that it's better for this patch to be squashed into the patch > > "mm: workingset: age nonresident information alongside anonymous pages"= . > > > > Signed-off-by: Joonsoo Kim > > --- > > mm/swap.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/mm/swap.c b/mm/swap.c > > index 667133d..c5d5114 100644 > > --- a/mm/swap.c > > +++ b/mm/swap.c > > @@ -443,8 +443,7 @@ void mark_page_accessed(struct page *page) > > else > > __lru_cache_activate_page(page); > > ClearPageReferenced(page); > > - if (page_is_file_lru(page)) > > - workingset_activation(page); > > + workingset_activation(page); > > } > > if (page_is_idle(page)) > > clear_page_idle(page); > > AFAICT this patch Fixes: a528910e12ec7ee ("mm: thrash detection-based fil= e > cache sizing")? No, This patch could be squashed into the previous patch, "mm: workingset: age nonresident information alongside anonymous pages", in this patchset. I intentionally do not unify them by my hand since review is required. Thanks.