Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11555640rwl; Tue, 3 Jan 2023 00:43:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXsW3QuDbBS63nTQGAX+HDiAgTreHIwLENsWiF2pYtgUvsxryKWNGNPl4rsTVc+pi3hJrrOh X-Received: by 2002:a17:906:380e:b0:7c0:be5d:59a9 with SMTP id v14-20020a170906380e00b007c0be5d59a9mr40757692ejc.20.1672735424615; Tue, 03 Jan 2023 00:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672735424; cv=none; d=google.com; s=arc-20160816; b=np/Lmi1PInf0h/rZZ5gfdI35dTZGglQaHd1ry9/AvLHIwArSh6AaUpA8o7nCGhBsNX 9q1sz5yhoVEEuCUwQwvnaxmMk5QK0E6GV6qVVOjAJzq71PEqgTJKxQLOsvXNjoVXuiPK KnNGRdOGLUJ01/LA38DT5bRmrlfvmwwJnailq77e6M/4m0mb0C9R4zhmJvIQakks16s7 gLSFkoXY99pcp0+1L/a99yHhb5XOtp1e/WVZozuyPW2dgchPE9mr/8l1JoJZo3mkmGkZ b5a0fi/++2xYc2PelSH/8S99myZI5AvU9bLsRgTMgOND2YEuXfzf6BmHpA1wtOY/0+A7 Wftg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cxucqJyzfnCNVadtYHxDXtyUdE5BQ5o27Kjd3R83JAg=; b=OBG8uuxOr+9suI/jKj0BHK7Av1y9ki/FYKrEt4wA+Woks8s3Kk0nVOdjG4uwG53PPx 4gjZuKEQ8Tj48sI5DaGiVx92/EYxF8zgiMuwLRnTyYBR+cSklcsrYt1wwbb1LqhkYuUi hNDN69FhuBI6CQGMFtitt1FuynyQ+OsyDD2FCI2dZYi7aUPmSD8XuYasf54pOlW3bi5O bkk/LfyOZWuOag+aq+hWs/EUQ4h4vpTzwUu+iJJlyZBE9x4XlFlib7y394otrJfwtIud aHRkCePMZ3rTXhjLzDHBam2WAfq3J/XIQL/bhXatA1EcrSvmzhc+db5kOezvnFCn2JWS GtLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=pB+jvQ4L; 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 cr11-20020a170906d54b00b00787ad97302asi25506798ejc.863.2023.01.03.00.43.29; Tue, 03 Jan 2023 00:43:44 -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=pB+jvQ4L; 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 S236933AbjACIiE (ORCPT + 61 others); Tue, 3 Jan 2023 03:38:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232898AbjACIh5 (ORCPT ); Tue, 3 Jan 2023 03:37:57 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E007BDB1; Tue, 3 Jan 2023 00:37:56 -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-out2.suse.de (Postfix) with ESMTPS id 656C260C46; Tue, 3 Jan 2023 08:37:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1672735075; 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=cxucqJyzfnCNVadtYHxDXtyUdE5BQ5o27Kjd3R83JAg=; b=pB+jvQ4LqFEtRQBnhrTspiYshQvgyQetx3pEFEuajdpgDTi17C9MFciV3ESup3uhcsSOzj /TQS3rxhGPtDbogm4hadF52JYRROPgu0QbRk5MeKfowBOv1rpXcYMrimuSK9YBgnfQRH5I 3l4+qWHER2nf3zdpdyBBsQePl9eBXWA= 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 3D0921390C; Tue, 3 Jan 2023 08:37:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id TiStDGPps2OnCwAAMHmgww (envelope-from ); Tue, 03 Jan 2023 08:37:55 +0000 Date: Tue, 3 Jan 2023 09:37:54 +0100 From: Michal Hocko To: Andrew Morton Cc: Mina Almasry , Tejun Heo , Zefan Li , Johannes Weiner , Jonathan Corbet , Roman Gushchin , Shakeel Butt , Muchun Song , Huang Ying , Yang Shi , Yosry Ahmed , weixugc@google.com, fvdl@google.com, bagasdotme@gmail.com, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] Revert "mm: add nodes= arg to memory.reclaim" Message-ID: References: <20221202223533.1785418-1-almasrymina@google.com> <20221216101820.3f4a370af2c93d3c2e78ed8a@linux-foundation.org> <20221219144252.f3da256e75e176905346b4d1@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221219144252.f3da256e75e176905346b4d1@linux-foundation.org> 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=ham 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 [Sorry I was offline] On Mon 19-12-22 14:42:52, Andrew Morton wrote: > On Sat, 17 Dec 2022 10:57:06 +0100 Michal Hocko wrote: > > > > I think it's a bit premature to revert at this stage. Possibly we can > > > get to the desired end state by modifying the existing code. Possibly > > > we can get to the desired end state by reverting this and by adding > > > something new. > > > > Sure if we can converge to a proper implementation during the rc phase > > then it would be ok. I cannot speak for others but at least for me > > upcoming 2 weeks would be mostly offline so I cannot really contribute > > much. A revert would be much more easier from the coordination POV IMHO. > > > > Also I do not think there is any strong reason to rush this in. I do not > > really see any major problems to have this extension in 6.2 > > I'll queue the revert in mm-unstable with a plan to merge it upstream > around the -rc5 timeframe if there hasn't been resolution. Thanks! I do not really think we need to rush node based reclaim and better have a reasonable and more futureproof interface. > Please check Mina's issues with this revert's current changelog and > perhaps send along a revised one. Yes, I believe, I have addressed all the feedback but I am open to alter the wording of course. The biggest concern by Mina IIRC was that the nr_reclaimed reporting has been a pre-existing problem. And I agree with that. The thing is that this doesn't matter without node specification because the memory gets reclaimed even if the reported value is over accounted. With nodemask specification the value becomes bogus if no demotion nodes are specified because no memory gets reclaimed potentially while the success is still reported. Mina has tried to address that but I am not convinced the fix is actually future proof. This really requires more discussion. -- Michal Hocko SUSE Labs