Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp247833rdb; Thu, 2 Nov 2023 02:28:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEx+95vvKXZbLMm+tc6kzLeisHa1p2JH1jPdEMrUHsMO7zrfhWD4EWkVgdldq3mClFq1N7K X-Received: by 2002:a17:903:1246:b0:1c7:495c:87e0 with SMTP id u6-20020a170903124600b001c7495c87e0mr22137538plh.37.1698917334234; Thu, 02 Nov 2023 02:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698917334; cv=none; d=google.com; s=arc-20160816; b=bnBx24iUL1hN9hqj0pz5UxTau3A32Z6pbw7D+OpTDpeua0yKOzPsY4GbqvxEOqlFZo Sfmg/CX/rSpE81Iy8aw3s/5xdUgsDpgjDz90uimb89hbrqyKkZHL0KGMmfBEQ6l01J8P zZC4ffMn/Abjf/gIsOLl+Eo1wFk1zN0iytYtvVv6CfFkSKzwIFaigam2por3/MIvfXLj 2cX9p8eraqbnFXJJF/qy0kWBrYA839Z31SHhWOPPydgFSKs8T81cK7oIExgZ6NVmTYvT aTiD0D8oOPCBX182493qt74XeCliQV++qGiOnHjBbZySj4gUUFapzb1WK74WCEi6vhYU 6OxQ== 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=PRT+wqE8dALDjQ1TdgpzGr2kiqVsb3O10DafcXTHWCE=; fh=h+Cf7dun7GC7pP7X5IsNYluy+2OLdgYH+37Z6EPuCag=; b=IEh/YK4Ro7QzU++Zu2Rgbke5pHIezsRpY8BD+2hoic8+yJL1tn7wVN7TBEO40kzP0y Ox0jgFFbfRqQe3CmZdDw2+HN2Zjkdj5YeavmoadeQIwN/Q1mAxDvw6XyErfQ5jq6bm2M 1EXy/C4Aa/LgRTXLmxZ1aojNlV6X/1Z0QDZsyRG+FBlvRPUB60DC9EtD3AUVnYH1CTAE Kun350wGtW0gzQwhTsdxEZ8qamiXWbsvCzXfWtAyTe7xPBRt9uLTJharyj+cTD0ZlZ8H Cvzw0W/PgMIrXbs2o6R9/nVWwye0G0XSYGT1WsEWdIAG6fQyIhDBzreYHLsfpzyfEPpA Na1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=WhSSPRcz; 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 y4-20020a170902e18400b001cc59201d1esi4537857pla.172.2023.11.02.02.28.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 02:28:54 -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=WhSSPRcz; 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 3490481F84EB; Thu, 2 Nov 2023 02:28:48 -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 S1345610AbjKBJ2X (ORCPT + 99 others); Thu, 2 Nov 2023 05:28:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbjKBJ2U (ORCPT ); Thu, 2 Nov 2023 05:28:20 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F902123; Thu, 2 Nov 2023 02:28:14 -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 ECE441F896; Thu, 2 Nov 2023 09:28:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1698917292; 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=PRT+wqE8dALDjQ1TdgpzGr2kiqVsb3O10DafcXTHWCE=; b=WhSSPRczbxtOiw0KCYhRZXLTwt/LcqWQok4kdcOEeBjXFy269VmoD6h1rMZ4GNmh3rgGpZ yN5cNemN8WhY2y61Fgv+ePyqnNwySMJCB/Sc3vErp/SYyd+xDcjo+ALdkBZv1QLCHYGhxL +YLELvxOfoNWcyKj3S+EJ64IARy86TA= 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 A700B138EC; Thu, 2 Nov 2023 09:28:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Jja6JaxrQ2XLaQAAMHmgww (envelope-from ); Thu, 02 Nov 2023 09:28:12 +0000 Date: Thu, 2 Nov 2023 10:28:11 +0100 From: Michal Hocko To: "Huang, Ying" Cc: Johannes Weiner , Gregory Price , linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org, linux-mm@kvack.org, 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: References: <20231031003810.4532-1-gregory.price@memverge.com> <20231031152142.GA3029315@cmpxchg.org> <87msvy6wn8.fsf@yhuang6-desk2.ccr.corp.intel.com> <87il6k1y82.fsf@yhuang6-desk2.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87il6k1y82.fsf@yhuang6-desk2.ccr.corp.intel.com> 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]); Thu, 02 Nov 2023 02:28:48 -0700 (PDT) On Thu 02-11-23 14:11:09, Huang, Ying wrote: > Michal Hocko writes: > > > On Wed 01-11-23 10:21:47, Huang, Ying wrote: > >> Michal Hocko writes: > > [...] > >> > Well, I am not convinced about that TBH. Sure it is probably a good fit > >> > for this specific CXL usecase but it just doesn't fit into many others I > >> > can think of - e.g. proportional use of those tiers based on the > >> > workload - you get what you pay for. > >> > >> For "pay", per my understanding, we need some cgroup based > >> per-memory-tier (or per-node) usage limit. The following patchset is > >> the first step for that. > >> > >> https://lore.kernel.org/linux-mm/cover.1655242024.git.tim.c.chen@linux.intel.com/ > > > > Why do we need a sysfs interface if there are plans for cgroup API? > > They are for different target. The cgroup API proposed here is to > constrain the DRAM usage in a system with DRAM and CXL memory. The less > you pay, the less DRAM and more CXL memory you use. Right, but why the usage distribution requires its own interface and cannot be combined with the access control part of it? -- Michal Hocko SUSE Labs