0

In this article, in the section titled Fairness with difficult workloads, they talk about unfairness and quantify it on a scale that goes from 0% (best) to 50% (worst). How is that measured? What do these numbers indicate?

Marco Bonelli
  • 63,369
  • 21
  • 118
  • 128
user401445
  • 15
  • 4

1 Answers1

0

Unfairness compares actual running time to ideal running time. If you have C cpus, T tasks and S seconds, then ideal running time for each task is

t(ideal) = C * S / T

If you have one CPU and 2 tasks, and one task gets all of the time when it should get half the time, then unfairness is 50%. As it says in the article, 50% is the worst case unfairness.

stark
  • 12,615
  • 3
  • 33
  • 50