From: Alison Schofield <alison.schofield@intel.com>
To: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@kernel.org>,
Dave Hansen <dave.hansen@linux.intel.com>,
Tony Luck <tony.luck@intel.com>,
"H. Peter Anvin" <hpa@linux.intel.com>,
Borislav Petkov <bp@alien8.de>,
Peter Zijlstra <peterz@infradead.org>,
David Rientjes <rientjes@google.com>,
Igor Mammedov <imammedo@redhat.com>,
Prarit Bhargava <prarit@redhat.com>,
brice.goglin@gmail.com, x86@kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4] x86,sched: allow topologies where NUMA nodes share an LLC
Date: Wed, 4 Apr 2018 12:00:45 -0700 [thread overview]
Message-ID: <20180404190045.GA11617@alison-desk.jf.intel.com> (raw)
In-Reply-To: <d179ced2-e862-0a67-e653-39c0cb55dbaf@linux.intel.com>
On Wed, Apr 04, 2018 at 11:42:11AM -0700, Tim Chen wrote:
> On 04/04/2018 10:38 AM, Alison Schofield wrote:
> > On Wed, Apr 04, 2018 at 10:24:49AM -0700, Tim Chen wrote:
> >> On 04/03/2018 02:12 PM, Alison Schofield wrote:
> >>
> >>> +
> >>> + /*
> >>> + * topology_sane() considers LLCs that span NUMA nodes to be
> >>> + * insane and will display a warning message. Bypass the call
> >>> + * to topology_sane() for snc_cpu's to avoid that warning.
> >>> + */
> >>> +
> >>> + if (!topology_same_node(c, o) && x86_match_cpu(snc_cpu)) {
> >>> + /* Indicate that package has NUMA nodes inside: */
> >>> + x86_has_numa_in_package = true;
> >>
> >> Why does the x86_has_numa_in_package has to be set here when it would have
> >> been done later in set_cpu_sibling_map?
> >
> > Tim,
> > I had that same thought when you commented on it previously. After
> > discussing w DaveH, decided that match_llc() and match_die(c,0)
> > could be different and chose to be (cautiously) redundant.
> > alisons
>
> If it is redundant, I suggest it be removed, and only added if
> there is truly a case where the current logic
>
> if (match_die(c, o) && !topology_same_node(c, o))
> x86_has_numa_in_package = true;
>
> fails. And also the modification of this logic should be at the
> same place for easy code maintenance.
That makes good sense. I'll look to define the difference or remove
the redundancy.
alisons
>
> Tim
>
> >
> >
> >
> >>
> >>> +
> >>> + /*
> >>> + * false means 'c' does not share the LLC of 'o'.
> >>> + * Note: this decision gets reflected all the way
> >>> + * out to userspace.
> >>> + */
> >>> +
> >>> + return false;
> >>
> >> Thanks.
> >>
> >> Tim
>
next prev parent reply other threads:[~2018-04-04 19:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-03 21:12 [PATCH v4] x86,sched: allow topologies where NUMA nodes share an LLC Alison Schofield
2018-04-04 17:24 ` Tim Chen
2018-04-04 17:38 ` Alison Schofield
2018-04-04 18:42 ` Tim Chen
2018-04-04 19:00 ` Alison Schofield [this message]
2018-04-07 0:17 ` Alison Schofield
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=20180404190045.GA11617@alison-desk.jf.intel.com \
--to=alison.schofield@intel.com \
--cc=bp@alien8.de \
--cc=brice.goglin@gmail.com \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@linux.intel.com \
--cc=imammedo@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=prarit@redhat.com \
--cc=rientjes@google.com \
--cc=tglx@linutronix.de \
--cc=tim.c.chen@linux.intel.com \
--cc=tony.luck@intel.com \
--cc=x86@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.