Re: [PATCH 08/18] sched: Reschedule task on preferred NUMA node once selected

2013-08-01 Thread Mel Gorman
On Thu, Aug 01, 2013 at 10:17:57AM +0530, Srikar Dronamraju wrote: > * Mel Gorman [2013-07-15 16:20:10]: > > > A preferred node is selected based on the node the most NUMA hinting > > faults was incurred on. There is no guarantee that the task is running > > on that node at the time so this patch

Re: [PATCH 08/18] sched: Reschedule task on preferred NUMA node once selected

2013-07-31 Thread Srikar Dronamraju
* Mel Gorman [2013-07-15 16:20:10]: > A preferred node is selected based on the node the most NUMA hinting > faults was incurred on. There is no guarantee that the task is running > on that node at the time so this patch rescheules the task to run on > the most idle CPU of the selected node when

Re: [PATCH 08/18] sched: Reschedule task on preferred NUMA node once selected

2013-07-31 Thread Srikar Dronamraju
* Mel Gorman [2013-07-31 10:07:27]: > On Wed, Jul 17, 2013 at 09:31:05AM +0800, Hillf Danton wrote: > > On Mon, Jul 15, 2013 at 11:20 PM, Mel Gorman wrote: > > > +static int > > > +find_idlest_cpu_node(int this_cpu, int nid) > > > +{ > > > + unsigned long load, min_load = ULONG_MAX; > > >

Re: [PATCH 08/18] sched: Reschedule task on preferred NUMA node once selected

2013-07-31 Thread Mel Gorman
On Wed, Jul 17, 2013 at 09:31:05AM +0800, Hillf Danton wrote: > On Mon, Jul 15, 2013 at 11:20 PM, Mel Gorman wrote: > > +static int > > +find_idlest_cpu_node(int this_cpu, int nid) > > +{ > > + unsigned long load, min_load = ULONG_MAX; > > + int i, idlest_cpu = this_cpu; > > + > > +

Re: [PATCH 08/18] sched: Reschedule task on preferred NUMA node once selected

2013-07-16 Thread Hillf Danton
On Mon, Jul 15, 2013 at 11:20 PM, Mel Gorman wrote: > +static int > +find_idlest_cpu_node(int this_cpu, int nid) > +{ > + unsigned long load, min_load = ULONG_MAX; > + int i, idlest_cpu = this_cpu; > + > + BUG_ON(cpu_to_node(this_cpu) == nid); > + > + rcu_read_lock(); > +

[PATCH 08/18] sched: Reschedule task on preferred NUMA node once selected

2013-07-15 Thread Mel Gorman
A preferred node is selected based on the node the most NUMA hinting faults was incurred on. There is no guarantee that the task is running on that node at the time so this patch rescheules the task to run on the most idle CPU of the selected node when selected. This avoids waiting for the balancer