All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Philippe Gerum <rpm@xenomai.org>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] How do I increase CPU time limit.
Date: Wed, 21 Mar 2012 00:40:29 +0100	[thread overview]
Message-ID: <4F69156D.3060005@domain.hid> (raw)
In-Reply-To: <4F6897A5.70601@domain.hid>

On 03/20/2012 03:43 PM, Philippe Gerum wrote:
> On 03/20/2012 03:09 PM, Chris Stone wrote:
>> I have a thread which uses a lot of CPU and it is receiving a SIGXCPU:
>> Cpu time limit exceeded. Does this message really mean I have exceeded
>> some CPU time limit? If so, how do I increase or disable the CPU time
>> limit? The code that I am running has been working for quite some time
>> under regular Linux and I have just ported it to Xenomai, so I doubt
>> there are any infinite loops in it.
> 
> This could be the runaway thread detector triggering, after 4s of 
> uninterrupted runtime (which is huge, is this intended?). This is a 
> debug mechanism Xenomai implements to recover from a runaway thread 
> chewing CPU in primary mode, without having to resort to the reset button.
> You can either extend the grace period above the default 4s, using 
> CONFIG_XENO_OPT_WATCHDOG_TIMEOUT, or disable the watchdog entirely by 
> switching off CONFIG_XENO_OPT_WATCHDOG. This said, 4s is really long 
> already, so the regular kernel might not cope with even more starvation 
> from normal interrupts.
> 
> Other explanation would be not time-related. If 
> CONFIG_XENO_OPT_DEBUG_SYNCH_RELAX is enabled, any attempt to switch to 
> secondary mode while holding a real-time (Xenomai created) mutex in the 
> code would trigger such signal, as a warning to point out a priority 
> inversion.

You may find an example of how to install a SIGXCPU handler and decode
signals sent by xenomai in examples/native/sigdebug.c

-- 
                                                                Gilles.


      reply	other threads:[~2012-03-20 23:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-20 14:09 [Xenomai-help] How do I increase CPU time limit Chris Stone
2012-03-20 14:31 ` Mustafa ÇAMURLI
2012-03-20 14:43 ` Philippe Gerum
2012-03-20 23:40   ` Gilles Chanteperdrix [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=4F69156D.3060005@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=rpm@xenomai.org \
    --cc=xenomai@xenomai.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 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.