From: Jan Kiszka <jan.kiszka@domain.hid>
To: "M. Koehrer" <mathias_koehrer@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Re: Re: What happens if task entry function returns?
Date: Fri, 17 Nov 2006 16:00:05 +0100 [thread overview]
Message-ID: <455DCE75.1080300@domain.hid> (raw)
In-Reply-To: <16178634.1163773048304.JavaMail.ngmail@domain.hid>
M. Koehrer wrote:
> Hi Jan,
>
> First, I give you some more information about the error.
> The output is the following:
> Hi, I am task A Hello
> Hi, I am task B World
> Main waits for A
> This is the end of A
> Main waits for B
>
> Then the system hangs.
You mean completely? Or just that application? Please enable the Xenomai
watchdog to see if we have a run-away RT thread in that case.
>
> I have done two tests to verify if there is an SMP issue.
> First, I have set all CPUs in use with the application to CPU 0.
> There was no change. However, I am able to stop the application with CTRL-C
> and everything is cleaned up fine.
>
> Then, I have modified the BIOS settings of the PC to disable Hyperthreading.
[Which is recommended anyway to keep latencies bounded - HT is evil for RT!]
> Again, no change. The same effect as with the test before.
>
> The strange thing here is, when I use the original test (main on CPU 0, rt tasks on CPU 1)
> on a SMP machine, I am not able to terminate the application with CTRL-C.
> I have to reboot the PC.
>
> That means, there seems to be a relation to SMP...
Probably in so far that the symptom changes. But !SMP doesn't make it go
away.
>
> Another thing I have detected:
> When I modify the program to replace the final rt_task_delete by
> a sleep(1) call everything runs perfectly again.
Ok, could you try on a non-hanging setup to grab what is happening via
strace?
Thanks,
Jan
next prev parent reply other threads:[~2006-11-17 15:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-17 12:14 [Xenomai-help] Re: Re: What happens if task entry function returns? M. Koehrer
2006-11-17 13:58 ` [Xenomai-help] " Jan Kiszka
2006-11-17 14:17 ` [Xenomai-help] " M. Koehrer
2006-11-17 15:00 ` Jan Kiszka [this message]
2006-11-17 15:28 ` M. Koehrer
2006-11-17 15:38 ` Jan Kiszka
2006-11-18 15:52 ` Philippe Gerum
2006-11-20 7:52 ` Re: [Xenomai-help] Re: Re: What happens if task entry function M. Koehrer
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=455DCE75.1080300@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=mathias_koehrer@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.