From: Ingo Molnar <mingo@kernel.org>
To: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org, Rik van Riel <riel@redhat.com>,
Mel Gorman <mgorman@suse.de>
Subject: Re: [PATCH] sched/numa: Disable sched_numa_balancing on uma systems
Date: Tue, 21 Jul 2015 09:51:21 +0200 [thread overview]
Message-ID: <20150721075120.GB25542@gmail.com> (raw)
In-Reply-To: <1436978557-24935-1-git-send-email-srikar@linux.vnet.ibm.com>
* Srikar Dronamraju <srikar@linux.vnet.ibm.com> wrote:
> Commit 2a1ed24 ("sched/numa: Prefer NUMA hotness over cache hotness")
> sets sched feature NUMA to true. However this can enable numa hinting
> faults on a uma system.
>
> This commit ensures that numa hinting faults occur only on a numa system
> by setting/resetting sched_numa_balancing.
>
> This commit
> - Renames numabalancing_enabled to sched_numa_balancing
> - Makes sched_numa_balancing common to CONFIG_SCHED_DEBUG and
> !CONFIG_SCHED_DEBUG. Earlier it was only in !CONFIG_SCHED_DEBUG
> - Checks for sched_numa_balancing instead of sched_feat(NUMA)
>
> Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
> ---
> kernel/sched/core.c | 16 ++++++----------
> kernel/sched/fair.c | 8 ++++----
> kernel/sched/sched.h | 10 ++--------
> 3 files changed, 12 insertions(+), 22 deletions(-)
>
> diff --git a/kernel/sched/core.c b/kernel/sched/core.c
> index 78b4bad10..4722f5c 100644
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -2059,22 +2059,18 @@ static void __sched_fork(unsigned long clone_flags, struct task_struct *p)
> }
>
> #ifdef CONFIG_NUMA_BALANCING
> -#ifdef CONFIG_SCHED_DEBUG
> +__read_mostly bool sched_numa_balancing;
> +
> void set_numabalancing_state(bool enabled)
> {
> + sched_numa_balancing = enabled;
> +#ifdef CONFIG_SCHED_DEBUG
> if (enabled)
> sched_feat_set("NUMA");
> else
> sched_feat_set("NO_NUMA");
So why is the 'NUMA' sched_features option still twiddled? Your patch splits out a
sched_numa_balancing flag - so the NUMA/NO_NUMA feature can go away, right?
Thanks,
Ingo
next prev parent reply other threads:[~2015-07-21 7:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 16:42 [PATCH] sched/numa: Disable sched_numa_balancing on uma systems Srikar Dronamraju
2015-07-21 7:51 ` Ingo Molnar [this message]
2015-07-21 10:08 ` Srikar Dronamraju
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=20150721075120.GB25542@gmail.com \
--to=mingo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=peterz@infradead.org \
--cc=riel@redhat.com \
--cc=srikar@linux.vnet.ibm.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