RE: [PATCH net-next] hv_sock: perf: loop in send() to maximize bandwidth
From: Dexuan Cui <decui@microsoft.com>
Date: 2019-05-22 23:31:52
Also in:
linux-hyperv, lkml
From: Dexuan Cui <decui@microsoft.com>
Date: 2019-05-22 23:31:52
Also in:
linux-hyperv, lkml
From: linux-hyperv-owner@vger.kernel.org [off-list ref] On Behalf Of Sunil Muthuswamy Currently, the hv_sock send() iterates once over the buffer, puts data into the VMBUS channel and returns. It doesn't maximize on the case when there is a simultaneous reader draining data from the channel. In such a case, the send() can maximize the bandwidth (and consequently minimize the cpu cycles) by iterating until the channel is found to be full.
Reviewed-by: Dexuan Cui <decui@microsoft.com> The patch looks good. Thanks, Sunil! Thanks, -- Dexuan