lkml.org 
[lkml]   [2006]   [Sep]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 6 Sep 2006 10:40:21 +0200
FromIngo Molnar <>
SubjectRe: lockdep oddity
* Hua Zhong <hzhong@gmail.com> wrote:

> We are just trading accuracy for speed here.

no, we are trading _both_ accuracy and speed here! a global 'likeliness' 
pointer for commonly executed codepaths is causing global cacheline 
ping-pongs - which is as bad as it gets.

the right approach, which incidentally would also be perfectly accurate, 
is to store an alloc_percpu()-ed pointer at the call site, not the 
counter itself.

the current code needs more work before it can go upstream i think.

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

\
 
 \ /
  Last update: 2006-09-06 10:51    [from the cache]
©2003-2008