From: Daniel Walker <dwalker@mvista.com>
To: Rui Nuno Capela <rncbc@rncbc.org>
Cc: Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>,
LKML <linux-kernel@vger.kernel.org>,
RT-Users <linux-rt-users@vger.kernel.org>
Subject: Re: 2.6.22.1-rt4 lockups
Date: Mon, 23 Jul 2007 13:15:46 -0700 [thread overview]
Message-ID: <1185221746.2573.142.camel@imap.mvista.com> (raw)
In-Reply-To: <1185206905.2573.52.camel@imap.mvista.com>
On Mon, 2007-07-23 at 09:08 -0700, Daniel Walker wrote:
> On Sat, 2007-07-21 at 23:07 +0100, Rui Nuno Capela wrote:
>
> > Call Trace:
> > [<c010622a>] show_trace_log_lvl+0x1a/0x30
> > [<c01062f6>] show_stack_log_lvl+0xb6/0xe0
> > [<c0106521>] show_registers+0x201/0x330
> > [<c0106768>] die+0x118/0x260
> > [<c0304233>] do_page_fault+0x193/0x600
> > [<c030294a>] error_code+0x72/0x78
> > [<c011b4af>] activate_task+0x4f/0xb0
> > [<c011e09d>] try_to_wake_up+0x2bd/0x420
> > [<c011e279>] wake_up_process_mutex+0x19/0x20
> > [<c01425cc>] wakeup_next_waiter+0xec/0x1a0
> > [<c030173c>] rt_spin_lock_slowunlock+0x4c/0x70
> > [<c0301ff6>] rt_spin_unlock+0x26/0x30
> > [<c015b3e4>] put_zone_pcp+0x14/0x20
> > [<c015c265>] get_page_from_freelist+0x145/0x380
> > [<c015c4f4>] __alloc_pages+0x54/0x2d0
> > [<c01652bd>] __handle_mm_fault+0x7dd/0x9a0
> > [<c0304398>] do_page_fault+0x2f8/0x600
> > [<c030294a>] error_code+0x72/0x78
> > =======================
>
> I was able to reproduce a similar looking hang when I combine kernbench
> running with another load (I used ltpstress.sh from LTP) ..
>
> I'm debugging it now ..
It looks like sched_class->enqueue_task() is NULL and that's why the
system hangs ..
The reason why that happens is because check_pgt_cache() is called from
the idle thread, and with PREEMPT_RT check_pgt_cache() locks at least
one mutex .. Once the idle thread is on a wait_list, as soon as it's
woke by the mutex owner the system will crash in enqueue_task. Since the
idle thread has a NULL sched_class->enqueue_task ..
check_pgt_cache() is already getting called from the desched_thread() ,
so I think it could just be removed from i386 cpu_idle().
Anyone have comments on the theory above?
Daniel
next prev parent reply other threads:[~2007-07-23 20:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-13 11:22 v2.6.22.1-rt3 Thomas Gleixner
2007-07-13 11:36 ` v2.6.22.1-rt3 Remy Bohmer
2007-07-13 16:05 ` v2.6.22.1-rt3 Thomas Gleixner
2007-07-13 16:10 ` v2.6.22.1-rt3 Kevin Hilman
2007-07-13 16:32 ` v2.6.22.1-rt3 Kevin Hilman
2007-07-13 17:18 ` v2.6.22.1-rt3 - Early INT13 boot crash Carsten Emde
2007-07-13 17:25 ` v2.6.22.1-rt3 Fernando Lopez-Lezcano
2007-07-14 0:33 ` v2.6.22.1-rt3 Josh Triplett
2007-07-14 21:39 ` 2.6.22.1-rt3 lockups Rui Nuno Capela
2007-07-20 3:37 ` v2.6.22.1-rt3 Daniel Walker
2007-07-20 3:41 ` v2.6.22.1-rt3 Daniel Walker
2007-07-21 0:25 ` v2.6.22.1-rt3 Thomas Gleixner
2007-07-21 22:07 ` 2.6.22.1-rt4 lockups Rui Nuno Capela
2007-07-22 21:00 ` Rui Nuno Capela
2007-07-23 16:08 ` Daniel Walker
2007-07-23 20:15 ` Daniel Walker [this message]
2007-07-23 20:38 ` Ingo Molnar
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=1185221746.2573.142.camel@imap.mvista.com \
--to=dwalker@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rncbc@rncbc.org \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®