Re: Setting priority for exe built in DFf6.6

From: Stig Kildegård Andersen (stigkildegaardatmaildotdk_at_clear.all.after.dk)
Date: 05/27/04


Date: Thu, 27 May 2004 16:34:34 +0200


> Anyway I got help by using sleepqq(). Just setting the priority in
> the starting of application does not seem to be enough (start/low ...).
> Somehow calculation needs to have frequently call sleepqq(0):s or
> call sleepqq(1):s to check is there other processes needing part
> it's cpu-use. I noticed when using these sleepqq:s total cpu-need
> was reduced from 29 s to 4 seconds; strange. Total time needed for
> the calculation was changed from 30 s to 35 s.

It is odd, I think, that lowering the priority of the process is not enough.
In my experience using the code I posted above is sufficient. I use it when
I run run parallel programs on a network of non-dedicated machines and I
have not yet received a single complaint about my programs not yielding the
CPU to other programs. Windows appears very efficient at excutig higher
priority threads before lower prioriy ones. Does your application use
multiple threads so that some might remain at high priority or do you use
library routines that can sit on the CPU while waiting for a response from
the network, or similar?

Kind Regards,
Stig Kildegård



Relevant Pages

  • [ckpatch][3/29] 2.6.17-smpnice-staircase-16
    ... Implement the "staircase" hybrid foreground-background single priority ... array cpu scheduler policy. ... extern struct user_struct root_user; ... goto out_running; ...
    (Linux-Kernel)
  • [RFC][PATCH] O(1) Entitlement Based Scheduler
    ... This patch is a modification of the Oscheduler that introduces ... _entitlement_ to CPU resources that is determined by the number of _shares_ ... This patch provides both soft and hard CPU usage rate caps per ... one getting the most can be given a better priority, ...
    (Linux-Kernel)
  • [ANNOUNCE] RSDL completely fair starvation free interactive cpu scheduler
    ... Staircase DeadLine" cpu scheduler. ... A novel design which incorporates a foreground-background descending priority ... the cpu that it is queued onto also keeps a record of that quota. ... run at this runqueue's current priority rotation. ...
    (Linux-Kernel)
  • Re: [ANNOUNCE] RSDL completely fair starvation free interactive cpu scheduler
    ... Staircase DeadLine" cpu scheduler. ... A novel design which incorporates a foreground-background descending priority ... the cpu that it is queued onto also keeps a record of that quota. ... task uses up its quota it is decremented one priority level. ...
    (Linux-Kernel)
  • [PATCH] [RSDL-mm 6/6] sched: document rsdl cpu scheduler
    ... Add comprehensive documentation of the RSDL cpu scheduler design. ... +A novel design which incorporates a foreground-background descending priority ... +the cpu that it is queued onto also keeps a record of that quota. ...
    (Linux-Kernel)