Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7006394rdb; Wed, 3 Jan 2024 00:59:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfpgSlwGtthRbhcunhYxkSdTBn8vDTJijcHRpDOmrJp9WrKVks/aY47KeDGsO8QNA0goAV X-Received: by 2002:a0c:d646:0:b0:680:141:3aa8 with SMTP id e6-20020a0cd646000000b0068001413aa8mr20600589qvj.109.1704272358982; Wed, 03 Jan 2024 00:59:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704272358; cv=none; d=google.com; s=arc-20160816; b=Bp7bKqjNK+yaI6mVqe3MRrqZRI1p4XE6P5HMbzKH7DP1nDdL0Lxtqf6+WbHd1mwFqr Q/NWfC028/EGI7ujonKYg3hTbP63kqzA/KFoGqmb0P/udx943gbb7qBkCbrbmm3WMzrh b7+hdPu3RuXUC0geeRBVAH/eLtla286nPh+bXTaBYCLrKgq29H58LDDgDuPWknF7Tft1 ftN1/JSrnwSxPJkrUkLYMvsrG4wfRl3Ct5vaDarsOCL2MKsGiLQh6ecYl6ONjO+M11jc A6OzVJRsMB6jNgAaOQ4Wv1t0Ham+WJnQfnWjidINa3OsIDxLYFjxwgMAXkIYl4ZhIq4U hJFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=Yv2lvBBY8zygbe4ymIzZMEvU6ASa58iPZBjgLvImPuI=; fh=8wMjPanKEHjBSY/Z0HTjPsovVGUD32YDHSfKGzjmsic=; b=IROFdz9RVL8V6o3922GbTKuNic/HMyLONLQg7EtU7xjsxHraYgQdLy5tXPzItkkeha q1KBuNMbaL6qQfDKv/I4B+drivwu34nOfN9QYfeR4D1I5nqCwTzAyw1/gOO2qAnsHCUe S4DBMouyf1g9Qs/H4M73NDNcARzuvZIfMLG2fWgkc5xUAh1LRydKjAXIxHQ7ZwjqdJm6 xZH00V5DF4AjjP3PSux0t5REeeKY2kPjPEx14SRkyIVW8+3399+lznu2ikiDsH5zz4bt caoaAT19YT4e42g3V0r4ElX/R1ogXd9jf800ADvENm8UnQGR2VDQL//ZrFYCEPuP8QGb FfdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=APqPemPI; dkim=pass header.i=@suse.com header.s=susede1 header.b=APqPemPI; spf=pass (google.com: domain of linux-kernel+bounces-15293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s10-20020a0c8d4a000000b0068081587ca4si12362969qvb.156.2024.01.03.00.59.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 00:59:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=APqPemPI; dkim=pass header.i=@suse.com header.s=susede1 header.b=APqPemPI; spf=pass (google.com: domain of linux-kernel+bounces-15293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B85CC1C230BC for ; Wed, 3 Jan 2024 08:59:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D03F182B9; Wed, 3 Jan 2024 08:59:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="APqPemPI"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="APqPemPI" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA0B8182A4; Wed, 3 Jan 2024 08:59:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A245A1F79C; Wed, 3 Jan 2024 08:59:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1704272345; 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=Yv2lvBBY8zygbe4ymIzZMEvU6ASa58iPZBjgLvImPuI=; b=APqPemPI7W1Ua8LkRyWzDPC3sHMyuQJIj2v0Wy/brDFHbMHaNs9wPvYHRAMtyyNXW3d+3z 8RehXl/VOkKgLwf4LWpLD7xpzYDjHNQPhmsa+H+vVnIM1tLMZOWbvTH0HuCLap65uwqTqG XnebmvetCeovBhh7ESJOxfdx14eDXsQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1704272345; 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=Yv2lvBBY8zygbe4ymIzZMEvU6ASa58iPZBjgLvImPuI=; b=APqPemPI7W1Ua8LkRyWzDPC3sHMyuQJIj2v0Wy/brDFHbMHaNs9wPvYHRAMtyyNXW3d+3z 8RehXl/VOkKgLwf4LWpLD7xpzYDjHNQPhmsa+H+vVnIM1tLMZOWbvTH0HuCLap65uwqTqG XnebmvetCeovBhh7ESJOxfdx14eDXsQ= Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 796401340C; Wed, 3 Jan 2024 08:59:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id QqxWGtkhlWXGZgAAD6G6ig (envelope-from ); Wed, 03 Jan 2024 08:59:05 +0000 Date: Wed, 3 Jan 2024 09:59:04 +0100 From: Michal Hocko To: Dan Schatzberg Cc: Johannes Weiner , Roman Gushchin , Yosry Ahmed , Huan Yang , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Tejun Heo , Zefan Li , Jonathan Corbet , Shakeel Butt , Muchun Song , Andrew Morton , Kefeng Wang , SeongJae Park , "Vishal Moola (Oracle)" , Nhat Pham , Yue Zhao Subject: Re: [PATCH v5 2/2] mm: add swapiness= arg to memory.reclaim Message-ID: References: <20231220152653.3273778-1-schatzberg.dan@gmail.com> <20231220152653.3273778-3-schatzberg.dan@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Level: Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: 0.70 X-Spamd-Result: default: False [0.70 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_HAM(-0.00)[42.17%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_RATELIMIT(0.00)[to_ip_from(RLhyf994aoi9gdt4d63rk4ux49)]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_TWELVE(0.00)[19]; FREEMAIL_TO(0.00)[gmail.com]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_CC(0.00)[cmpxchg.org,linux.dev,google.com,vivo.com,vger.kernel.org,kvack.org,kernel.org,bytedance.com,lwn.net,linux-foundation.org,huawei.com,gmail.com]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Flag: NO On Tue 02-01-24 12:43:49, Dan Schatzberg wrote: > On Thu, Dec 21, 2023 at 10:29:59AM +0100, Michal Hocko wrote: [...] > Thanks for the review Michal and sorry for the delayed response. Your > patch looks reasonable to me but I'm a bit unclear about the need for > #ifdef - mem_cgroup_swappiness already works correctly regardless of > CONFIG_MEMCG or not - why not make sc->swappiness and sc_swappiness() > unconditional? We do not have a different user than memcg pro-active reclaim. Making that conditional makes that more explicit. Nothing that I would insist on of course. -- Michal Hocko SUSE Labs