Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp349589pxb; Wed, 14 Apr 2021 17:29:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx96xLDQApNXb9jPxJTT3wKTpqSVjwdtI+5S0051aXa2CfSuLHfcykHAHTJERhknHGhTKRt X-Received: by 2002:aa7:da15:: with SMTP id r21mr926173eds.253.1618446565853; Wed, 14 Apr 2021 17:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618446565; cv=none; d=google.com; s=arc-20160816; b=C+HkBtAgRZ+4MbntVqPBbQurFmR/qWh2iV5Nd9x9OHojvzdFkuLwFFLBl4bGIG+tVg Pe9OnWkR0qRMKCh+dQz30sLMDec4PGMLVi5R/8sw/YIu6aVt+o2UyRcuzh5KE0P14+oj tlZQkIbXKCGMPgrT/4yKwsiJLOEdX7d1vWc43xuC0nvbGIIoUaEyTgIe4PjaXNEN4gSf E62BKm0ViRxk4qh4ezgyCNeFfvjPH0hcWtCByxj8jFlZffD74PGQcOTu4XYZwv4QSVp2 90Vss7/kot/+I3IV3o0m5yl3P/7nB5vxwnfE9joG63WvQB+Rbwxn2270eONboH7Zs0ep jOHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=uro5octjQY+zZLfhDMCXOFNsZjtWzM4Oq8Y2VGW4eSA=; b=pM0k8YBDCauPRTgqOeh6Xn7VDJjb0hzylNcz2llOCd1d2XGMLi1ZhpUpGqxK+pySG3 cXgXPeYyb1hEkPGA52PgGv3EnEaQv5pkPhAyh8sV0adf7XfvWepGIb+lOzMHjWgxrbha cu/5NRZ2BmbzqjghCm85YC+rA8ekJGRtKDAcrKTVqTJsz6fcIKdwC5bg1S5t8tHUX0ZM Jt6ZLC71RUYqShXMkUy/rgs9p4uhuA/3/zxbbCW6sP1KFq4z4x0PZLfKJrSWv7nAoQWX iwRTirXWL7368G8PLWUf46zXSAxHgMOHeFzRhdlf4m8Qs3+xRPzhCIVlp3MTQ/B3Ltpc pslg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si998819edb.231.2021.04.14.17.29.03; Wed, 14 Apr 2021 17:29: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351700AbhDNNwk (ORCPT + 99 others); Wed, 14 Apr 2021 09:52:40 -0400 Received: from shelob.surriel.com ([96.67.55.147]:48344 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233454AbhDNNwj (ORCPT ); Wed, 14 Apr 2021 09:52:39 -0400 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lWfvr-0001GU-Kr; Wed, 14 Apr 2021 09:51:51 -0400 Message-ID: <93308ea276cfe7997c29ce7132516e830e8fec40.camel@surriel.com> Subject: Re: [PATCH v2 00/16] Multigenerational LRU Framework From: Rik van Riel To: "Huang, Ying" , Yu Zhao Cc: Dave Chinner , Jens Axboe , SeongJae Park , Linux-MM , Andi Kleen , Andrew Morton , Benjamin Manes , Dave Hansen , Hillf Danton , Johannes Weiner , Jonathan Corbet , Joonsoo Kim , Matthew Wilcox , Mel Gorman , Miaohe Lin , Michael Larabel , Michal Hocko , Michel Lespinasse , Roman Gushchin , Rong Chen , SeongJae Park , Tim Chen , Vlastimil Babka , Yang Shi , Zi Yan , linux-kernel , lkp@lists.01.org, Kernel Page Reclaim v2 Date: Wed, 14 Apr 2021 09:51:51 -0400 In-Reply-To: <87lf9lqnit.fsf@yhuang6-desk1.ccr.corp.intel.com> References: <20210413075155.32652-1-sjpark@amazon.de> <3ddd4f8a-8e51-662b-df11-a63a0e75b2bc@kernel.dk> <20210413231436.GF63242@dread.disaster.area> <87tuo9qtmd.fsf@yhuang6-desk1.ccr.corp.intel.com> <87lf9lqnit.fsf@yhuang6-desk1.ccr.corp.intel.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-TvVzMFbUNFpXYZ2w65cj" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Sender: riel@shelob.surriel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-TvVzMFbUNFpXYZ2w65cj Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2021-04-14 at 16:27 +0800, Huang, Ying wrote: > Yu Zhao writes: >=20 > > On Wed, Apr 14, 2021 at 12:15 AM Huang, Ying > > wrote: > > >=20 > > NUMA Optimization > > ----------------- > > Support NUMA policies and per-node RSS counters. > >=20 > > We only can move forward one step at a time. Fair? >=20 > You don't need to implement that now definitely. But we can discuss > the > possible solution now. That was my intention, too. I want to make sure we don't end up "painting ourselves into a corner" by moving in some direction we have no way to get out of. The patch set looks promising, but we need some plan to avoid the worst case behaviors that forced us into rmap based scanning initially. > Note that it's possible that only some processes are bound to some > NUMA > nodes, while other processes aren't bound. For workloads like PostgresQL or Oracle, it is common to have maybe 70% of memory in a large shared memory segment, spread between all the NUMA nodes, and mapped into hundreds, if not thousands, of processes in the system. Now imagine we have an 8 node system, and memory pressure in the DMA32 zone of node 0. How will the current VM behave? Wha t will the virtual scanning need to do? If we can come up with a solution to make virtual scanning scale for that kind of workload, great. If not ... if it turns out most of the benefits of the multigeneratinal LRU framework come from sorting the pages into multiple LRUs, and from being able to easily reclaim unmapped pages before having to scan mapped ones, could it be an idea to implement that first, independently from virtual scanning? I am all for improving our page reclaim system, I just want to make sure we don't revisit the old traps that forced us where we are today :) --=20 All Rights Reversed. --=-TvVzMFbUNFpXYZ2w65cj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAmB283cACgkQznnekoTE 3oPHTAgAibRj26Dg8hudb4TbNjzdUMWxbcn01w6bKFBXrdvDF+R0L9GpYE5Ujha7 xkegocz6XyUNRTHvfvLL7Z/CsZezxbeJoe3PIvRLZ0DV2L5TxYKFDdq5I+oeYuE2 cRpk5iE4eqZ8e9OK5NV2uFMBJ9M/s1ajvHLlY3izNfSAPX86rjAMFI50DboJChL5 +AXB3s0Qgmg4U9Wo9yyefUNma3AA9zN8E9mMeKnJuBsfVT4SLv+EZxIIPbLUPV24 bd0bce2U1BVlb1U6d4gHgLFDmVrlKmH1NK4MopRQU5sQSTYlnoh5BIsJO9pstNFp CBP8TQTqMhWSLDnwv7rBMQo8Z5pv9w== =tvZB -----END PGP SIGNATURE----- --=-TvVzMFbUNFpXYZ2w65cj--