« Previous | Next » 

Revision 20048d0a

ID20048d0a12b1080f688ff9b82696134df1aa3607

Added by Stefan Hajnoczi over 11 years ago

net: use socket_set_nodelay() for -netdev socket

Reduce -netdev socket latency by disabling the Nagle algorithm on
SOCK_STREAM sockets in net/socket.c. Since we are tunelling Ethernet
over TCP we shouldn't artificially delay outgoing packets, let the guest
decide packet scheduling.

I already get sub-millisecond -netdev socket ping times on localhost, so
there was no measurable difference in my testing. This won't hurt
though and may improve remote socket performance.

Signed-off-by: Stefan Hajnoczi <>
Reviewed-by: Benoit Canet <>
Reviewed-by: Daniel P. Berrange <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences