public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rik van Riel <riel@redhat.com>
To: Ingo Molnar <mingo@kernel.org>,
	Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, mgorman@suse.de
Subject: Re: [PATCH] sched,numa: document and fix numa_preferred_nid setting
Date: Thu, 18 Jun 2015 14:16:35 -0400	[thread overview]
Message-ID: <55830B03.2010008@redhat.com> (raw)
In-Reply-To: <20150618161230.GA5799@gmail.com>

On 06/18/2015 12:12 PM, Ingo Molnar wrote:
> * Srikar Dronamraju <srikar@linux.vnet.ibm.com> wrote:
> 
>>>  	if (p->numa_group) {
>>>  		if (env.best_cpu == -1)
>>> @@ -1513,7 +1520,7 @@ static int task_numa_migrate(struct task_struct *p)
>>>  			nid = env.dst_nid;
>>>
>>>  		if (node_isset(nid, p->numa_group->active_nodes))
>>> -			sched_setnuma(p, env.dst_nid);
>>> +			sched_setnuma(p, nid);
>>>  	}
>>>
>>>  	/* No better CPU than the current one was found. */
>>>
>>
>> Overall this patch does seem to produce better results. However numa02
>> gets affected -vely.
> 
> Huh?
> 
> numa02 is the more important benchmark of the two. 'numa01' is a conflicting 
> workload that is a lot more sensitive to balancing details - while 'numa02' is a 
> nicely partitioned workload that should converge as fast as possible.
> 
> So if numa02 got worse then it's a bad change.

It slows down convergence.

However, for a benchmark that spends much of its time
actually doing something with the memory it accesses,
after things have converged, slowing down task movement
after convergence may be a good thing.

It will be good to get SPECjbb2005 numbers, both with
1 instance, 2 instances, and 4 instances on the same
4 node system.

If it turns out that single instance and two instance
workloads do not benefit from trying to slow down task
movement after the workloads have converged, we can
change the code above, and simply retry task migration
much, much more often after the workload has converged
onto several nodes.

  reply	other threads:[~2015-06-18 18:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-16 19:54 [PATCH] sched,numa: document and fix numa_preferred_nid setting Rik van Riel
2015-06-18 15:55 ` Srikar Dronamraju
2015-06-18 16:06   ` Rik van Riel
2015-06-18 16:41     ` Srikar Dronamraju
2015-06-18 17:00       ` Rik van Riel
2015-06-18 17:11         ` Srikar Dronamraju
2015-06-19 17:16         ` Srikar Dronamraju
2015-06-19 17:52           ` Rik van Riel
2015-06-22 16:04             ` Srikar Dronamraju
2015-06-22 16:48           ` Srikar Dronamraju
2015-06-18 16:12   ` Ingo Molnar
2015-06-18 18:16     ` Rik van Riel [this message]
2015-06-22 16:13 ` Srikar Dronamraju
2015-06-22 22:28   ` Rik van Riel

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=55830B03.2010008@redhat.com \
    --to=riel@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgorman@suse.de \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --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