[ovs-dev] [PATCH v1] dpif-netdev: includes microsecond delta in meter bucket calculation

William Tu u9012063 at gmail.com
Thu Apr 9 21:51:31 UTC 2020


On Thu, Apr 09, 2020 at 08:58:42AM +0000, 姜立东 via dev wrote:
> From 909123e16ed9115a5b14fef623d47d37a0b176b2 Mon Sep 17 00:00:00 2001
> From: Jiang Lidong <jianglidong3 at jd.com>
> Date: Tue, 7 Apr 2020 10:33:14 +0800
> Subject: [PATCH v1] dpif-netdev: includes microsecond delta in meter bucket calculation
> 
> When dp-netdev meter rate is higher than 200Mbps, observe
> more than 10% bias from configured rate value with UDP traffic.
> 
> In dp-netdev meter, millisecond delta between now and last used
> is taken into bucket size calculation, while sub-millisecond part
> is truncated.
> 
> If traffic rate is pretty high, time delta can be few milliseconds,
> its ratio to truncated part is less than 10:1, the loss of bucket
> size caused by truncated can be observed obviously by committed
> traffic rate.
> 
> In this patch, microsecond delta part is included in calculation
> of meter bucket to make it more precise.
> 
> Signed-off-by: Jiang Lidong <jianglidong3 at jd.com>
> 
> Acked-by: William Tu <u9012063 at gmail.com>

Applied to master, thanks.
William


More information about the dev mailing list