linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: ddutile@redhat.com (Don Dutile)
To: linux-arm-kernel@lists.infradead.org
Subject: sysfs topology for arm64 cluster_id
Date: Wed, 14 Jan 2015 11:41:17 -0500	[thread overview]
Message-ID: <54B69C2D.9050202@redhat.com> (raw)
In-Reply-To: <1514771.EWQBJle85Y@wuerfel>

On 01/14/2015 06:24 AM, Arnd Bergmann wrote:
> On Tuesday 13 January 2015 19:47:00 Jon Masters wrote:
>> Hi Folks,
>>
>> TLDR: I would like to consider the value of adding something like
>> "cluster_siblings" or similar in sysfs to describe ARM topology.
>>
>> A quick question on intended data representation in /sysfs topology
>> before I ask the team on this end to go down the (wrong?) path. On ARM
>> systems today, we have a hierarchical CPU topology:
>>
>>                   Socket ---- Coherent Interonnect ---- Socket
>>                     |                                    |
>>           Cluster0 ... ClusterN                Cluster0 ... ClusterN
>>              |             |                      |             |
>>        Core0...CoreN  Core0...CoreN        Core0...CoreN  Core0...CoreN
>>          |       |      |        |           |       |      |       |
>>       T0..TN  T0..Tn  T0..TN  T0..TN       T0..TN T0..TN  T0..TN  T0..TN
>>
>> Where we might (or might not) have threads in individual cores (a la SMT
>> - it's allowed in the architecture at any rate) and we group cores
>> together into units of clusters usually 2-4 cores in size (though this
>> varies between implementations, some of which have different but similar
>> concepts, such as AppliedMicro Potenza PMDs CPU complexes of dual
>> cores). There are multiple clusters per "socket", and there might be an
>> arbitrary number of sockets. We'll start to enable NUMA soon.
>
> Have you taken a look at the NUMA patches that Ganapatrao Kulkarni
> has sent out? These encode the system-wide topology based on the model
> from IBM Power machines.
>
Thanks for that ptr!  I'll take a look at this code today.

>> Is it not a good idea to expose the cluster details directly in sysfs
>> and have these utilities understand the possible extra level in the
>> calculation? Or do we want to just fudge the numbers (as seems to be the
>> case in some systems I am seeing) to make the x86 model add up?
>>
>> Let me know the preferred course...
>
> I like the idea of encoding the topology independent of the specific
> levels implemented in hardware, and we could use that same model
> that we have in DT to represent things to user space, or that
> can directly access the "arm,associativity" properties in
> /sys/firmware/devicetree/base, but that would not be portable to
> ACPI based systems.
>
> In the platform that Ganapatrao is interested in, there are no clusters,
> but they have two levels of NUMA topology (sockets and boards), and
> I could well imagine systems that have more than those two, or systems
> that have multiple levels below a socket (e.g. chip, cluster, core,
> thread) that all share the same NUMA node because they have a common
> memory controller.
>
> It would be nice to find a good representation for sysfs that covers
> all of these cases, and that also shows the associativity of I/O
> devices.
>
Caches too (and cpu associativity to them, esp. L2)

> 	Arnd
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

  reply	other threads:[~2015-01-14 16:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-14  0:47 sysfs topology for arm64 cluster_id Jon Masters
2015-01-14 11:24 ` Arnd Bergmann
2015-01-14 16:41   ` Don Dutile [this message]
2015-01-14 16:07 ` Don Dutile
2015-01-14 17:00 ` Mark Rutland
2015-01-14 17:18   ` Jon Masters
     [not found]     ` <CALRxmdA+qa+MxkT-Gx-Me2Of5EX+Zobz6HtWRuVK7hhG=zxpmg@mail.gmail.com>
2016-07-01 15:54       ` Stuart Yoder
2016-07-01 17:25         ` Don Dutile
2016-08-05 14:16         ` Christopher Covington

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54B69C2D.9050202@redhat.com \
    --to=ddutile@redhat.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).