> Der Herr Hofrat <[EMAIL PROTECTED]> wrote:
> 
> >> I'm trying to write a rtlinux module with multiple thread. The problem is that 
>these threads put a heavy pressure on the system, and I nees that linux will always 
>have some processing time. I've tried to use the SCHED_OTHER scheduling policy, and 
>modifying the linux task priority under a SCHED_RR policy without success. How can I 
>do it?
> >>
> >this sounds like a conceptual problem - if you have tasks in non-realtime that need 
>to be executed no mater whats going on in rt then thos tasks should be a high 
>priority realtime thread and not a non-realtime task.
> 
> I can't do it, currently, I 'm working on a real-time ethernet driver, to do 
>realtime processing on ethernet frames. The point is that I absolutly need that the 
>"normal" ethernet (IP) traffic gets processed by the linux kernel, and linux process. 
>This is why I absolutly need to be sure that the linux kernel gets time as if it was 
>treated as a RT thread and not as the Idle task
>
you can try it - but your concept is a bad concept and it
sounds like you are going for trouble.

what is the problem with receiving the ehternet frame by a realtime 
driver and passing it on to linux if it needs no procesing within 
realtime context ?
if you need to relie on a linux process to do something then you might as well forget 
using a rt-thread all together and let the rest run in linux kernel space as well - 
you simply can't get rtlinux to allow linux to preemt a rt-task and that is exactly 
what you are requesting.

so either run it all in non-rt and hope it works out 
or get the rt-ethernet driver to process it in rt-context.

hofrat
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to