From: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
To: Borislav Petkov <bp@suse.de>
Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org
Subject: Re: [PATCH v2] sched/topology: Introduce NUMA identity node sched domain
Date: Thu, 24 Aug 2017 08:13:23 +0700 [thread overview]
Message-ID: <e7a3ac18-81a4-1400-b73c-eb79d30aa8be@amd.com> (raw)
In-Reply-To: <20170814174313.xkt76wqzwismprls@pd.tnic>
Boris,
Sorry for late reply. I missed this email earlier.
On 8/15/17 00:43, Borislav Petkov wrote:
>> diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
>> index 79895ae..2dd5b11 100644
>> --- a/kernel/sched/topology.c
>> +++ b/kernel/sched/topology.c
>> @@ -1335,6 +1335,10 @@ void sched_init_numa(void)
>> if (!sched_domains_numa_distance)
>> return;
>>
>> + /* Includes NUMA identity node at level 0. */
>> + sched_domains_numa_distance[level++] = curr_distance;
>> + sched_domains_numa_levels = level;
>> +
>> /*
>> * O(nr_nodes^2) deduplicating selection sort -- in order to find the
>> * unique distances in the node_distance() table.
>> @@ -1382,8 +1386,7 @@ void sched_init_numa(void)
>> return;
>>
>> /*
>> - * 'level' contains the number of unique distances, excluding the
>> - * identity distance node_distance(i,i).
> I'm still unclear as to why were we excluding this identity distance
> until now and how would that change affect existing systems.
One reason that I can think of is that, on older systems (at least for AMD), L3
sched domain level has the same cpumask as the node level. This is not the case
for Zen.
> Also, you do use the term "NUMA" pretty loosely in the text - please
> take care to explain precisely what kind of node you mean: physical,
> logical, ... Don't be afraid to be too verbose.
>
> Thanks.
Mostly, I am referring to the logical NUMA (as described by the SRAT/SLIT),
which can change based on how BIOS configures the system. I will update this in V3.
Thanks,
Suravee
next prev parent reply other threads:[~2017-08-24 1:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-11 7:41 Suravee Suthikulpanit
2017-08-14 17:43 ` Borislav Petkov
2017-08-24 1:13 ` Suravee Suthikulpanit [this message]
2017-08-24 8:37 ` Borislav Petkov
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=e7a3ac18-81a4-1400-b73c-eb79d30aa8be@amd.com \
--to=suravee.suthikulpanit@amd.com \
--cc=bp@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@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
all inboxes | Powered by JetHome®