Re: [patch] CFS (Completely Fair Scheduler), v2



Ingo Molnar wrote:
* William Lee Irwin III <wli@xxxxxxxxxxxxxx> wrote:

On Tue, Apr 17, 2007 at 04:46:57PM +1000, Peter Williams wrote:

Have you considered using rq->raw_weighted_load instead of rq->nr_running in calculating fair_clock? This would take the nice value (or RT priority) of the other tasks into account when determining what's fair.
I suspect you mean (curr->load_weight*delta_exec)/rq->raw_weighted_load in update_curr().

good idea, i'll try that.

In the longer term, I'd suggest modifying this idea to use the maximum of rq->raw_weighted_load and a running average of rq->raw_weighted_load much the same as was done within the load balancer code. This will tend to make scheduling "smoother". To try the idea out you could (on an SMP system) use one of the rq->cpu_load[] metrics as the running average.

Peter
--
Peter Williams pwil3058@xxxxxxxxxxxxxx

"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Can extra processing threads help in this case?
    ... including free user accounts. ... whose name is the user account, ... of priority where the high level priority preempts the lower ... name, and since the files were kept in alphabetical order, ...
    (microsoft.public.vc.mfc)
  • Re: "Access denied" while trying to change a service priorityclass
    ... you will have rights to elevate the priority of the process. ... service to run under the LocalService account and see if you can elevate ... I know services don't have user tokens - I suspect users do have ... Impersonate method (the documentation for the Impersonate method should ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: "Access denied" while trying to change a service priorityclass
    ... The funny thing is that I can lower the priority class for ... the priority class of the service? ... service to run under the LocalService account and see if you can elevate ... I know services don't have user tokens - I suspect users do have ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Boss wants a "secret" mail account
    ... priority account, it has the same header as his regular account. ... set up another exchange account with the 'priority' username. ...
    (microsoft.public.exchange.admin)
  • Re: Boss wants a "secret" mail account
    ... priority account, it has the same header as his regular account. ... Set up a second mail box for your boss and assign rights. ... Boss gives important customer his "priority" address. ...
    (microsoft.public.exchange.admin)