linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bryan Donlan <bdonlan@gmail.com>
To: "Leyendecker, Robert" <Robert.Leyendecker@lsi.com>
Cc: RT <linux-rt-users@vger.kernel.org>
Subject: Re: Lockup with "BUG: using smp_processor_id() in preemptible"
Date: Thu, 31 Dec 2009 12:34:26 -0500	[thread overview]
Message-ID: <3e8340490912310934r2a8df5f0p62044592f7e7f808@mail.gmail.com> (raw)
In-Reply-To: <8C8865ED624BB94F8FE50259E2B5C5B3045943388F@palmail03.lsi.com>

On Thu, Dec 31, 2009 at 12:16 PM, Leyendecker, Robert
<Robert.Leyendecker@lsi.com> wrote:

> Yes - from looking at trace and smp code it seems to occur during migration, however, there is a fair amount of asm woven in to this part and I have trouble following it and have no idea about root cause. With smp support I eventually hit this trap using brute force polling, epoll or async signals, regardless of application level affinity, irq priority, etc. Time to fault seems to very between a few minutes to several hours.
>
> I have encountered this exception using core duo with a network application. It does not occur on single core machines (I am also testing with SMP disabled and it also seems to resolve the issue). It seems very reproducible on my core duo, both 32 and 64 bit and using the latest stable kernel and rt patch.
>
> My app hammers the network interface with packets. I'm planning to boil it down into a couple of peer to peer test routines so that network processing latency can be accurately measured under rt patch for streaming applications. Rt patch seems to give excellent results that I cannot achieve using non-patch kernel (even with hand tuned affinity, IRQs, priorities, etc), so I'm hoping we can figure it out and fix it.
>
> For now, I plan to set everyone up with smp disabled in our test lab. Things seem stable with this setting.

Okay, good to know it's a known issue. I've captured a function_graph
trace, if it will help, of the flow leading up to the printk in
debug_smp_processor_id(): http://fushizen.net/~bd/trace.1.gz (occurs
on CPU 1 at the end of the trace; the printk is clearly visible)

The patch used to generate it is at
http://fushizen.net/~bd/smp-procid-trace-trap.patch

      reply	other threads:[~2009-12-31 17:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-31 16:21 Lockup with "BUG: using smp_processor_id() in preemptible" Bryan Donlan
2009-12-31 17:16 ` Leyendecker, Robert
2009-12-31 17:34   ` Bryan Donlan [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=3e8340490912310934r2a8df5f0p62044592f7e7f808@mail.gmail.com \
    --to=bdonlan@gmail.com \
    --cc=Robert.Leyendecker@lsi.com \
    --cc=linux-rt-users@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).