From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3532652fa68f9671,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-28 12:25:45 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!caen!msuinfo!urchin!turner From: turner@cps.msu.edu (Stephen Turner) Newsgroups: comp.unix.osf.osf1 Subject: nice and/or Realtime process scheduling Date: 28 Nov 1994 19:27:48 GMT Organization: Department of Computer Science, Michigan State University Distribution: world Message-ID: <3bdavk$175a@msuinfo.cl.msu.edu> NNTP-Posting-Host: urchin.cps.msu.edu Originator: turner@urchin 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."