Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2284862rwb; Wed, 30 Nov 2022 04:59:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6oEs/7WDzVInW6HwfiCnukD16uwTBe5UIsD33Q+GLZJzlMytOl2Ecw/R+OxojubBxNGVhO X-Received: by 2002:a63:2105:0:b0:476:e987:fcfd with SMTP id h5-20020a632105000000b00476e987fcfdmr39684340pgh.29.1669813168504; Wed, 30 Nov 2022 04:59:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669813168; cv=none; d=google.com; s=arc-20160816; b=MbjxU0KpSsuLImbrLVv5ph8ICuJbomt3ibBTZ9SVIU3/xOeoVHTOJmANciK/8znN/r f/HRnc10L0iATUqINPTBGtHv5lN+52m1RzMZ1g7ilPD86ah6cweK4A1iQWug83oO+TA9 fUK1B+Amc3Afro3cJEQ/h/RoVxwssqhx2JcYCEVuhVsTq+AOurWVAJxKphCmnHCAE7kn nMH8A1ZIVf36qglhybNjM6b98Tki0AVK2TTKcTUfHX7qB5MnJ3CmAdNJnTTTHk/pvp9x Zzua1baxELnZUDSngBD7ffc585+CcNPFxACrcTipUJLOHXNoW0HCHSLfoiOxDUHPvAdx SLpg== 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=8ZGYbHjMMJD2KtxpoYl71o8+mthDszQIMORViCtN+H4=; b=nuf5I/zPgWJJWtCUP+5JPj81zhjHkm4gjCgNofRGEk3Skv8awvStT2Bp19qenSiiHC sxPsrxEBTL4J7FtaFJREwq2FWqB8HesSaRO/l355hyuYjKgiYxrVtAXsIupWgItwtFsP MZoXe2OPQO6s5A33EG7cpyhzxgs0Oo1632KYR7ybpwc/Zci1AsKruNcgJpCL0aHwuMgb ev7FNTGNJbGSJZAsS3xru9GpCU5ZyCjKJq303VgUYSXPYzLVSqhbKlr2tMuJlLrx00oD c4MXGZ8+iVOtcPmooKI2ud2j8r9mUqyN/rz1zkDbslmkMQljlkOYC6pEUyMY1ajyZsQj idEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=TEYdT2ej; 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 q13-20020a170902f78d00b00186658e50desi1192052pln.465.2022.11.30.04.59.17; Wed, 30 Nov 2022 04:59:28 -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=TEYdT2ej; 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 S235084AbiK3Muo (ORCPT + 84 others); Wed, 30 Nov 2022 07:50:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbiK3Mum (ORCPT ); Wed, 30 Nov 2022 07:50:42 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FD9B3D90E; Wed, 30 Nov 2022 04:50:41 -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 515121F8D4; Wed, 30 Nov 2022 12:50:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1669812640; 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=8ZGYbHjMMJD2KtxpoYl71o8+mthDszQIMORViCtN+H4=; b=TEYdT2ejsqxumwVeGAtrs/wb5t8Z7WykQ86E9LmitKLafwNZ3z4nIFifyvnAoyM2lSntZk 4ETEFoMHzkEz3lOxQ/oZ49G7lqHhgEx9C8HKAAVubxMqpZ9B4BG6KeTAM+reO31e5xywk0 aevyUeC9LoRpjosj/FGvwSFKdixPZHk= 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 346E21331F; Wed, 30 Nov 2022 12:50:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qHV9CqBRh2O3SgAAMHmgww (envelope-from ); Wed, 30 Nov 2022 12:50:40 +0000 Date: Wed, 30 Nov 2022 13:50:39 +0100 From: Michal Hocko To: Johannes Weiner Cc: Hugh Dickins , Andrew Morton , Linus Torvalds , Shakeel Butt , Stephen Rothwell , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: remove lock_page_memcg() from rmap Message-ID: References: <20221123181838.1373440-1-hannes@cmpxchg.org> <16dd09c-bb6c-6058-2b3-7559b5aefe9@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Tue 29-11-22 14:08:34, Johannes Weiner wrote: [...] > Short of further restricting the pages that can be moved, I don't see > how we can get rid of the cgroup locks in rmap after all. :( :( > We can try limiting move candidates to present ptes. But maybe it's > indeed time to deprecate the legacy charge moving altogether, and get > rid of the entire complication. > > Hugh, Shakeel, Michal, what do you think? I do agree with Hugh that going part way will likely not solve the general maintenance burden. I am OK with dropping the functionality but we should at least add a big fat warning if anybody wants to enable memory.move_charge_at_immigrate. If there are any workload which absolutely depend on the feature (which would make them impossible to migrate to v2 btw) then we want to hear about that and address in some way. An incremental deprecation by limiting to present ptes sounds like this semantic change might get overlooked for an extended time. -- Michal Hocko SUSE Labs