All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomas Kalibera <kalibera@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] runaway secondary tasks lock up
Date: Fri, 16 May 2008 12:47:54 -0400	[thread overview]
Message-ID: <482DBABA.9010408@domain.hid> (raw)


Hi,

I've noticed an interesting difference regarding primary and secondary 
domain runaway tasks. The primary domain ones are detected by Xenomai 
watchdog and terminated. The secondary domain ones are not terminated, 
but cause a system lockup, because a secondary domain task is always run 
in preference of other tasks  (kernel complains by  BUG: soft lockup - 
CPU#0 stuck for 11s!). Would there be a way to also detect the secondary 
domain runaway threads ? Since the kernel itself can do it, it should be 
possible, right ?

Now, I've discovered that if I assign the secondary domain task priority 
0, it would not lock up the system. 1 would, 99 would as well. What is 
the semantics ? Any secondary domain task with priority above zero runs 
in preference of any (non-Xenomai) Linux thread ?

And asking from the other end, how to write polling (secondary domain) 
applications in Xenomai ? Should it have priority 0 ?

Thanks,
Tomas




             reply	other threads:[~2008-05-16 16:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-16 16:47 Tomas Kalibera [this message]
2008-05-16 17:26 ` [Xenomai-help] runaway secondary tasks lock up Gilles Chanteperdrix
2008-05-16 17:53   ` Tomas Kalibera
2008-05-16 18:27     ` Gilles Chanteperdrix

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=482DBABA.9010408@domain.hid \
    --to=kalibera@domain.hid \
    --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.