From: Ingo Molnar <mingo@elte.hu>
To: Robert Love <rml@novell.com>
Cc: dwalker@mvista.com, linux-kernel@vger.kernel.org
Subject: Re: [patch] Voluntary Preempt additions
Date: Mon, 18 Oct 2004 20:38:25 +0200 [thread overview]
Message-ID: <20041018183825.GA4142@elte.hu> (raw)
In-Reply-To: <1098124252.1597.8.camel@betsy.boston.ximian.com>
* Robert Love <rml@novell.com> wrote:
> On Mon, 2004-10-18 at 10:49 -0700, Daniel Walker wrote:
>
> > - Modified latency tracer to trace non-preemptable mutex locking , in
> > /proc/lock_trace
>
> Why?
>
> It is a bug to have preemption disabled when entering non-atomic
> (schedulable) code, and a stack trace is dumped if that happens.
>
> Isn't that sufficient?
also, i improved that stackdump in the U4/U5 patches (PREEMPT_TRACE) to
include a trace of critical sections held at that moment:
[<c0169dcb>] sys_unlink+0xdc/0x129
[<c01060b5>] sysenter_past_esp+0x52/0x71
preempt count: 00000002
. 2-level deep critical section nesting:
.. entry 1: free_hot_cold_page+0x82/0x149 / (__pagevec_free+0x1f/0x28)
.. entry 2: print_traces+0x1b/0x54 / (dump_stack+0x23/0x25)
While the stackdump indeed is supposed to clearly identify the critical
section, they can be quite large and opaque, sometimes they even lose
the information of where the lock was acquired, and in practice it's
much easier to use PREEMPT_TRACE.
Ingo
prev parent reply other threads:[~2004-10-18 18:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-18 17:49 [patch] Voluntary Preempt additions Daniel Walker
2004-10-18 18:13 ` Ingo Molnar
2004-10-18 18:30 ` Robert Love
2004-10-18 18:38 ` Ingo Molnar [this message]
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=20041018183825.GA4142@elte.hu \
--to=mingo@elte.hu \
--cc=dwalker@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rml@novell.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox