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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBC56ECAAD3 for ; Wed, 14 Sep 2022 14:36:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 670288D0002; Wed, 14 Sep 2022 10:36:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 61FFB8D0001; Wed, 14 Sep 2022 10:36:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4E78C8D0002; Wed, 14 Sep 2022 10:36:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 401138D0001 for ; Wed, 14 Sep 2022 10:36:37 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 180F81208A2 for ; Wed, 14 Sep 2022 14:36:37 +0000 (UTC) X-FDA: 79910942034.14.7D6B8AD Received: from mail-oa1-f47.google.com (mail-oa1-f47.google.com [209.85.160.47]) by imf15.hostedemail.com (Postfix) with ESMTP id C4144A0096 for ; Wed, 14 Sep 2022 14:36:36 +0000 (UTC) Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-127ba06d03fso41532567fac.3 for ; Wed, 14 Sep 2022 07:36:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=kFgFNMVDRvCC/nP/lPORN2htqPQLp6KV5JvuAgA93QY=; b=VczWFULHqHoMqMKDSp7OE8Ntcn6YdvZ+uzgeUyKY+MaARpoa1fkJsylo+QEI0ej0xV BQXK6G+qelaHL6OaDfw2i0KueNMcaHDp8jF/cCQ5X3lX2Gzy58ICYnYot3u1DaROke2F x62wBEm+wXgrMzdx0+XWasiG8FqSRnkKk5m8XGNYfcTDbOUP86pDkHWxYRhN3MwszuR4 l/k1vzu8Bn8MBgL7LK6k3o8PSNy3I207pRTgb9AovmXX640D2wLZOcIffNpI4cBGY5r9 3VuDM0THQijUL3Dg6iQqXNqYY7PKtTMxBWniivpwQjNIq9CNbzxXbOPXmiiOpWmjbEGv FVCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=kFgFNMVDRvCC/nP/lPORN2htqPQLp6KV5JvuAgA93QY=; b=VQPTvBlKckit3IIyEhmyGNqs59NvTqogobhuM/hU/0jh9LvvKw6HWSnrfHuTXGpnd+ Rh5VFA+bhlHgyhVARlrhBDFkTkc7ROAZGTkSZMtW7fQLUH0OR/DockCwps97l4bgie8G 32AQbXOGtqlNekUvaRIHWN/xSs3ZoU6lLy+NwMEw7CFxz7MIDTYIDKxzhcvyY3WF6Qk2 GDFKOQeCsLcHTeZkisRpW07gJhnIPA3/b2jgDQ3YPOq+xl6LQkLZpPGqQ7yIV3Skd0Yi zAbwS6QGeVKBQsVEPH9kFtZu0XaBK/nqJHwbAiSj/ZLcC8V5cCDocaZs2mr/GXwJl9us SO2A== X-Gm-Message-State: ACgBeo0MADJBF5kTwPBKNGAN3TEagem9QM/nZCiV+Xfx2v25AkGv7PUV wLtrI01klEDA5znZQz78orBh5gN5Dvn6b8Tp3V0= X-Google-Smtp-Source: AA6agR68fG7ReaARw1T683i+0dbbcVItIA0tOejmfRQpCIgjiblCs09OGM0ihVhlQs2YgvzB/IVA0NYKBaLgBG0piUs= X-Received: by 2002:a05:6870:d1c5:b0:127:4089:929d with SMTP id b5-20020a056870d1c500b001274089929dmr2550325oac.203.1663166195962; Wed, 14 Sep 2022 07:36:35 -0700 (PDT) MIME-Version: 1.0 References: <20220805033838.1714674-1-yang.yang29@zte.com.cn> In-Reply-To: <20220805033838.1714674-1-yang.yang29@zte.com.cn> From: Joonsoo Kim Date: Wed, 14 Sep 2022 23:36:24 +0900 Message-ID: Subject: Re: [PATCH] filemap: Make the accounting of thrashing more consistent To: cgel.zte@gmail.com Cc: akpm@linux-foundation.org, bsingharora@gmail.com, corbet@lwn.net, willy@infradead.org, yang.yang29@zte.com.cn, david@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663166196; a=rsa-sha256; cv=none; b=sRnAp8SxFxeNVrzI+UMBCGbPm5+4XRmLo0vNZCPmgwZn3QpltDKs1j+0fVGtjXwViJ6MDr ANEPGX9pwCNC/2ddegKXukVykAU4HsgksP18+ftQntYIFg2H8qbhHQ87ix+q+1f15aFpfW XphZoUoIRphnoJQa/sXTljJNiesnoNE= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=VczWFULH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf15.hostedemail.com: domain of js1304@gmail.com designates 209.85.160.47 as permitted sender) smtp.mailfrom=js1304@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663166196; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=kFgFNMVDRvCC/nP/lPORN2htqPQLp6KV5JvuAgA93QY=; b=cdog5Pw3dHjYf24h989o5ZALnnM6Spih/V+xAc7mEzd9wssSE6fUBOtZv/jpEzqnA+0NLr hmrIpoNlN/S/u0xNX2fbtn6wzbShGMkpsPOWUaA6CYwZOoK1sGOvDcBSo9td8cxD+YasDx MEGZeAxEYu0rfUf6cMZMhIcFsElC1BE= X-Rspam-User: Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=VczWFULH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf15.hostedemail.com: domain of js1304@gmail.com designates 209.85.160.47 as permitted sender) smtp.mailfrom=js1304@gmail.com X-Rspamd-Server: rspam11 X-Stat-Signature: d7rfo841oixz4u6ygy5qdiczdwj6hu56 X-Rspamd-Queue-Id: C4144A0096 X-HE-Tag: 1663166196-225424 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 2022=EB=85=84 8=EC=9B=94 5=EC=9D=BC (=EA=B8=88) =EC=98=A4=ED=9B=84 12:39, <= cgel.zte@gmail.com>=EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > From: Yang Yang > > Once upon a time, we only support accounting thrashing of page cache. > Then Joonsoo introduced workingset detection for anonymous pages and > we gained the ability to account thrashing of them[1]. > > So let delayacct account both the thrashing of page cache and anonymous > pages, this could make the codes more consistent and simpler. > > [1] commit aae466b0052e ("mm/swap: implement workingset detection for ano= nymous LRU") > > Signed-off-by: Yang Yang > Signed-off-by: CGEL ZTE Acked-by: Joonsoo Kim