avg 4596354565 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-04 20:27:15 +00:00
2016-11-13 17:55:27 +00:00
2016-09-21 10:58:58 +00:00
2016-08-23 13:43:43 +00:00
2016-11-08 23:59:41 +00:00
2016-11-22 08:27:49 +00:00
2016-10-21 15:23:54 +00:00
2016-09-30 20:35:12 +00:00
2016-11-27 19:27:13 +00:00
2016-09-04 12:17:57 +00:00