From: Li Yi <yi.li@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Will Linux kernel lose timer ticks when RT thread is running
Date: Thu, 20 Apr 2006 19:05:08 +0800 [thread overview]
Message-ID: <1145531108.16603.79.camel@domain.hid> (raw)
In-Reply-To: <4447441C.3070400@domain.hid>
Thanks for the clarification.
I added a sleep(1) before read the "/proc/interrupts", and the timer
interrupts for Linux kernel really got "Replayed". The system time
catches up with the wall clock.
But still some question:
On Thu, 2006-04-20 at 10:19 +0200, Philippe Gerum wrote:
> >
> > In the particular case of multi-ms processing, I would likely suggest to
> > move it to a thread running in secondary mode without interrupt
> > shielding, so that Linux asynchronous activities such as interrupt
> > handling would still be possible, at the expense of a lesser execution
> > time predictability of such processing though.
> >
> >
In my test, I am using rt_timer_spin() to simulate the real-time
workload. And "/proc/xenomai/stat" shows "MSW" as "1/1", and in one test
loop, there is no change for "MSW". So I concluded my test case is
running in secondary mode. And my "Interrupt shield support"
configuration is _not_ select. But it looks the Linux kernel does _not_
handle timer interrupt while the real-time task is running. Did I miss
anything?
> >
> > You may want to make your measurement thread sleep() for a while before
> > looking at the final tick counter; this would make sure that the IRQ
> > threads have been given enough time to catch up and process all pending
> > ticks they have in their log. Btw, did you activate CONFIG_PREEMPT?
> >
>
> Er, sorry. There's no CONFIG_PREEMPT on Blackfin yet.
Thanks,
-Li Yi (Adam)
next prev parent reply other threads:[~2006-04-20 11:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-19 18:20 [Xenomai-help] Will Linux kernel lose timer ticks when RT thread is running Li Yi (Adam)
2006-04-20 8:08 ` Philippe Gerum
2006-04-20 8:19 ` Philippe Gerum
2006-04-20 11:05 ` Li Yi [this message]
2006-04-20 12:46 ` Philippe Gerum
2006-04-20 13:43 ` adam li
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=1145531108.16603.79.camel@domain.hid \
--to=yi.li@domain.hid \
--cc=rpm@xenomai.org \
--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.