xen: credit2: "relax" CSCHED2_MAX_TIMER
authorDario Faggioli <dario.faggioli@citrix.com>
Thu, 15 Sep 2016 11:35:05 +0000 (12:35 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Fri, 30 Sep 2016 15:32:05 +0000 (16:32 +0100)
commitda92ec5bd13b7d0a7093a251a6535f21c7a6ad0e
treeff85926a4275040abb225ab349196ac381087b4d
parentc540b09cecd2d21dfc0f14be1cd89fa9808705b5
xen: credit2: "relax" CSCHED2_MAX_TIMER

Credit2 is already event based, rather than tick
based. This means, the time at which the (i+1)-eth
scheduling decision needs to happen is computed
during the i-eth scheduling decision, and a timer
is set accordingly.

If there's nothing imminent (or, the most imminent
event is really really really far away), it is
ok to say "well, let's double-check things in
a little bit anyway", but such 'little bit' does
not need to be too little, as, most likely, it's
just pure overhead.

The current period, for this "safety catch"-alike
timer is 2ms, which indeed is high, but it can
well be higher. In fact, benchmarks show that
setting it to 10ms --combined with other
optimizations-- does actually improve performance.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/common/sched_credit2.c