From: Philippe Gerum <rpm@xenomai.org>
To: "Jens Köhler" <jenskxxx@googlemail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Xenomai and normal linux application - Wait time with select() not reliable
Date: Wed, 04 Jul 2012 15:33:21 +0200 [thread overview]
Message-ID: <4FF44621.5020609@xenomai.org> (raw)
In-Reply-To: <CAL7_A_Xr432pEEEiG4D5xsD-2yqWdgSd0tD26aEi4q0FzeWD_w@mail.gmail.com>
On 07/04/2012 01:45 PM, Jens Köhler wrote:
> The Xenomai application runs every 2ms for about 150 us and sends/
> receives an udp packet.Rtnet socket is used for udp communication.
>
> /proc/xenomai/stat:
>
> CPU PID MSW CSW PF STAT %CPU NAME
> 0 0 0 272362 0 00500080 93.8 ROOT
> 0 0 0 13475 0 00000082 0.0 rtnet-stack
> 0 0 0 1 0 00000082 0.0 rtnet-rtpc
> 0 1843 1 11677 0 00300182 0.1 SgbmReceive
> 0 1844 1 67501 0 00300184 4.7 SgbmSend
> 0 1845 63111 63304 0 00300380 0.3 SgbmUserSpaceComm
This thread seems to be switching modes a lot. Does it do this
frequently? Each mode switch involves a task switch linux-wise.
> 0 1846 1 134963 0 00300184 0.5 SgbmTimer
> 0 0 0 67500 0 00000000 0.3 IRQ19: rteth0
> 0 0 0 298425 0 00000000 0.3 IRQ233: [timer]
>
> Application was ported from RTAI to Xenomai. With Rtai was never a
> problem with select.
Is it supposed to give us any hint?
>
> Jens
>
>
> 2012/7/4, Philippe Gerum <rpm@xenomai.org>:
>> On 07/04/2012 10:45 AM, Gilles Chanteperdrix wrote:
>>> On 07/04/2012 10:36 AM, Jens Köhler wrote:
>>>> Thank you for your response Gilles. I set thread to SCHED_FIFO policy
>>>> with chrt command, Prio 99. But there is no improvement. Also
>>>> nanosleep do not help. The kernel is 2.6.26. What could be reason that
>>>> kernel is not restart thread when time is over?
>>>
>>> It could be that the xenomai activity, if any, is running for long
>>> periods of time and causing linux ticks to be delayed. As usual, it
>>> would help if you could provide a self-contained test-case allowing us
>>> to reproduce the issue.
>>>
>>
>> /proc/xenomai/stat as well, in case the rt activity changes mode a lot.
>>
>> --
>> Philippe.
>>
>>
>>
>
--
Philippe.
prev parent reply other threads:[~2012-07-04 13:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 13:30 [Xenomai] Xenomai and normal linux application - Wait time with select() not reliable Jens Köhler
2012-07-03 21:53 ` Gilles Chanteperdrix
2012-07-04 8:36 ` Jens Köhler
2012-07-04 8:45 ` Gilles Chanteperdrix
2012-07-04 10:06 ` Philippe Gerum
2012-07-04 11:45 ` Jens Köhler
2012-07-04 12:04 ` Gilles Chanteperdrix
[not found] ` <CAL7_A_VQe-KGBoYq034hT=6CdJJPpwEQTs1EgDQ=325WjOfUzw@mail.gmail.com>
2012-07-04 12:57 ` Gilles Chanteperdrix
2012-07-04 13:10 ` Jens Köhler
2012-07-04 13:17 ` Jens Köhler
2012-07-04 13:22 ` Gilles Chanteperdrix
[not found] ` <CAL7_A_WTJUeWNTTra2t9veiyWMxC5VtpotocMHGPdU1v7QAxKA@mail.gmail.com>
[not found] ` <4FF44C52.6050809@xenomai.org>
[not found] ` <CAL7_A_VUC8JD9yeMnLt2iJQ0ex_at3QMhiL3cQ5CHPFh0rcJRA@mail.gmail.com>
[not found] ` <4FF585C4.1000708@xenomai.org>
2012-11-19 13:29 ` Jens Köhler
2012-11-19 13:42 ` Gilles Chanteperdrix
2012-12-03 7:59 ` Jens Köhler
2012-12-03 9:26 ` Gilles Chanteperdrix
2012-12-04 10:09 ` Jens Köhler
[not found] ` <CAL7_A_XHtj19V3gnog7_Hoer6UGxRJfoFwT0sgzQvhtARB3b9A@mail.gmail.com>
2013-01-21 12:09 ` Gilles Chanteperdrix
[not found] ` <CAL7_A_Wkjj1mTeDcEfDzPKFkQhiYeChPgC=ggVkedxqy=yaLng@mail.gmail.com>
2013-01-21 18:48 ` Gilles Chanteperdrix
2012-07-04 13:33 ` Philippe Gerum [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=4FF44621.5020609@xenomai.org \
--to=rpm@xenomai.org \
--cc=jenskxxx@googlemail.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.