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 E3498C433EF for ; Tue, 8 Mar 2022 12:54:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6902A8D0002; Tue, 8 Mar 2022 07:54:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 640108D0001; Tue, 8 Mar 2022 07:54:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5304A8D0002; Tue, 8 Mar 2022 07:54:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id 45DA78D0001 for ; Tue, 8 Mar 2022 07:54:02 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 0A8F6246FC for ; Tue, 8 Mar 2022 12:54:02 +0000 (UTC) X-FDA: 79221211524.08.2419B62 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf18.hostedemail.com (Postfix) with ESMTP id 24D211C0005 for ; Tue, 8 Mar 2022 12:54:00 +0000 (UTC) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 1213E210F2; Tue, 8 Mar 2022 12:54:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1646744040; 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=n/emOtviPPue1z2Csk782WJVV/8l7f0Qp5W/vdOjj+c=; b=OaHJ9zFTvyBh4DREbh288TPHmAj29WgCRloYUoaoc5UBjBP5UItXY6BvOlgbubGPljejap u+SYY3DV0oh8QzVhUCiwYEFa6TohXt1widGJziBjGJhgyrkSOB0SrDWTheW8VTsedSY0YF F3zm26LD3+kdKGHdsxl6XZkORYhaKEA= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id CB652A3B81; Tue, 8 Mar 2022 12:53:59 +0000 (UTC) Date: Tue, 8 Mar 2022 13:53:59 +0100 From: Michal Hocko To: Wei Xu Cc: Johannes Weiner , David Rientjes , Andrew Morton , Yu Zhao , Dave Hansen , Linux MM , Yosry Ahmed , Shakeel Butt , Greg Thelen Subject: Re: [RFC] Mechanism to induce memory reclaim Message-ID: References: <5df21376-7dd1-bf81-8414-32a73cea45dd@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 24D211C0005 X-Rspam-User: Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=suse.com header.s=susede1 header.b=OaHJ9zFT; spf=pass (imf18.hostedemail.com: domain of mhocko@suse.com designates 195.135.220.28 as permitted sender) smtp.mailfrom=mhocko@suse.com; dmarc=pass (policy=quarantine) header.from=suse.com X-Stat-Signature: 9cdkcba7af6jmye5z5nqya1iamgus6fh X-HE-Tag: 1646744040-263338 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: On Mon 07-03-22 14:53:40, Wei Xu wrote: [...] > The choice between anon and file pages is not only a hardware > property, but also a matter of policy decisions. It is useful to allow > the userspace policy daemon the flexibility to choose anon pages or > file pages or both to reclaim from, for the exact reasons that you > have described. This is important for the use cases in Google (where > anon pages are the primary focus of proactive reclaim). > > Maybe instead of the swappiness factor, we can replace this parameter > with a page type mask to more explicitly select which types of pages > to reclaim. I am concerned this could lead to even more problems. Where do you draw the line? Do you want to control slab reclaim or even shrinkers based reclaim? -- Michal Hocko SUSE Labs