public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SCHED_FIFO & system()
@ 2008-01-17 10:19 linux
  2008-01-18  6:41 ` Matias Sundman
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: linux @ 2008-01-17 10:19 UTC (permalink / raw)
  To: linux-kernel


Hello,
I have some strange behavior in one of my systems.

I have a real-time kernel thread under SCHED_FIFO which is running every
10ms.
It is blocking on a semaphore and released by a timer interrupt every 10ms.
Generally this works really well.

However, there is a module in the system that makes a / system() / call
from c-code in user-space;

  system("run_my_script");

By calling and running a bash script. Independent of how the actual
script looks like the real time kernel thread does not get scheduled under
the time of 80ms -- the time it takes for the system() call to finish.

I can see when running a LTT session that the wake_up event occurs for
the real time thread 10ms into the system call but nevertheless the real
time kernel thread does not get scheduled.

The thread that calls system("run_my_script") is configured as SCHED_OTHER.

The Kernel is 2.6.21.


Anybody who recognize this or similar situations?



Cheers // Matias

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

end of thread, other threads:[~2008-01-18 16:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-17 10:19 SCHED_FIFO & system() linux
2008-01-18  6:41 ` Matias Sundman
2008-01-18 13:16 ` Gregory Haskins
2008-01-18 13:31   ` Gregory Haskins
2008-01-18 16:37 ` Steven Rostedt

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