83415d4fd8
The QoS scheduler works off port time that is computed from the number
of CPU cycles that have elapsed since the last time the port was
polled. It divides the number of elapsed cycles to calculate how
many bytes can be sent, however this division can generate rounding
errors, where some fraction of a byte sent may be lost.
Lose enough of these fractional bytes and the QoS scheduler
underperforms. The problem is worse with low bandwidths.
To compensate for this rounding error this fix doesn't advance the
port's time_cpu_cycles by the number of cycles that have elapsed,
but by multiplying the computed number of bytes that can be sent
(which has been rounded down) by number of cycles per byte.
This will mean that port's time_cpu_cycles will lag behind the CPU
cycles momentarily. At the next poll, the lag will be taken into
account.
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
meson.build | ||
rte_approx.c | ||
rte_approx.h | ||
rte_red.c | ||
rte_red.h | ||
rte_sched_common.h | ||
rte_sched_version.map | ||
rte_sched.c | ||
rte_sched.h |