Hello, On Thu, Apr 21, 2011 at 01:54:51PM -0500, Christoph Lameter wrote: > Well again there is general fuzziness here and we are trying to make the > best of it without compromising performance too much. Shaohua's numbers > indicate that removing the lock is very advantagous. More over we do the > same thing in other places. The problem with Shaohua's numbers is that it's a pessimistic test case with too low batch count. If an optimization improves such situations without compromising funcitionality or introducing too much complexity, sure, why not? But I'm not sure that's the case here. > Actually its good to make the code paths for vmstats and percpu counters > similar. That is what this does too. > > Preempt enable/disable in any function that is supposedly fast is > something bad that can be avoided with these patches as well. If you really wanna push the _sum() fuziness change, the only way to do that would be auditing all the current users and making sure that it won't affect any of them. It really doesn't matter what vmstat is doing. They're different users. And, no matter what, that's a separate issue from the this_cpu hot path optimizations and should be done separately. So, _please_ update this_cpu patch so that it doesn't change the slow path semantics. Thank you. -- tejun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>