Re: [Patch] Idle balancer: cache align nohz structure to improveidle load balancing scalability

From: Suresh Siddha
Date: Thu Oct 20 2011 - 01:59:13 EST


On Wed, 2011-10-19 at 21:18 -0700, Eric Dumazet wrote:
> > + atomic_t load_balancer ____cacheline_aligned;
> > + atomic_t first_pick_cpu ____cacheline_aligned;
> > + atomic_t second_pick_cpu ____cacheline_aligned;
> > + cpumask_var_t idle_cpus_mask ____cacheline_aligned;
> > cpumask_var_t grp_idle_mask;
> > unsigned long next_balance; /* in jiffy units */
> > } nohz ____cacheline_aligned;
> >
>
> Dont you increase cache footprint, say for an Uniprocessor machine ?
>
> (CONFIG_SMP=n)
>
> ____cacheline_aligned_in_smp seems more suitable in this case.

I believe this code is already under ifdef CONFIG_SMP.

thanks,
suresh


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/