All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Jason Baron <jbaron@redhat.com>
Cc: linux-kernel@vger.kernel.org, arjan@infradead.org, rdreier@cisco.com
Subject: Re: locking hierarchy based on lockdep
Date: Wed, 8 Nov 2006 00:53:42 +0100	[thread overview]
Message-ID: <20061107235342.GA5496@elte.hu> (raw)
In-Reply-To: <Pine.LNX.4.64.0611071833450.22572@dhcp83-20.boston.redhat.com>


* Jason Baron <jbaron@redhat.com> wrote:

> > this would certainly be the simplest thing to do - we could extend 
> > /proc/lockdep with the list of 'immediately after' locks separated by 
> > commas. (that list already exists: it's the lock_class.locks_after list)
>
> So below is patch that does what you suggest, although i had to add 
> the concept of 'distance' to the patch since the locks_after list 
> loses this dependency info afaict. i also wrote a user space program 
> to sort the locks into cluster of interelated locks and then sorted 
> within these clusters...the results show one large clump of 
> locks...perhaps there are a few locks that time them all together like 
> scheduler locks...but i couldn't figure out which ones to exclude to 
> make the list look really pretty (also, there could be a bug in my 
> program :). Anyways i'm including my test program and its output 
> too...

nice!

small detail: i'm wondering why 'distance' is needed explicitly? The 
dependency graph as it is represented by locks_after should be a full 
representation of all locking dependencies. What is the intended 
definition of 'distance' - the distance from the root of the dependency 
tree? (Maybe i'm misunderstanding what you are trying to achieve.)

	Ingo

  reply	other threads:[~2006-11-07 23:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-06 18:32 locking hierarchy based on lockdep Jason Baron
2006-11-06 20:05 ` Ingo Molnar
2006-11-06 20:21   ` Roland Dreier
2006-11-06 20:22     ` Jason Baron
2006-11-06 20:37       ` Roland Dreier
2006-11-06 20:40         ` Jason Baron
2006-11-07 23:39   ` Jason Baron
2006-11-07 23:53     ` Ingo Molnar [this message]
2006-11-08 18:04       ` Jason Baron
2006-11-09  9:15         ` Ingo Molnar
2006-11-09 18:58           ` Jason Baron
2006-11-10  9:27             ` Ingo Molnar
2006-11-08 13:08     ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061107235342.GA5496@elte.hu \
    --to=mingo@elte.hu \
    --cc=arjan@infradead.org \
    --cc=jbaron@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdreier@cisco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.