Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* nice and/or Realtime process scheduling
@ 1994-11-28 19:27 Stephen Turner
  0 siblings, 0 replies; only message in thread
From: Stephen Turner @ 1994-11-28 19:27 UTC (permalink / raw)


Greetings.

I'm not sure exactly how to put this...

In running applications under OSF/1 v. 2.0, I'm having serious
problems using either the nice or the realtime scheduling interface.
What it boils down to is this:

1) If program A reschedules itself using the nice or realtime interface,
   then everything seems to work OK.  Namely, I'm using the following
   system calls:

	setpriority (for nice interface)
	sched_setscheduler  (for RT interface)

2) If program B reschedules program A using either the nice or the realtime
   interface, then the performance (of program A) degrades.

   B is using the same system calls to change A's characteristics.

What I'm trying to do:  have program B reschedule program A into the highest
priority level FIFO class.  Or, if I'm using the nice interface, set
program A to the highest possible priority level without changing its
scheduling class.  However, when I do this, the performance of program
A goes down, relative to what happens in case 1.

Furthermore, the realtime FIFO scheduling class is not behaving as
advertised, regardless of the cases above.  For example, I've had
the following experience:

	program 1 sets itself to highest priority, FIFO
	program 2 sets itself to (highest - 20), FIFO.

	both programs have high CPU demand, and their run times are
	exactly the same (they are two versions of the same program).

	program 2 receives a greater percent of the CPU, and finishes first.

According to the DEC Guide to Realtime Programming, program 1 should
completely preempt program 2.  Obviously, it didn't happen.

I guess what I'm looking for is ANYbody who has some experience dealing
with realtime programming on DEC OSF/1, who might be able to answer a
couple of questions.

Thanks in advance,
-Steve Turner (turner@cps.msu.edu)
-- 
"My car says that I am poor."


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-11-28 19:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-11-28 19:27 nice and/or Realtime process scheduling Stephen Turner

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