public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RTlinux & Linux Question
@ 2000-11-27  1:36 Mastoras
  2000-11-27 17:58 ` Roger Larsson
  0 siblings, 1 reply; 2+ messages in thread
From: Mastoras @ 2000-11-27  1:36 UTC (permalink / raw)
  To: rtl, linux-kernel

Hello,

        I'm trying to use RTlinux to make a unix process wakeup 
periodicaly, in terms of "real time".

1) the unix process uses 2 system calls, one to make it self periodic, and
one to suspend its self until the next period.

2) The system call that makes the unix process periodic, creates a Rtlinux
thread, which is periodic with the same period.

3) The periodic RT linux thread, sets a flag & sends fakes IRQ0 to linux,
in order to force its scheduling as soon as possible and then suspends it
self. (i know that this advances time, but this is not the question right
now).

4) The unix process wakeups perfectely when there is no disk activity, but
when there is some disk activity ("find /" and/or "updatedb") or the
period is too small (300us) i noticed that sometimes it loses one or two
periods. This is very rare, i mean 14 loses in 5000 executions at 5ms
period.

5) The unix process isn't scheduled the appropriate time although that
every IRQ is received by linux correctly, the myprocess->counter is
initialized to a very high value (in each period) and
current->need_resched is set to 1.

6) I don't want to use PSC.


        I believe that there is somekind of race conditions during the
bottom halves or something else that i haven't though. Your help would be
very valuable, though this might not be a strictly RT linux question.

TIA
mastoras@hack.gr


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-27 18:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-27  1:36 RTlinux & Linux Question Mastoras
2000-11-27 17:58 ` Roger Larsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox