[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180922110340.GA1402@in.ibm.com>
Date: Sat, 22 Sep 2018 16:33:40 +0530
From: Gautham R Shenoy <ego@...ux.vnet.ibm.com>
To: Dave Hansen <dave.hansen@...el.com>
Cc: "Gautham R. Shenoy" <ego@...ux.vnet.ibm.com>,
"Aneesh Kumar K.V" <aneesh.kumar@...ux.ibm.com>,
Srikar Dronamraju <srikar@...ux.vnet.ibm.com>,
Michael Ellerman <mpe@...erman.id.au>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Michael Neuling <mikey@...ling.org>,
Vaidyanathan Srinivasan <svaidy@...ux.vnet.ibm.com>,
Akshay Adiga <akshay.adiga@...ux.vnet.ibm.com>,
Shilpasri G Bhat <shilpa.bhat@...ux.vnet.ibm.com>,
"Oliver O'Halloran" <oohall@...il.com>,
Nicholas Piggin <npiggin@...il.com>,
Murilo Opsfelder Araujo <muriloo@...ux.ibm.com>,
Anton Blanchard <anton@...ba.org>,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v8 0/3] powerpc: Detection and scheduler optimization for
POWER9 bigcore
Hi Dave,
On Thu, Sep 20, 2018 at 11:04:54AM -0700, Dave Hansen wrote:
> On 09/20/2018 10:22 AM, Gautham R. Shenoy wrote:
> > -------------------------
> > | L1 Cache |
> > ----------------------------------
> > |L2| | | | |
> > | | 0 | 2 | 4 | 6 |Small Core0
> > |C | | | | |
> > Big |a --------------------------
> > Core |c | | | | |
> > |h | 1 | 3 | 5 | 7 | Small Core1
> > |e | | | | |
> > -----------------------------
> > | L1 Cache |
> > --------------------------
>
> The scheduler already knows about shared caches. Could you elaborate on
> how this is different from the situation today where we have multiple
> cores sharing an L2/L3?
The issue is not so much about the threads in the core sharing L2
cache. But the two group of threads in the core, each of which has its
own L1-cache. This patchset (the second patch in the series) informs
the scheduler of this distinction by defining the SMT sched-domain
have groups correspond to the threads that share L1 cache. With this
the scheduler will treat a pair of threads {1,2} differently from
{1,3} when threads 1 and 3 share the L1 cache, while 1 and 2 don't.
The next sched-domain (CACHE domain) is defined as the group of
threads that share the L2 cache, which happens to be the entire big
core.
Without this patchset, the SMT domain would be defined as the group of
threads that share L2 cache. Thus, the scheduler would treat any two
threads in the big-core in the same way, resulting in run-to-run
variance when the software threads are placed on pair of threads
within the same L1-cache group or on separate ones.
>
> Adding the new sysfs stuff seems like overkill if that's all that you
> are trying to do.
>
The sysfs attributes are to inform the users that we have a big-core
configuration comprising of two small cores, thereby allowing them to
make informed choices should they want to pin the tasks to the CPUs.
--
Thanks and Regards
gautham.
Powered by blists - more mailing lists