linuxkit / virtsock

Go bindings for virtio and Hyper-V sockets
Other
88 stars 30 forks source link

Support for larger (and very large) buffers in hvgostress #4

Closed ijc closed 7 years ago

ijc commented 7 years ago

The current implementation does not allow for very large buffers since the client side does both Rx and Tx into static local buffers, meaning that testing with e.g. 4G of data is going to take ~8G of memory (and/or swap like mad).

This PR improves things in this use case by:

It also detects Tx and Rx hangs on the client side (which doesn't really relate to using larger buffers but I had an itch).

rn commented 7 years ago

Very useful additions. LGTM