Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp444206ybv; Wed, 19 Feb 2020 02:47:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxSv1tPQ77vWt+m7E5WqFrhT3U71iVIZZUQKdK+/G03tyy7XRnQZ9X0UakV5DOFpUuY9l6H X-Received: by 2002:aca:4f96:: with SMTP id d144mr4273352oib.172.1582109276976; Wed, 19 Feb 2020 02:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582109276; cv=none; d=google.com; s=arc-20160816; b=R+9hgUThg+8RCixT3EKBPRlOdEkU4Rqe07dE0g8Nn4svuL9V/8IpsQ6bm424PXi7/9 ij7WZ1aPSiOlAkLs/eXdPkBh7Jh8tcu8HIvffX0yX2hjNYBskWPpTyUoYmpKtj1mqr+B 4Jxzf+Zhv4zoF58GpFHNbXxBPCCG0gYTDYTgmYQHyFEtdsN73kY2mbUYU0a44vBsMhwR eLLhQixxR5wcAeqfL0Cdmj0jp4W8EL/etHDILw9ki1CHHmrNiImKpT7QtTz1oFiw/bEn zbRT66J0LJH4X4yiTnc681ejNXlHayCXN5IsYSep4F57/wIgKaTnB/YafQhoih9EV/tf O86Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=W3/qYkFbzFo2NVbdX+49W3GOHByb3JfdN3SRa+BikJY=; b=plyFJECNXpjzf7Igu4Vzh2cBJtg0WEX+QCWQHSOXPIDBuWZ+xzTgsshBCQn4Ew0i+C Ac6tRh8TqycmKYLSzWqTK6MlEyTuUu4bRg/v1Zd0NcImBKfUYMp5DD7r3PzKL8713s/j HRMgUs8UWtYU+cevbdmTYXo1yDobKr96cZWhM9hK/aZs+CLMv1V9J07DTewgBKe3TeZj msQXQV+VgqgfpRxl/HLXaIdVaLIw83OLWjy/Ph9JG0t5PI2/X97fKHrFeWj65KrVaFVp bqr30N7d7BjYu5mQSRxEbNws1O/lXOhKSwHvLsGchK1sMpiBlgmPsimq3iAW7Nx1Lj8a +MIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a28si1047568otd.257.2020.02.19.02.47.43; Wed, 19 Feb 2020 02:47:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726725AbgBSKrL (ORCPT + 99 others); Wed, 19 Feb 2020 05:47:11 -0500 Received: from foss.arm.com ([217.140.110.172]:46116 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726484AbgBSKrL (ORCPT ); Wed, 19 Feb 2020 05:47:11 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A53EFFEC; Wed, 19 Feb 2020 02:47:10 -0800 (PST) Received: from [10.0.2.15] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 235F63F6CF; Wed, 19 Feb 2020 02:47:09 -0800 (PST) Subject: Re: [RFC] Display the cpu of sched domain in procfs To: Chen Yu Cc: Linux Kernel Mailing List , Peter Zijlstra , Ingo Molnar , Juri Lelli , Vincent Guittot , Mel Gorman , Tony Luck , Aubrey Li , Tim Chen , Dave Hansen , Borislav Petkov References: <787302f0-670f-fadf-14e6-ea0a73603d77@arm.com> From: Valentin Schneider Message-ID: <4fb2735a-4e2f-d913-a4ee-4a02f2b0c6b3@arm.com> Date: Wed, 19 Feb 2020 10:46:52 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/02/2020 10:00, Chen Yu wrote: >> Now, if you have a userspace that tries to be clever and wants to use this >> information then yes, this isn't ideal, but then that's a different matter. > The dmesg might be lost if someone has once used dmesg -c to clear the log, > and the /var/log/dmesg might not always there. And it is not common to trigger > sched domain update once boot up in some environment. > But anyway, this information printed by sched_debug is very fertile for knowing > the topology. >> I think exposing the NUMA boundaries is fair game - and they already are >> via /sys/devices/system/node/node*/. > It seems that the numa sysfs could not reflect the SNC topology, it just has the > *leaf* numa node information. Say, node0 and node1 might form one sched_domain. Right, but if you have leaves + distance table, then userspace can try to be clever about it without being exposed to scheduler innards.