linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: gowrishankar <gowrishankar.m@linux.vnet.ibm.com>
To: Primus Mutasingwa <pmutasingwa@yahoo.com>
Cc: linux-rt-users linux-rt-users <linux-rt-users@vger.kernel.org>
Subject: Re: kernel 2.6.33.7-rt29 problem
Date: Fri, 15 Oct 2010 23:29:11 +0530	[thread overview]
Message-ID: <4CB8966F.1000605@linux.vnet.ibm.com> (raw)
In-Reply-To: <594976.7463.qm@web114205.mail.gq1.yahoo.com>

On Friday 15 October 2010 01:13 AM, Primus Mutasingwa wrote:
> Hello,
>
> I am using a linux kernel 2.6.33.7+preempt rt patch (patch-2.6.33.7-rt29)
> My system is running a user-space application that is made of multiple threads
> with varying priorities.
> This app is also making read/write calls into a kernel space driver that is
> running at priority 99 (very high priority)
> These are priorities fo some of the items running in the system
>       Threads in the app (10 ... 98, FIFO) 
>       Serial console isr (99, FIFO)
>       Driver used by app (99, FIFO)
> Different threads fail at different times (even ones with priority 50 or 98)
>
> System randomly fails after running for anywhere from 1 to 20 minutes.
>    

Could be due to cpu stall detected by rcu which will further request for
NMI to be sent.. your app may block rcu system threads which if fails to
extend the grace time, rcu will assume cpu stalled.. Any such info you saw
in /var/log/messages ? Anyhow, please reduce your threads prio atleast to
80 to give cpu chances to system priority threads.

Thanks,
Gowrishankar
> When it fails, these are the symptoms observed.
> 1. Running function/thread gets preempted and never gets time to run after that.
>     Console locks up, can no longer run ethernet traffic.
>     It is possible to get some console use by changing the scheduler
>     throttling threshold.   Usually it is at 95% and we change it to about 60%.
>   
>     /* from the console  */
>     echo 600000>  /proc/sys/kernel/sched_rt_runtime_us
> 2. When we get console use:
>     Displaying processor status (ps) shows that this thread is running even
> though we
>
>     never returned to the function
>     Using a top utility , it is reported that that particular thread consumes
>     about 95% of the CPU resources.
> 3. Using a JTAG based debugger
>       -- the stack was verified to be ok.
>       -- If we set a breakpoint in the function that fails we never hit the
> breakpoint (we expected function to return after preemption)
>
> I am looking for suggestions on how to resolve this problem. Why doesnt the
> thread run ?
> Why is the system locked up ?
> Is there any tools included in the kernel that can allow me to debug this ?
> I am not aware of an available lttng package available for this kernel version.
>
> Thank you,
>
> P. Mutasingwa
>
> Included is the kernel configuration file (omap3_beagle_defconfig) used in my
> setup
> Sent Separately
>
>
>
>        


      parent reply	other threads:[~2010-10-15 17:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-14 19:43 kernel 2.6.33.7-rt29 problem Primus Mutasingwa
2010-10-15  7:24 ` Nikita V. Youshchenko
2010-10-15 17:59 ` gowrishankar [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=4CB8966F.1000605@linux.vnet.ibm.com \
    --to=gowrishankar.m@linux.vnet.ibm.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=pmutasingwa@yahoo.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;
as well as URLs for NNTP newsgroup(s).