Re: 2.6.15-rt3 + Open Posix Test Suite



On Tue, 2006-01-10 at 15:03 -0800, Daniel Walker wrote:
> It's worth noting that a few tests in the current Open Posix Test Suite
> hang RT systems.
>
> Specifically this test (hope this url comes through),
>
> http://cvs.sourceforge.net/viewcvs.py/*checkout*/posixtest/posixtestsuite/conformance/interfaces/sched_setparam/10-1.c?rev=1.2
>
> sched_setparam test 10-1.c and I think 9-1.c .
>
> The 10-1 test spawns some children at SCHED_FIFO priority 99 , then runs
> the following,
>
> void child_process(){
> alarm(2);
>
> while(1) {
> (*shmptr)++;
> sched_yield();
> }
> }
>
> I'm sure this is what's hanging the system, the yield() is one issue.
> Another is why the alarm() is never delivered .

This runs a while loop at SCHED_FIFO prio 99? And alarm never happens.
Doesn't the alarm get activated by the softirqd that is running at a
lower priority? Seems that this is starving out the softirq from
getting the alarm.

I believe that Thomas once had priorities attached to the timers. I'd
like to see that again, and may even start adding them myself, such that
when a process activates a timer, when that timer goes off, the softirq
will get the priority of the timer. But this has some complications to
be sorted out.

-- Steve


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



Relevant Pages

  • Re: [PATCH -rt DO NOT APPLY] Fix for tg3 networking lockup
    ... I don't really consider this a networking bug, ... There is some form of priority inheritance on the timer softirq. ...
    (Linux-Kernel)
  • Re: [RT] rt priority losing
    ... priority task, and is running boosted. ... timer is removed from the base before the function runs. ... the thread which will receive it and get rid of the softirq. ...
    (Linux-Kernel)
  • Re: AFSM Brooks timers
    ... The alarm structures, ... coprocessor 387, and the linke between them was a 1200 baud serial ... I think about these low priority tasks too, and suspect they have an "I" ... The "pebble in your shoe" ...
    (comp.robotics.misc)
  • Re: Timers and Serial
    ... never change the priority of a thread you did not create explicitly. ... My app shows how much data was processed as it is processing it and it just seems to hang. ... I disable one timer at a point in my program but it seems that the reamining timer is being interrupted by itself. ... I only found how to change the priority of the current thread so I put that code in the timer's tick event. ...
    (microsoft.public.pocketpc.developer)
  • Re: RT and timers
    ... If jiffies is very fast moving, ... keep up the timer list if we lower its priority. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)