lkml.org 
[lkml]   [2014]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched,numa: ensure task_numa_migrate checks the preferred node
On Wed, Jun 04, 2014 at 04:09:42PM -0400, Rik van Riel wrote:
> The first thing task_numa_migrate does is check to see if there is
> CPU capacity available on the preferred node, in order to move the
> task there.
>
> However, if the preferred node is all busy, we would skip considering
> that node for tasks swaps in the subsequent loop. This prevents NUMA
> convergence of tasks on busy systems.
>
> However, swapping locations with a task on our preferred nid, when
> the preferred nid is busy, is perfectly fine.
>
> The fix is to also look for a CPU on our preferred nid when it is
> totally busy.
>
> This changes "perf bench numa mem -p 4 -t 20 -m -0 -P 1000" from
> not converging in 15 minutes on my 4 node system, to converging in
> 10-20 seconds.
>
> Signed-off-by: Rik van Riel <riel@redhat.com>


Indeed so. Thanks Rik!



\
 
 \ /
  Last update: 2014-06-06 18:21    [W:0.059 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site