Skip to contentSkip to conversation

net: use socket_set_nodelay() for -netdev socket

PATCH Stefan Hajnoczi 1 participant 1 message Mar 1, 2013 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 22 lines · Daniel P. Berrange
Quoted 13 lines · Stefan Hajnoczi
Quoted 12 lines · Daniel P. Berrange
Quoted 10 lines · Stefan Hajnoczi

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.

Quoted 7 lines
Quoted 3 lines

ACK.

Hi Dan,
QEMU usually only uses Singed-off-by: for authors and subsystem maintainers who merge the patch.

Quoted 7 lines

Ah, ok.

Quoted 3 lines

Is it okay if I add a Reviewed-by: Daniel P. Berrange <[email protected]> instead?

Of course.

Thanks, done.

Stefan