Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp980902pxb; Fri, 22 Apr 2022 15:52:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaYx9xFIJjGzD44BgeSbU1sdQyOr9DAqSu5lEt1rUfwMotl/stx+0lDBCZgFCmzcbeRnHw X-Received: by 2002:a17:902:8608:b0:158:c532:d8b2 with SMTP id f8-20020a170902860800b00158c532d8b2mr6851358plo.46.1650667942922; Fri, 22 Apr 2022 15:52:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1650667942; cv=pass; d=google.com; s=arc-20160816; b=Rvv0naMYDEr24KdUjey4lZUKCjHBDiDJAmzLbhUjWWIgh9fQLCyYqkU3qLd5VMBfos tV99llSg5vMCn7cskqaZuBtyj3VpuiBtNN4QAi6uboYqKlKEkHOeUD1+914lwazCA/4F 5GLsNVY7HShimcmGhor4Vskt7VVSh/dmUCf+o8rcIREaoS8jfSIxCdmfw1yf1uZIPCtm nBppWeRziZIOTtGXGSZS39kijbx0jsueIB8x5VII6r5jEMoZFgWydCb/Wlo5APYpMXKz fraasy4pvpP7D7uMtAXh3Vm1eTpy94sr6ILIF7M7q6tFjeH//z3zyWDRZHaxDV7epBhW 5/1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=BMeE3theriLPeHe7OsqT9QG1VfC7A6W9rVpn1syfKUA=; b=KC1HVSNGpZzrTqKkjXV+HXWYtUJe3mqpfeg1kcYOYJIGwc3irRrQyJC1BUeKxTIChH cpJwgTfOGqhN2hIjG418UKgLGpxVZJ+xseQS9zC8pRUC3VID7/OpmUEmSV62v9eBciue otPb5xTww+cUbIQ0/5e1wMrZmqQDasOCD9ewhDDu7BqmafqVE3dJTc59KNdSlHned+kF Obq8xJ2NDg2e5NTo5Lca22CNkmb50qiaz/Id38Mpndd+uKTLyiumNkx5e8d5D5lCOe9L +rHpWXhuTBZj6KRchfaxrqCLy1S8zybQ6P1b7j6hi/oo/lEHgQNZ3cjg55uDR6FEKBUm Lyvg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@stgolabs.net header.s=dreamhost header.b=P+8d01HV; arc=pass (i=1); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v20-20020a631514000000b003a292c2149asi10015283pgl.164.2022.04.22.15.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:52:22 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@stgolabs.net header.s=dreamhost header.b=P+8d01HV; arc=pass (i=1); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1647B409D3E; Fri, 22 Apr 2022 13:42:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240031AbiDRQ7V (ORCPT + 99 others); Mon, 18 Apr 2022 12:59:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346874AbiDRQ7G (ORCPT ); Mon, 18 Apr 2022 12:59:06 -0400 Received: from bee.birch.relay.mailchannels.net (bee.birch.relay.mailchannels.net [23.83.209.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94E3C2DF4 for ; Mon, 18 Apr 2022 09:54:46 -0700 (PDT) X-Sender-Id: dreamhost|x-authsender|dave@stgolabs.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C10FD820C0A; Mon, 18 Apr 2022 16:45:08 +0000 (UTC) Received: from pdx1-sub0-mail-a254.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DDF1C820A27; Mon, 18 Apr 2022 16:45:07 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1650300308; a=rsa-sha256; cv=none; b=cyyQ+JSYoXJyjM2Ws0QKaUM1dGyzFqXsSCvkwYc550j2MJ3BkhEWHD7IoIA+Ge+CiH2BOZ ntIiFuwhnuADdPnu9irQldc2Jen0rjhvBNXHyCpG3PEnaX8kVNx2RyS/oaZbPYJ/Jsq1if iul6AVqS+QtOWGLQdWQA73bTBdRxs0NyPaXeZ8OJM1JJnZ2/hI1EB2uehs5aL26sgisTJh y5rlAEFITavdHxb0T60kbmfNwoVleI7np+lUOiHcvVd/94cBmJZuO2UKiCN1FOrzhTwAue iX0Kfrf2a6gT5AziHprtyOT45tIuyI7MuCUcnWPxsy48JyT0rsB9Mimu8utf3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1650300308; h=from:from:reply-to:subject:subject: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:dkim-signature; bh=BMeE3theriLPeHe7OsqT9QG1VfC7A6W9rVpn1syfKUA=; b=dHwCsVeIZYfExOX0wY9yHnIz3FKYSqPZgzf4hdHQzAGFwIPq2jfzkOIR2tmZOF5YSJtts7 g0CE+G7kNVcqLAgul++tllb0ijhTjJYIrjew6gMRjee/FOeI+MuQ8QfLst2yfJIwnvPSQc i/S+2D3wtR8k6IjVhir6Y68JqyT2slLh3UAZFflGjcjBoQU57W5bD6I95WNo4k3S1zTH+O XoRst9PN0oUjUTxKYFbGsTTvDAJvJvpC/gyKOwAlB6INfholvPRKNDEGLqbrOH6n7BW3NI ODshuNFs8UYAw8V6T2OxjDbITE2mZC9xySrfD3D/pQmJGKgjJaMWy0XhxXQGQg== ARC-Authentication-Results: i=1; rspamd-6969874869-45jtd; auth=pass smtp.auth=dreamhost smtp.mailfrom=dave@stgolabs.net X-Sender-Id: dreamhost|x-authsender|dave@stgolabs.net Received: from pdx1-sub0-mail-a254.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.125.123.25 (trex/6.7.1); Mon, 18 Apr 2022 16:45:08 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|dave@stgolabs.net X-MailChannels-Auth-Id: dreamhost X-Cooing-Trouble: 2c2a24835007ca77_1650300308401_362394076 X-MC-Loop-Signature: 1650300308401:1218719460 X-MC-Ingress-Time: 1650300308400 Received: from offworld (unknown [104.36.29.107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dave@stgolabs.net) by pdx1-sub0-mail-a254.dreamhost.com (Postfix) with ESMTPSA id 4Kht8L4SLTz1QS; Mon, 18 Apr 2022 09:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stgolabs.net; s=dreamhost; t=1650300307; bh=BMeE3theriLPeHe7OsqT9QG1VfC7A6W9rVpn1syfKUA=; h=Date:From:To:Cc:Subject:Content-Type; b=P+8d01HVOoeXDKa157TzKSvtsBjKR7DCshqwRA8ybsl6Hix/9wm7F7nhu7sAWC1MF CJQ/L3xuLnFtOXn440u6xjaVDJVWhy/u9iwZ1zu/8+x1MuSRX5YDMDo3VvtJqBlisI BTywpOC5EOqLwQwpzeBfk75A91cETxE+jkVAUdjnlr1VMyHaFpOeHu3tTGPeUA8fS7 b/UE3WwBE531gJTJUfGzrbFg+OIYnFQIuJjXv+KaFvlKuZSaFNmasKR1Pur9T1+8MJ y9qcDSQC/xnPcs+YjGNjMSNpl2Dw4LYBwYkadXtYTfPvu5EbphdCQNzIxVDnBVrwfF RtQCVezcQwghQ== Date: Mon, 18 Apr 2022 09:45:03 -0700 From: Davidlohr Bueso To: Dave Hansen Cc: linux-mm@kvack.org, mhocko@kernel.org, akpm@linux-foundation.org, rientjes@google.com, yosryahmed@google.com, hannes@cmpxchg.org, shakeelb@google.com, dave.hansen@linux.intel.com, tim.c.chen@linux.intel.com, roman.gushchin@linux.dev, gthelen@google.com, a.manzanares@samsung.com, heekwon.p@samsung.com, gim.jongmin@samsung.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/6] mm/migrate: export whether or not node is toptier in sysf Message-ID: <20220418164503.jfips3aiwhnlfjrq@offworld> Mail-Followup-To: Dave Hansen , linux-mm@kvack.org, mhocko@kernel.org, akpm@linux-foundation.org, rientjes@google.com, yosryahmed@google.com, hannes@cmpxchg.org, shakeelb@google.com, dave.hansen@linux.intel.com, tim.c.chen@linux.intel.com, roman.gushchin@linux.dev, gthelen@google.com, a.manzanares@samsung.com, heekwon.p@samsung.com, gim.jongmin@samsung.com, linux-kernel@vger.kernel.org References: <20220416053902.68517-1-dave@stgolabs.net> <20220417034932.jborenmvfbqrfhlj@offworld> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20201120 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 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 Mon, 18 Apr 2022, Dave Hansen wrote: >On 4/16/22 20:49, Davidlohr Bueso wrote: >> This allows userspace to know if the node is considered fast >> memory (with CPUs attached to it). While this can be already >> derived without a new file, this helps further encapsulate the >> concept. > >What is userspace supposed to *do* with this, though? This came as a scratch to my own itch. I wanted to start testing more tiering patches overall that I see pop up, and wanted a way to differentiate the slow vs the fast memories in order to better configure workload(s) working set sizes beyond what is your typical grep MemTotal /proc/meminfo. If there is a better way I'm all for it. > >What does "attached" mean? I'll rephrase. >Isn't it just asking for trouble to add (known) redundancy to the ABI? >It seems like a recipe for future inconsistency. Perhaps. It was mostly about the fact that the notion of top tier could also change as technology evolves. Thanks, Davidlohr