Re: unnecessary timer interrupt of slab.c and bdi tasks when thesystem is in sleep state

From: Frederic Weisbecker
Date: Fri Oct 01 2010 - 11:27:31 EST


On Fri, Oct 01, 2010 at 08:20:22AM -0700, Van De Ven, Arjan wrote:
>
> > > the slab timer is already deferable... which means it won't hit while
> > the system is completely idle.
> >
> >
> > I'm not sure what you mean exactly. The slab work seems to be scheduled
> > strictly
> > periodically, unless the cpu goes offline. But I can't find any nohz-
> > wise adaptation.
> >
>
> INIT_DELAYED_WORK_DEFERRABLE(reap_work, cache_reap);
>
> that will cause it to only run when the cpu is actually idle...


Aah ok, I missed that. Thanks.

--
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/