Andriy Gapon 9aaefb2c53 bhyve: stability and performance improvement for dbgport
The TCP server implementation in dbgport does not track clients, so it
may try to write to a disconected socket resulting in SIGPIPE.
Avoid that by setting SO_NOSIGPIPE socket option.

Because dbgport emulates an I/O port to guest, the communication is done
byte by byte.  Reduce latency of the TCP/IP transfers by using
TCP_NODELAY option.  In my tests that change improves performance of
kgdb commands with lots of output (e.g. info threads) by two orders of
magnitude.

A general note.  Since we have a uart emulation in bhyve, that can be
used for the console and gdb access to guests.  So, bvmconsole and bvmdebug
could be de-orbited now.  But there are many existing deployments that
still dependend on those.

Discussed with:	julian, jhb
MFC after:	2 weeks
Sponsored by:	Panzura
2016-11-29 13:11:00 +00:00
..
2016-10-17 09:40:18 +00:00
2016-11-08 23:59:41 +00:00
2016-09-17 13:48:01 +00:00
2016-07-17 14:13:47 +00:00
2016-08-30 12:40:12 +00:00
2016-07-06 05:05:03 +00:00
2016-07-06 05:17:56 +00:00
2016-09-17 13:48:01 +00:00