Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp753838pxp; Fri, 11 Mar 2022 14:13:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyB/rV7ysDbFOJ78CWN96BtttdU37g89D6Akr7EVlUnrrIjfB/EEMT/HSPIRwmRWUwm5Lj/ X-Received: by 2002:a17:90a:7f84:b0:1bc:aba8:f281 with SMTP id m4-20020a17090a7f8400b001bcaba8f281mr12944337pjl.101.1647036837978; Fri, 11 Mar 2022 14:13:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647036837; cv=none; d=google.com; s=arc-20160816; b=k3wboZt0LgqEfaXJ4IwknZhBvD0BohaDowfSEWPPb0dIw8aaBxshmO5RxQkN5KxeMn 8knSOoib7b+jJaMghVUJNMZP+PheJlf7bXkA9IF07l/iAzqJNOJALXX8wuzjHgkHLovt lQ88M3rT7/YqOoyKjzc5O2YBchk0eXDvorO3NK101L8duRo7ePJOUuZlZacUQy9iZ+Lp PM+oHjbqt8BHs0AUSuJiS5RITPIQ0Ta5xRDuO/9lYWyFKjv/SNvlUz/Ph5AXbAtPqrwO ZJX70uEUz7Ia2fwCx3o3BrJ1T8OJ0bK+18+EjrovF12/IQx2d2sKW0sEx4xW5OGxZJ0P Ojrw== 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 :dkim-signature; bh=AAebBo2Ox/zCWG7q1Ozd2d4et9J9l1aqgs2UCakv6jo=; b=o6uFzFFX0WDyXMPSd/BgFKFkKX6PYWZBveUNwtzPi7i1DXbv0PBt613D+MZ8bp6ERH NBeg53FcFz059VawPTTW3JUZ04Jlahtqv02AqCJbTJXS0B7b19VhekrBZAzGGQ5FCdyC 5bpI/vjUqXy7hmG1vJ/EMaPVCRYRyez/5othyfL2/rK92hHxYwcnfuYTLbw8iLCgUOo+ fvP94m7O4jOoGwmcOq0O5MENhWEwih9sMS3POFShfxYHzGRbrOf/LFRTD5plGpKu12iN 8kqbHugkvQIIdBoRDU56pHLhWWfjEsDYFEgxFOjjtoNcfAaLCSb/0M6fCEFNWN0GS49s v2Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ooLRvzEn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=ZTgzHVxn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id pc5-20020a17090b3b8500b001bf52632336si10527130pjb.9.2022.03.11.14.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:13:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ooLRvzEn; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=ZTgzHVxn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4F26D214158; Fri, 11 Mar 2022 13:23:08 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347485AbiCKJZJ (ORCPT + 99 others); Fri, 11 Mar 2022 04:25:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347482AbiCKJY5 (ORCPT ); Fri, 11 Mar 2022 04:24:57 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EFFDECC63 for ; Fri, 11 Mar 2022 01:23:48 -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 BB322218FB; Fri, 11 Mar 2022 09:23:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646990626; 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=AAebBo2Ox/zCWG7q1Ozd2d4et9J9l1aqgs2UCakv6jo=; b=ooLRvzEnI4KmFKpBb9Pc+ki9faKRUrGslNUu+7nyxD19DSn5pgr189oGyTZz5oFFrlH6D4 +TtkDOGMRtLBfcBc7wOhxWtdhS6uiCI3gF6yDcPTSH25fFKt3EO7tYUYsaTg3ly7U1etB+ 22xzAPqL0K84d/GWooPfI4GG8x6DH18= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646990626; 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=AAebBo2Ox/zCWG7q1Ozd2d4et9J9l1aqgs2UCakv6jo=; b=ZTgzHVxnl1QG3AfrwIvrsL7F43IP0UancSHTbVFeKXYRTqqkqKjysVUu4LNi5COkDsbFTj A2ja3YO/jD0yWtCw== 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 45B1913A82; Fri, 11 Mar 2022 09:23:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id K14HDiIVK2KPVAAAMHmgww (envelope-from ); Fri, 11 Mar 2022 09:23:46 +0000 Date: Fri, 11 Mar 2022 10:23:44 +0100 From: Oscar Salvador To: Andrew Morton Cc: Dave Hansen , "Huang, Ying" , Abhishek Goel , Baolin Wang , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm: Only re-generate demotion targets when a numa node changes its N_CPU state Message-ID: References: <20220310120749.23077-1-osalvador@suse.de> <20220310183951.cb713c6ae926ea6ea8489a71@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220310183951.cb713c6ae926ea6ea8489a71@linux-foundation.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, Mar 10, 2022 at 06:39:51PM -0800, Andrew Morton wrote: > What I'm not getting here (as so often happens) is a sense of how badly > this affects our users. Does anyone actually hotplug frequently enough > to care? Well, I would not say it is critical, it just regresses the time hotplug operations take. How bad is that? I guess it depends. Memory hotplug operations are already slow per se, so I would say expectations are not that high. But it speeds up the process, that is for sure. e.g: In a system with 144 CPUs and 2 Numa-nodes, set_migration_target_nodes() gets called exactly 144 times at boot time(one per every time a CPU is brought up), where only 2 calls would suffice, so you can get an idea. > If "yes" then I'm inclined to merge this up for 5.18 with a cc:stable. > Not for 5.17 because it's late and things are looking rather creaky > already. > > And I'll add a > > Fixes: 884a6e5d1f93b ("mm/migrate: update node demotion order on hotplug events") > > which is that patch's fourth such bouquet. Thanks Andrew! -- Oscar Salvador SUSE Labs