From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Guoquan Hu <flyingfox_hu@163.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Question on linux+xenomai
Date: Mon, 14 Dec 2015 23:32:24 +0100 [thread overview]
Message-ID: <20151214223224.GC16627@hermes.click-hack.org> (raw)
In-Reply-To: <uilidxdi7i7s3a3vwg8fck63.1450082790936@email.android.com>
On Mon, Dec 14, 2015 at 04:52:11PM +0800, Guoquan Hu wrote:
> Hi, Xenomai maintainers, I am a Xenomai user from china, my
> environment is: linux(2.6.32)+xenomai(2.5.4).
This is really old. Linux 2.6.32 was released in december 2009 (6
years ago), and Xenomai 2.5.4 was released in august 2010 (5 years
ago).
Chances are the bugs you can have with this version have been fixed
a long time ago.
> I meet several
> problems on my debug environment, and I want to ask for advice to
> some questions about xenomei, would you please give some respond?
> My questions: 1.When CPU is high working load (near 100%) or
> nearly no memory left, the real time thread is killed. What is the
> mechanism behind and how to avoid it?
The mechanism is the Xenomai watchdog (option named
CONFIG_XENO_OPT_WATCHDOG in 2.6, not sure it had the same name in
2.5). But you probably do not want to disable it: starving Linux
from its timer interrupt may result in an unstable system.
>
> 2.Under this environment, if OS is kernel crashed or real time communication(e.g
> Pipe or MsgQueue) is blocked, how to debug or trace? Any system log indicate such kinds of things happened? Any kernel dump mechanism is available for offline
> analysis?
What you want is the I-pipe tracer, but you have to add the trace
points manually, or use the CONFIG_IPIPE_TRACE_MCOUNT option to get
all the kernel functions traced.
> 3.Whether “Disk is set to read-only” related to real time thread usage? For example, if we use real time thread to write files on disk with high data rate, whether it
> would cause system unstable or “disk read-only”?
a real time thread can not really write to disk, it will switch to
secondary mode when doing so. And no, it should not result in the
filesystem being remounted read-only. A reason for remounting the
system read-only, however is an unclean filesystem, without a
journal and with the machine being rebooted without cleanly
unmounting it. After an unclean reboot, you should run fsck on all
file systems without a journal (fat, ext2, etc...). The problem may
also be due to the old versions you are using.
> 4.If we want to get technical support or consultant service, any
> company or person can provide such service?Thank!
I am sure there are several companies on this mailing list offering
such services, I trust they will have answered you privately.
--
Gilles.
https://click-hack.org
next prev parent reply other threads:[~2015-12-14 22:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-14 8:52 [Xenomai] Question on linux+xenomai Guoquan Hu
2015-12-14 22:32 ` Gilles Chanteperdrix [this message]
2015-12-15 9:44 ` Guoquan Hu
2015-12-15 17:19 ` 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=20151214223224.GC16627@hermes.click-hack.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=flyingfox_hu@163.com \
--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.