Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9504740rwl; Wed, 11 Jan 2023 06:34:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXu5dJPx1nVkRD8Vg/TYYm7ikvGDze8lkyK0AummyIRfBKQ74XTCLF6UWFPhV59npQhVXqbP X-Received: by 2002:a17:902:e005:b0:192:fa88:57d6 with SMTP id o5-20020a170902e00500b00192fa8857d6mr20060420plo.24.1673447678663; Wed, 11 Jan 2023 06:34:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673447678; cv=none; d=google.com; s=arc-20160816; b=sMkhnWvN+hDtVaVpcD3NMIesQtvYo0mExKFisgIZY+s00iRUgQUA05lDwBMP0nMLtX eScaf0ZL2q6SJVS+JZUtpEsyrnoREp3zxmWnDtIHFmUSY4KBYwmsKcSg6PtmQ0xLt/og UTufPOZJ29pNvEE5xozrPQ7JiF3MNqXS42kpt7j8iYLT92MG+cBcCbVS3EJowVg3Q41U Bu7Brd0AofVEiPL9BWlDqt9JcX/0Je2l8k6oH/WALJZ3JhCdeUHoDCNAMQw9DeTBezyj NkW6D1SJek5T5yX1siNj3E2zPmoupWRSsneZ0PB3eaXAHUQpsdM+hc421pI2oJMmkQiu N5yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0sVrq4Dniw5KnDcNZ1C6CZNPXzD9gn2lEBhnqlgUWQg=; b=bLStVxSZ1qwLMea1n+ZSJWwke4c5Kq2fZL2WWjORztrKRYhwErkmKl3K0/BB89pW/c 2rCsJzE07vAAvw3iKCEYUddof++pnkFQsJ1qH+NXWFzBLjnLQRGeolfvr5vsNG8xF/rh PWQUg/FSeqJAc/klMVRrAXP5IkwW7YM6rO9MPH12Axt9NqG8v5gIKt//UhuiL72zosMK 1OcJ06Wxmh+YXR+eGA45HntNoy6BZLD/B7MfPbvj5hG1viFdWnOlNcy+r3IDCzlXOEUz OM7c+li+FtA2HquLLiVKzNznLjxJqOxfmhL2qblnPmm3s5L0gQ6gph+T4P7ZL++54UZk xapQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=EXtg4ez0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a170902904900b001932b1fb0cbsi8967491plz.435.2023.01.11.06.34.31; Wed, 11 Jan 2023 06:34:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=EXtg4ez0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230477AbjAKOST (ORCPT + 55 others); Wed, 11 Jan 2023 09:18:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239322AbjAKOR6 (ORCPT ); Wed, 11 Jan 2023 09:17:58 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B746CFD2E for ; Wed, 11 Jan 2023 06:17:24 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 19CAF337D6; Wed, 11 Jan 2023 14:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1673446639; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0sVrq4Dniw5KnDcNZ1C6CZNPXzD9gn2lEBhnqlgUWQg=; b=EXtg4ez0ch4jeVKmyNXeCXnuQie+WMbN7uTHT/Spqz9Lhu82IcRtoMI7K5IzlqjRl53JvS lX9U23sleXpjF1VHRMIjz8XuTjeI6ptzTin6V3ueNjB8Fe/HltDjp6Dvx/uso5a3AEEKdW WhWP6WtVCkCyZYq9t2oINfZk5XlclYI= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C686513591; Wed, 11 Jan 2023 14:17:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id V0KDL+7EvmOECgAAMHmgww (envelope-from ); Wed, 11 Jan 2023 14:17:18 +0000 Date: Wed, 11 Jan 2023 15:17:17 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Yuanchu Xie Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Yu Zhao , Andrew Morton , Shakeel Butt , Muchun Song , linux-kernel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org Subject: Re: [RFC PATCH 0/2] mm: multi-gen LRU: working set extensions Message-ID: <20230111141716.GA14685@blackbody.suse.cz> References: <20221214225123.2770216-1-yuanchu@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: <20221214225123.2770216-1-yuanchu@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 14, 2022 at 02:51:21PM -0800, Yuanchu Xie = wrote: > that's frequently used. The only missing pieces between MGLRU > generations and working set estimation are a consistent aging cadence > and an interface; we introduce the two additions. >=20 > Periodic aging > =3D=3D=3D=3D=3D=3D > MGLRU Aging is currently driven by reclaim, so the amount of time > between generations is non-deterministic. With memcgs being aged > regularly, MGLRU generations become time-based working set information. Is this periodic aging specific to memcgs? IOW, periodic aging isn't needed without memcgs (~with root only) (Perhaps similar question to Aneeh's.) > Use case: proactive reclaimer > =3D=3D=3D=3D=3D=3D > The proactive reclaimer sets the aging interval, and periodically reads > the page idle age stats, forming a working set estimation, which it then > calculates an amount to write to memory.reclaim. >=20 > With the page idle age stats, a proactive reclaimer could calculate a > precise amount of memory to reclaim without continuously probing and > inducing reclaim. Could the aging be also made per-memcg? (Similar to memory.reclaim, possibly without the new kthread (if global reclaim's aging is enough).) Thanks, Michal --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTrXXag4J0QvXXBmkMkDQmsBEOquQUCY77E6gAKCRAkDQmsBEOq ufzXAP9oSegjiyAMqSaGyInbRBFZQWAgWZSfIZLFLnPaHnPLewD/abXGqTRB65aj qyqWc5cOAqYeuzRkjwwaFp6QKtrImwE= =Jo1y -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT--