Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp138988rdb; Tue, 5 Dec 2023 00:36:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+K+VyqpRmueTaZa9tYN3Rj8LPmwsrnaX7ZqvPmFmfqUDohvH7KE9DqSicnuDswdfmakP4 X-Received: by 2002:a05:6358:5915:b0:170:912:bb55 with SMTP id g21-20020a056358591500b001700912bb55mr6568081rwf.27.1701765389467; Tue, 05 Dec 2023 00:36:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701765389; cv=none; d=google.com; s=arc-20160816; b=wZ3O7/dGF364sXtsnxOhu/yHUyn98pWXe4mUjaiAdpUQ6wLwZ+v3kCtPDUis0Rihc6 phZdBAhU+c/UOAUGva9OhBGQNijn3HPhcC1Q7QMpTZSpVTKnYItI6YD9lExg3mfL36Ak lMSuqHAAYlsrRL+KJhu0tsRsrgXoPN2NAlJvPs36EF+RIwYK3gnxqy62yivlGtHZSFJw 01YDcVg1HYMA1vO0fox6PSws4L9Y0ICcaaJqkR/qH36tke7qUTbNKV5OzyxHioZPTMa6 s7cZWSW40AKBEYNjxgRLUOV/4vvu377NV8ne/g4w6C1fx2jXp+Bcc9+gJrk8lLgJfcul kg+w== 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; bh=vRWAiopwzRYZyOYreFDBf+wR/mSQ0rqMs6RPBaK9yTg=; fh=zzuvl6PGh0NSfqnDmN+T+TiAmasgY5+VJUZYhbbB2mU=; b=SlO50zCSx0sGjjejOUsorIseDcYsIAYjxx6Z8aNH4SAAAvQAIB7jrgDhNSiMYd2jEa D19BzCvCegPwnMBbz9x1DgIg/3MFvfrEEggPVgMCKr37G3Gwqil9iddr4rlKgJh9D1j0 5SBjhMkmFeVtf7sUzq4zcnPaF7OwuQY5dqgybBpNdYMfVfRsfvLEqf3WRVBW6eVHa/Pj 81MYzKvOrwj5KFyYTRDuooa9ohjPzuig9TzB4OImSMBiVFxLCyl57FmJ2v3JJuh9wdrQ G2KqYe4lZGxwf3w1Ee1Cxw63mmxPQlgf4q4uekzs+pu/xSWd36JrNvZFxulVHc/fzViM GbHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id x13-20020a63fe4d000000b005c1cd1ba05csi8976813pgj.240.2023.12.05.00.36.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 00:36:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (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 agentk.vger.email (Postfix) with ESMTP id 23A768089868; Tue, 5 Dec 2023 00:36:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346386AbjLEIgE (ORCPT + 99 others); Tue, 5 Dec 2023 03:36:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344856AbjLEIfk (ORCPT ); Tue, 5 Dec 2023 03:35:40 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF3D69C; Tue, 5 Dec 2023 00:35:46 -0800 (PST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B5CCD21E40; Tue, 5 Dec 2023 08:35:44 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id A793E136CF; Tue, 5 Dec 2023 08:35:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 8JPnKODgbmWjPAAAD6G6ig (envelope-from ); Tue, 05 Dec 2023 08:35:44 +0000 Date: Tue, 5 Dec 2023 09:35:44 +0100 From: Michal Hocko To: Srinivasulu Thanneeru Cc: aneesh.kumar@linux.ibm.com, linux-cxl@vger.kernel.org, linux-mm@kvack.org, dan.j.williams@intel.com, hannes@cmpxchg.org, hasanalmaruf@fb.com, haowang3@fb.com, ying.huang@intel.com, gregory.price@memverge.com, tj@kernel.org, hezhongkun.hzk@bytedance.com, fvdl@google.com, john@jagalactic.com, emirakhur@micron.com, vtavarespetr@micron.com, Ravis.OpenSrc@micron.com, Jonathan.Cameron@huawei.com, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [EXT] Re: [RFC PATCH 0/2] Node migration between memory tiers Message-ID: References: <20231130220422.2033-1-sthanneeru.opensrc@micron.com> <1db561a9-6984-418d-9305-a2a5ece93696@micron.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1db561a9-6984-418d-9305-a2a5ece93696@micron.com> X-Spamd-Bar: +++++++++++++++++++++ X-Spam-Score: 21.50 X-Rspamd-Server: rspamd1 Authentication-Results: smtp-out1.suse.de; dkim=none; spf=fail (smtp-out1.suse.de: domain of mhocko@suse.com does not designate 2a07:de40:b281:104:10:150:64:97 as permitted sender) smtp.mailfrom=mhocko@suse.com; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=suse.com (policy=quarantine) X-Rspamd-Queue-Id: B5CCD21E40 X-Spamd-Result: default: False [21.50 / 50.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_FAIL(1.00)[-all]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(3.00)[0.999]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_QUARANTINE(1.50)[suse.com : No valid SPF, No valid DKIM,quarantine]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[]; NEURAL_SPAM_LONG(3.50)[1.000]; RCPT_COUNT_TWELVE(0.00)[20]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(2.20)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 05 Dec 2023 00:36:26 -0800 (PST) On Tue 05-12-23 01:26:07, Srinivasulu Thanneeru wrote: > > > On 12/4/2023 9:13 PM, Michal Hocko wrote: > > CAUTION: EXTERNAL EMAIL. Do not click links or open attachments unless you recognize the sender and were expecting this message. > > > > > > On Fri 01-12-23 03:34:20, sthanneeru.opensrc@micron.com wrote: > > > From: Srinivasulu Thanneeru > > > > > > The memory tiers feature allows nodes with similar memory types > > > or performance characteristics to be grouped together in a > > > memory tier. However, there is currently no provision for > > > moving a node from one tier to another on demand. > > > > Could you expand on why this is really needed/necessary? What is the > > actual usecase? > > Hi Michal Hock, > > Following two use-cases we have observed. > 1. It is not accurate to group similar memory types in the same tier, > because even similar memory types may have different speed grades. Presumably they are grouped based on a HW configuration. Does that mean that the configuration is wrong? Are you trying to workaround that by this interface? > 2. Some systems boots up with CXL devices and DRAM on the same memory-tier, > we need a way to move the CXL nodes to the correct tier from the user space. Again, could you expand a bit more and explain why this cannot be configured automatically? -- Michal Hocko SUSE Labs