public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Matias Sundman <linux@sundmangroup•com>
To: "linuxppc-embedded@ozlabs•org" <linuxppc-embedded@ozlabs•org>
Subject: SCHED_FIFO & System()
Date: Thu, 17 Jan 2008 08:01:32 +0100	[thread overview]
Message-ID: <478EFD4C.9070706@sundmangroup.com> (raw)

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

I have a real-time 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 ;

  system("run_my_script");

By calling and running a bash script. Independent of how the actual 
script looks like the real time thread does not get scheduled under 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 thread does not get scheduled.

Anybody who recognize this or similar situations?



Cheers // Matias

             reply	other threads:[~2008-01-17  7:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-17  7:01 Matias Sundman [this message]
2008-01-17 22:16 ` SCHED_FIFO & System() Scott Wood
2008-01-18  6:38   ` Matias Sundman
  -- strict thread matches above, loose matches on Subject: below --
2008-01-17 22:14 Arnon Kaufman(Work)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=478EFD4C.9070706@sundmangroup.com \
    --to=linux@sundmangroup$(echo .)com \
    --cc=linuxppc-embedded@ozlabs$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox