Files
linuxkit/alpine/packages
David Scott 3fc0d994b5 tap-vsockd: add buffering
This patch adds a simple ring buffer implementation and uses it to buffer
the reads and writes to/from the AF_HYPERV socket and tap file descriptor.

This removes the need to perform small reads and writes for the per-packet
headers and allows a read on the Hyper-V socket to block at the same time
as a write to the tap device (and vice-versa)

The configuration in the init.d script is:

- a max message size (individual read or write) of 8192. Experimentally
  this seems to be the largest completely reliable size across the Windows
  versions we can support. Messages of length 16384 sometimes fail.
- a buffer size of 256KiB in each direction.

Single stream TCP throughput as measured by iperf increases modestly, by
another 100Mbit/sec.

Signed-off-by: David Scott <dave.scott@docker.com>
2017-01-23 12:17:52 +00:00
..
2017-01-10 19:58:31 +01:00
2017-01-17 16:03:50 +00:00
2017-01-18 16:14:17 +00:00
2017-01-17 16:03:50 +00:00
2017-01-23 12:17:52 +00:00
2016-12-09 17:13:16 -08:00
2016-07-11 14:47:23 +01:00
2017-01-17 16:03:50 +00:00
2016-12-19 16:13:02 -08:00