Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp928646rdb; Wed, 1 Nov 2023 06:56:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuTPoQTBAjEo4z2Cw6uzws2pcL3bVxk3/v4Dz5cqE5o1sPcfl/vr3kijSY6GP6Jm6XW1Xe X-Received: by 2002:a17:90a:2f01:b0:27d:5588:b3ff with SMTP id s1-20020a17090a2f0100b0027d5588b3ffmr12389055pjd.4.1698847000819; Wed, 01 Nov 2023 06:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698847000; cv=none; d=google.com; s=arc-20160816; b=ul47qZW17T8JvoK5sAYYVa8YHSrYhI9Llu+UnQ1eIUcYddcehJqT43Ob495mAlZeuY MZHltMv+UBgAWMSt2hIsyza7RbkgiSWdsLmOR3/ivwgRFEZy+89KCgEpN0mCrXXKSmiI g4ealQWvfjA+BQ+dOiDzzzlSoRQENozG9/Tk8m9bwe16yRk0tt2jQ7g922iJJCQeg3/Q igguk+ulDbje6xy0j96vstL3HxRBI5p2NPLkkRihrsEmrV1nLff2rv2HL4JzgMycctT7 bn7RmUFBJWXj8aXNA4xmOTk9MEKhzgKAPWen5dyvAkpTMlPkiknl7SqW1vvwgfvaXbWm xwSw== 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=x8Km4F84mpULmElKD15zKPWF2o5JoVpwXMz8cd2khw4=; fh=+fj0F5v39ERqEt0Dveu6HUuaMf1C3dDOgQFowPRzOxA=; b=XMdok9YtHoqBvemTBRFcM0ECmqy3zLDKAK5Iwse/ZgQBoU2RBzpSQAUwFTebwJaCph JIVv01Yn+PYXG7888C0EfuFpRzsFUPE0uGNn51cpJaRXSsh6J3AJ/r5kKrZEuqOWYdFC p4GAjTaf1oVscAvgaBb/w1PeHVt6XqjquGpzmf/H6GJcHc5yTKLQvlL6AZa1TiYLaTcp Ab/daThTqbzo82gcww8U7R64WYCH6qqXfEo7KtgZah8W80i5BoWE9l0o+4kZm61OKxnU pMBrVQZact2OJYp8/f3nX8iSrJQTWAxE8P+Xqc15FzrHybbN0mbrH7IKedwaLRAW1TMu IFgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=us3V77aq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id oc7-20020a17090b1c0700b002803e634e13si934111pjb.151.2023.11.01.06.56.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 06:56:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=us3V77aq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 0FFE580A9DDC; Wed, 1 Nov 2023 06:56:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232094AbjKAN4X (ORCPT + 99 others); Wed, 1 Nov 2023 09:56:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231739AbjKAN4V (ORCPT ); Wed, 1 Nov 2023 09:56:21 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85EB6110; Wed, 1 Nov 2023 06:56:15 -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-out2.suse.de (Postfix) with ESMTPS id 2879C1F74A; Wed, 1 Nov 2023 13:56:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1698846974; 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=x8Km4F84mpULmElKD15zKPWF2o5JoVpwXMz8cd2khw4=; b=us3V77aqb0oYcroJxa/NDISGJQJvGqjB4Llh44TPoJpDPSuAyRAeXc4Z0a86f38p9S09Pg RpgLws3zQ1IvWALtBg6sEkVFlkJ94WA7n+IZGVzQt5v/RN4JuzpEt/rvxSBbr0+fKF95G9 R09UJn9lh7Gs7R8FcbYL602MPq3gyoU= 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 0441F13460; Wed, 1 Nov 2023 13:56:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GLyVOP1YQmUQfAAAMHmgww (envelope-from ); Wed, 01 Nov 2023 13:56:13 +0000 Date: Wed, 1 Nov 2023 14:56:13 +0100 From: Michal Hocko To: Johannes Weiner Cc: 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, Gregory Price Subject: Re: [RFC PATCH v3 0/4] Node Weights and Weighted Interleave Message-ID: <3ilajsu7rlatugtmp63r6ussfdhqoxokj2vgmx3ki3zmx7f5po@i64b27upx5qx> References: <20231031003810.4532-1-gregory.price@memverge.com> <20231031152142.GA3029315@cmpxchg.org> <20231031162216.GB3029315@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231031162216.GB3029315@cmpxchg.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Wed, 01 Nov 2023 06:56:36 -0700 (PDT) On Tue 31-10-23 12:22:16, Johannes Weiner wrote: > On Tue, Oct 31, 2023 at 04:56:27PM +0100, Michal Hocko wrote: [...] > > Is there any specific reason for not having a new interleave interface > > which defines weights for the nodemask? Is this because the policy > > itself is very dynamic or is this more driven by simplicity of use? > > A downside of *requiring* weights to be paired with the mempolicy is > that it's then the application that would have to figure out the > weights dynamically, instead of having a static host configuration. A > policy of "I want to be spread for optimal bus bandwidth" translates > between different hardware configurations, but optimal weights will > vary depending on the type of machine a job runs on. I can imagine this could be achieved by numactl(8) so that the process management tool could set this up for the process on the start up. Sure it wouldn't be very dynamic after then and that is why I was asking about how dynamic the situation might be in practice. > That doesn't mean there couldn't be usecases for having weights as > policy as well in other scenarios, like you allude to above. It's just > so far such usecases haven't really materialized or spelled out > concretely. Maybe we just want both - a global default, and the > ability to override it locally. Could you elaborate on the 'get what > you pay for' usecase you mentioned? This is more or less just an idea that came first to my mind when hearing about bus bandwidth optimizations. I suspect that sooner or later we just learn about usecases where the optimization function maximizes not only bandwidth but also cost for that bandwidth. Consider a hosting system serving different workloads each paying different QoS. Do I know about anybody requiring that now? No! But we should really test the proposed interface for potential future extensions. If such an extension is not reasonable and/or we can achieve that by different means then great. -- Michal Hocko SUSE Labs