Re: [PATCH] lockdep: lock contention tracking

2007-05-21 Thread Jason Baron
On Sun, 20 May 2007, Peter Zijlstra wrote: > > Add lock contention tracking to lockdep > looks really nice to me. To me, in addition to the number of times the lock is contended we also need the total number of times the lock was acquired, to make the statistics significant. I've included o

Re: [PATCH] lockdep: lock contention tracking

2007-05-21 Thread hui
On Mon, May 21, 2007 at 12:58:03PM +0200, Ingo Molnar wrote: > and nobody pushed strong enough to get it included. But ... Peter's > patch could perhaps be extended to cover similar stats as lockmeter, > ontop of the existing lockdep instrumentation. Peter, can you see any > particular roadblock

Re: [PATCH] lockdep: lock contention tracking

2007-05-21 Thread hui
On Mon, May 21, 2007 at 02:46:55PM +0200, Ingo Molnar wrote: > which combines into this statement of yours: "I audited 1600 something > lock points in the kernel to convert the usage of C99 style initializers > something more regular, only to find out that there wasn't much left to > convert ove

Re: [PATCH] lockdep: lock contention tracking

2007-05-21 Thread Ingo Molnar
* Bill Huey <[EMAIL PROTECTED]> wrote: > > and regarding C99 style lock initializers: the -rt project has been > > removing a whole heap of them in the past 2.5 years, since Oct 2004 > > or so, and regularly cleansed the upstream kernel for old-style > > initializers ever since then - so i'm n

Re: [PATCH] lockdep: lock contention tracking

2007-05-21 Thread Ingo Molnar
* Christoph Hellwig <[EMAIL PROTECTED]> wrote: > On Mon, May 21, 2007 at 11:36:39AM +0200, Ingo Molnar wrote: > > you got the history wrong i think: the first version of lockdep was > > released to lkml a year ago (May 2006), while the first time you > > mentioned your lock contention patch was

Re: [PATCH] lockdep: lock contention tracking

2007-05-21 Thread hui
On Mon, May 21, 2007 at 03:19:46AM -0700, Bill Huey wrote: > On Mon, May 21, 2007 at 11:36:39AM +0200, Ingo Molnar wrote: > > you got the history wrong i think: the first version of lockdep was > > released to lkml a year ago (May 2006), while the first time you > > mentioned your lock contention

Re: [PATCH] lockdep: lock contention tracking

2007-05-21 Thread hui
On Mon, May 21, 2007 at 10:55:47AM +0100, Christoph Hellwig wrote: > On Mon, May 21, 2007 at 11:36:39AM +0200, Ingo Molnar wrote: > > you got the history wrong i think: the first version of lockdep was > > released to lkml a year ago (May 2006), while the first time you > > mentioned your lock co

Re: [PATCH] lockdep: lock contention tracking

2007-05-21 Thread hui
On Mon, May 21, 2007 at 11:36:39AM +0200, Ingo Molnar wrote: > you got the history wrong i think: the first version of lockdep was > released to lkml a year ago (May 2006), while the first time you > mentioned your lock contention patch was November 2006 and you released > it to lkml in December

Re: [PATCH] lockdep: lock contention tracking

2007-05-21 Thread Christoph Hellwig
On Mon, May 21, 2007 at 11:36:39AM +0200, Ingo Molnar wrote: > you got the history wrong i think: the first version of lockdep was > released to lkml a year ago (May 2006), while the first time you > mentioned your lock contention patch was November 2006 and you released > it to lkml in December

Re: [PATCH] lockdep: lock contention tracking

2007-05-21 Thread Ingo Molnar
* Bill Huey <[EMAIL PROTECTED]> wrote: > I write lockstat without the knowledge that lockdep was replicating > the same work and I audited 1600 something lock points in the kernel > to convert the usage of C99 style initializers to something more > regular. you got the history wrong i think:

Re: [PATCH] lockdep: lock contention tracking

2007-05-21 Thread hui
On Mon, May 21, 2007 at 09:50:13AM +0200, Ingo Molnar wrote: > Have you looked at the output Peter's patch produces? It prints out > precise symbols: > > dcache_lock: 3000 0 [618] [] _atomic_dec_and_lock+0x39/0x58 > > which can easily be turned into line numbers using debuginfo packages or > u

Re: [PATCH] lockdep: lock contention tracking

2007-05-21 Thread Ingo Molnar
* Bill Huey <[EMAIL PROTECTED]> wrote: > On Mon, May 21, 2007 at 08:08:28AM +0200, Ingo Molnar wrote: > > To me it appears Peter's stuff is already a pretty complete solution on > > its own, and it's a whole lot simpler (and less duplicative) than your > > lockstat patch. Could you list the spe

Re: [PATCH] lockdep: lock contention tracking

2007-05-20 Thread hui
On Mon, May 21, 2007 at 08:08:28AM +0200, Ingo Molnar wrote: > To me it appears Peter's stuff is already a pretty complete solution on > its own, and it's a whole lot simpler (and less duplicative) than your > lockstat patch. Could you list the specific items/features that you > think Peter's st

Re: [PATCH] lockdep: lock contention tracking

2007-05-20 Thread Ingo Molnar
* Bill Huey <[EMAIL PROTECTED]> wrote: > On Sun, May 20, 2007 at 12:30:26PM +0200, Peter Zijlstra wrote: > > The 4 points are the first 4 unique callsites that cause lock contention > > for the specified lock class. > > > > writing a 0 to /proc/lockdep_contentions clears the stats > > We should

Re: [PATCH] lockdep: lock contention tracking

2007-05-20 Thread hui
On Sun, May 20, 2007 at 12:30:26PM +0200, Peter Zijlstra wrote: > The 4 points are the first 4 unique callsites that cause lock contention > for the specified lock class. > > writing a 0 to /proc/lockdep_contentions clears the stats We should talk about unifying it with my lockstat work for -rt s

Re: [PATCH] lockdep: lock contention tracking

2007-05-20 Thread Ingo Molnar
* Peter Zijlstra <[EMAIL PROTECTED]> wrote: > Add lock contention tracking to lockdep > > [EMAIL PROTECTED] ~]# cat /proc/lockdep_contentions | sort -rnk 2 | head > dcache_lock: 3000 0 [618] [] _atomic_dec_and_lock+0x39/0x58 > [17] [] sysfs_open_file+0x28/0x25a [160] > [] d_instantiate+0x2a/0x

[PATCH] lockdep: lock contention tracking

2007-05-20 Thread Peter Zijlstra
Add lock contention tracking to lockdep [EMAIL PROTECTED] ~]# cat /proc/lockdep_contentions | sort -rnk 2 | head dcache_lock: 3000 0 [618] [] _atomic_dec_and_lock+0x39/0x58 [17] [] sysfs_open_file+0x28/0x25a [160] [] d_instantiate+0x2a/0xad [52] [] __link_path_walk+0x270/0xde9 &inode->i_mutex: