[Date Prev][Date Next] [Chronological] [Thread] [Top]

[rtl] user level hungs



Hi,

I have an annoying bug, - causes user level task hangs.
.
I have a few real-time tasks, and 5 user level tasks working together,
communicating threw both fifos & shared memory.    from time to time the

user level hangs - or, actually, only part of the user level, I made a
test
that i only run one user level task, the ones that use shared memory set

stuck from time to time. - usually work for a few hours to a day or 2,
and
then stuck, while the real time modules still work fine.
I can eliminate the problem by reducing the real-time speed (less
executions per second) , but on high speed (about 200 to 2000 times a
sec,
which is what i need) I have the problem.
in the test, all the user level task was doing, was reading the shared
memory, and echoing some data out of it to the screen , then waiting for
a
fifo with select (the fifo never got data in the test !), select
time-out,
checking the memory again & so on ....
The program seams to be stuck at the select line, but it might be that
it
seams they way only cause the program sits on that line for about 99% of

the time ...
then the user lever stuck, and I do a "ps x" command, the status of the
stuck program is 'R' (running) , and the cpu usage of it (threw top) is
zero.

any ideas will be very appreciated.

Thanks in advance,

Assaf


--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/