From: Michael Holzheu <holzheu@linux.vnet.ibm.com>
To: Tejun Heo <tj@kernel.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>,
Peter Zijlstra <peterz@infradead.org>,
Ming Lei <tom.leiming@gmail.com>,
Thomas Gleixner <tglx@linutronix.de>,
LKML <linux-kernel@vger.kernel.org>,
Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>,
Andrew Morton <akpm@linux-foundation.org>,
Lai Jiangshan <laijs@cn.fujitsu.com>,
Martin Schwidefsky <schwidefsky@de.ibm.com>
Subject: Re: [bisected] "sched: Allow per-cpu kernel threads to run on online && !active" causes warning
Date: Fri, 19 Aug 2016 11:52:12 +0200 [thread overview]
Message-ID: <20160819115212.1c5eba20@TP-holzheu> (raw)
In-Reply-To: <20160818144208.GA3166@htj.duckdns.org>
Am Thu, 18 Aug 2016 10:42:08 -0400
schrieb Tejun Heo <tj@kernel.org>:
> Hello, Michael.
>
> On Thu, Aug 18, 2016 at 11:30:51AM +0200, Michael Holzheu wrote:
> > Well, "no requirement" this is not 100% correct. Currently we use
> > the CPU topology information to assign newly coming CPUs to the
> > "best fitting" node.
> >
> > Example:
> >
> > 1) We have we two fake NUMA nodes N1 and N2 with the following CPU
> > assignment:
> >
> > - N1: cpu 1 on chip 1
> > - N2: cpu 2 on chip 2
> >
> > 2) A new cpu 3 is configured that lives on chip 2
> > 3) We assign cpu 3 to N2
> >
> > We do this only if the nodes are balanced. If N2 had already one
> > more cpu than N1 we would assign the new cpu to N1.
>
> I see. Out of curiosity, what's the purpose of fakenuma on s390?
> There don't seem to be any actual memory locality concerns. Is it
> just to segment memory of a machine into multiple pieces?
Correct.
> If so, why
> is that necessary, do you hit some scalability issues w/o NUMA nodes?
Yes we hit a scalability issue. Our performance team found out that for
big (> 1 TB) overcommitted (memory / swap ration > 1 : 2) systems we
see problems:
- Zone locks are highly contended because ZONE_NORMAL is big:
* zone->lock
* zone->lru_lock
- One kswapd is not enough for swapping
We hope that those problems are resolved by fake NUMA because for each
node a separate memory subsystem is created with separate zone locks
and kswapd threads.
> As for the solution, if blind RR isn't good enough, although it sounds
> like it could given that the balancing wasn't all that strong to begin
> with, would it be an option to implement an interface which just
> requests a new CPU rather than a specific one and then pick one of the
> vacant possible CPUs considering node balancing?
IMHO this is a promising idea. To say it in my words:
- At boot time we already pin all remaining "not configured" logical
CPUs to nodes. So all possible cpus are pinned to nodes and
cpu_to_node() will work.
- If a new physical cpu get's configured, we get the CPU topology
information from the system and find the best node.
- We get a logical cpu number from the node pool and assign the
new physical cpu to that number.
If that works we would be as good as before. We will have a look into
the code if it is possible.
Michael
prev parent reply other threads:[~2016-08-19 9:52 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-27 12:54 Heiko Carstens
2016-07-27 15:23 ` Thomas Gleixner
2016-07-30 11:25 ` Heiko Carstens
2016-08-08 7:45 ` Ming Lei
2016-08-15 11:19 ` Heiko Carstens
2016-08-15 22:48 ` Tejun Heo
2016-08-16 7:55 ` Heiko Carstens
2016-08-16 15:20 ` Tejun Heo
2016-08-16 15:29 ` Peter Zijlstra
2016-08-16 15:42 ` Tejun Heo
2016-08-16 22:19 ` Heiko Carstens
2016-08-17 9:20 ` Michael Holzheu
2016-08-17 13:58 ` Tejun Heo
2016-08-18 9:30 ` Michael Holzheu
2016-08-18 14:42 ` Tejun Heo
2016-08-19 9:52 ` Michael Holzheu [this message]
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=20160819115212.1c5eba20@TP-holzheu \
--to=holzheu@linux.vnet.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=heiko.carstens@de.ibm.com \
--cc=isimatu.yasuaki@jp.fujitsu.com \
--cc=laijs@cn.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=schwidefsky@de.ibm.com \
--cc=tglx@linutronix.de \
--cc=tj@kernel.org \
--cc=tom.leiming@gmail.com \
/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®