Re: [patch] sched: decrease number of load balances

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 20, 2006 at 04:39:03PM -0800, Christoph Lameter wrote:
> On Mon, 20 Nov 2006, Siddha, Suresh B wrote:
> 
> > +		if (local_group && balance_cpu != this_cpu && balance) {
> 
> This would need to be *balance right? balance is always != 0.

No. In newly idle case it is NULL. In newly idle case there is likely
some imbalance and hence wanted to go through normal logic of doing load balance
till it finds something. newly idle balance anyhow won't do load balance at NUMA
domain.

> How well was this patch tested?

We have run it through workloads which are used to identify kernel perf
regressions and ran on several DP and MP systems with HT and MC.
(workloads and system info can be found at http://kernel-perf.sourceforge.net)
We didn't find any regression with this patch.

We are also doing more testing with this patch and also wanted to get it tested
in -mm.

> We already have idle processors pulling processes from elsewhere in the 
> system. Load balancing on an idle processor could only replicate the 
> balance on idle logic.

My patch is not changing any idle load balancing logic and hence it is no
less/more aggressive as the current one.

What do you mean by "balance on idle logic"? Are you referring to load_idx that
gets used, based on the processor is idle/busy?

Even with out this patch, if there is an idle processor in a group at domain level
'x',  then the idle processor will do an idle load balance between the groups
at level 'x'. This patch just cuts down the load balances done by the busy
and other idle cpus in the group.

thanks,
suresh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux