> Using local_t for per cpu counters is nice because then > one can use cpu_local_add() etc. and that generates very good > code at least on x86 and a few other architectures. That would > then allow very cheap per CPU statistics, which are useful > in a number of subsystems (like networking or MM code)
But be warned that aggregating the per-cpu counters can be very expensive on high cpu count ia64 systems. We've had issues with /proc files that provide system counts that do this in a cache hostile way. -Tony - To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
