Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp621987rdf; Fri, 3 Nov 2023 09:59:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcpIAjUrFPjzHTImO8HFbmQp/WW7YLV33baj4sj1Xe8WWKwgyK8TpcybWPkpC9J4enU11e X-Received: by 2002:a17:902:f312:b0:1cc:29ef:df8d with SMTP id c18-20020a170902f31200b001cc29efdf8dmr14750791ple.63.1699030752211; Fri, 03 Nov 2023 09:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699030752; cv=none; d=google.com; s=arc-20160816; b=dLWl7NEvhUcjDEbI+/Jc+sPZdBv6bwVrB2pNrtUqFONxBjAtPj+M5yIxdaeR1ARNSu SMqX7HPnvVrvqwzuNmT37Pc5tvxMMIm+2UOiJc+iup+Qx1YrFBU1Y6PPOt7eqHIo/uyd EEdyrE8Mb/shRJSS9YH8qrYWMy9srWHeb98U7Y6GaRdUFh3Oj7xBaMPiviFERPBdHCf2 E9xJznZMxJIQGF1/+cLDta/T0O9J0c+gD1bqWeCMc3aLNejf8dJoCOqbw3vBOSqpjH72 vr44q/JFW7F0iNixQ/r9E7aK0JZH6/eDpVPtzyeAJelFIFSskcdj1URJA+Elj9cWIPu7 A54Q== 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=uksxNlyaCkPKE2rCxUqHpdRT6fah3eDwts+mbY5jJ80=; fh=69xE6aTFDK8ldYwWkp0RFdPiRhsMoPZOYNUHWFIPs+8=; b=oK2FXw3ehiNsJ+zBx4VdEjW/nWgtFwDjMDoputPO43G3yBq6OUtw65LFA/KhHyal85 NN1Z+z08kHB3dKadSOsNRrZu0exfZsjGBjnPPujP2py2Qa45BdUJ72tSuowOeeEH4s7P rx96Pq2ApHKP4CW+dpXuUzAMGFeh4B5kd0kDI1rdFNpM2yt2GP8iehYUmNI+/veDYoEd 4g+SHt2RDiyyvv/XeePivIi5B5zJC7nHgq1lKQ6xmMWzRQ1+N6a5rRuQCaZIG/tnv9Gl 2OS8Qurr9vb46qBipuX0fvRnxkjRhRXwCf5mWzKPVYzwLD24PQAbRk9HdONCu/83n1i9 LZrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=tFRHMHyI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 6-20020a170902c10600b001ca24970584si1799222pli.572.2023.11.03.09.59.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 09:59:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=tFRHMHyI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2231683C1E3A; Fri, 3 Nov 2023 09:59:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345760AbjKCQ7J (ORCPT + 99 others); Fri, 3 Nov 2023 12:59:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjKCQ7I (ORCPT ); Fri, 3 Nov 2023 12:59:08 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ADCA1BC; Fri, 3 Nov 2023 09:59:02 -0700 (PDT) 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 E3027215EF; Fri, 3 Nov 2023 16:59:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1699030740; 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=uksxNlyaCkPKE2rCxUqHpdRT6fah3eDwts+mbY5jJ80=; b=tFRHMHyImjbSl76qgnGYfaGAQjIf2+RKyoSrDKE6JYpTj3dCCULp5IbO+HPk9WXCt3fUCF Tma8lM/OV+12rR+rWRNAoHDmvTAo+dQyglzQIRQYyylAI0I5KBZMBZ+4gjZCW/UncW3qeC +/gos/UZoYDWbzoJMfms4apKWMlAb2g= 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 BBAFB13907; Fri, 3 Nov 2023 16:59:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id W9LcKtQmRWVuVgAAMHmgww (envelope-from ); Fri, 03 Nov 2023 16:59:00 +0000 Date: Fri, 3 Nov 2023 17:59:00 +0100 From: Michal Hocko To: Gregory Price Cc: Johannes Weiner , Gregory Price , linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, linux-mm@kvack.org, ying.huang@intel.com, akpm@linux-foundation.org, aneesh.kumar@linux.ibm.com, weixugc@google.com, apopple@nvidia.com, tim.c.chen@intel.com, dave.hansen@intel.com, shy828301@gmail.com, gregkh@linuxfoundation.org, rafael@kernel.org Subject: Re: [RFC PATCH v3 0/4] Node Weights and Weighted Interleave Message-ID: References: <20231031152142.GA3029315@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 03 Nov 2023 09:59:11 -0700 (PDT) On Thu 02-11-23 14:21:14, Gregory Price wrote: [...] > Only thing I'm not sure of is what happens if mempolicy is allowed to > select a node that doesn't exist. I could hack up a contrived test, but > i don't think the state is reachable at the moment. There are two different kinds of doesn't exist. One is an offline node and the other is one with a number higher than the config option allows. Although we do have a concept of possible nodes N_POSSIBLE I do not think we do enforce that in any user interface and we only reject nodes outside of MAX_NODE. The possible nodes concept is more about optimizing for real HW so that we do not over shoot when the config allows a huge number of nodes while only handful of them are actually used (which is the majority of cases). -- Michal Hocko SUSE Labs