Re: [PATCH 5/5] slub: Only IPI CPUs that have per cpu obj to flush

From: Peter Zijlstra
Date: Mon Sep 26 2011 - 03:36:53 EST


On Mon, 2011-09-26 at 09:54 +0300, Pekka Enberg wrote:
>
> AFAICT, flush_all() isn't all that performance sensitive. Why do we
> want to reduce IPIs here?

Because it can wake up otherwise idle CPUs, wasting power. Or for the
case I care more about, unnecessarily perturb a CPU that didn't actually
have anything to flush but was running something, introducing jitter.

on_each_cpu() things are bad when you have a ton of CPUs (which is
pretty normal these days).
--
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/