From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] no-brainer realtime issue
Date: Thu, 16 Feb 2006 18:21:17 +0100 [thread overview]
Message-ID: <43F4B48D.5040809@domain.hid> (raw)
In-Reply-To: <43F4AB33.5080904@domain.hid>
Jan Kiszka wrote:
> Steven Seeger wrote:
>
>>I have a xenomai userspace application that does the following:
>>
>>A thread of priority 90 toggles a bit (outb) to move a stepper motor.
>>
>>A thread of priority 10 updates the display once a second.
>>
>>The motor thread is periodic and uses rt_task_wait_period(). The display
>>thread just uses sleep(1).
>>
>>My question is this: the priority 90 thread is higher priority, and doesn't
>>do anything relating to linux system calls. Whenever the display thread
>>updates the display, the motor thread stalls momentarily.
>>
>>Any idea why this is?
>
>
> If your motor thread really looks like
>
> while (1) {
> toggle_bit();
> rt_task_wait_period();
> }
>
> you may suffer from contentions of the related bus towards your motor
> (what kind of interface do you use?).
>
> To test this, just put some instrumentation around the toggle_bit()
> (take timestamps and look for abnormal delays). What frequency is your
> motor thread running at?
>
> If there is more code in your loop, please post the program (or a
> simplified but still failing version).
Additionally, the output of /proc/xenomai/stat for a failing run might give some
useful information.
>
> Jan
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
next prev parent reply other threads:[~2006-02-16 17:21 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-16 16:21 [Xenomai-help] no-brainer realtime issue Steven Seeger
2006-02-16 16:34 ` Philippe Gerum
2006-02-16 16:41 ` Jan Kiszka
2006-02-16 17:21 ` Philippe Gerum [this message]
[not found] <43F4D077.10003@domain.hid>
2006-02-16 19:48 ` Steven Seeger
2006-02-17 8:17 ` Philippe Gerum
2006-02-17 14:04 ` Steven Seeger
2006-02-17 14:28 ` Philippe Gerum
2006-02-17 14:37 ` Steven Seeger
2006-02-17 15:00 ` Steven Seeger
2006-02-17 15:59 ` Philippe Gerum
2006-02-17 16:05 ` Steven Seeger
2006-02-17 16:27 ` Philippe Gerum
2006-02-17 17:53 ` Steven Seeger
2006-02-17 18:29 ` Philippe Gerum
2006-02-17 18:37 ` Philippe Gerum
2006-02-21 13:50 ` Steven Seeger
2006-02-21 15:04 ` Steven Seeger
2006-02-18 13:05 ` 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=43F4B48D.5040809@domain.hid \
--to=rpm@xenomai.org \
--cc=jan.kiszka@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.