Re: TCP server app performance

From: Rozhuk Ivan <rozhuk.im_at_gmail.com>
Date: Sun, 12 Aug 2018 20:42:33 +0300
On Sun, 12 Aug 2018 18:50:17 +0200
Honda Michio <micchie_at_sfc.wide.ad.jp> wrote:

> I'm measuring TCP server app performance using my toy web server.
> It just accept TCP connections and responds back HTTP OK to the
> clients. It monitors sockets using kqueue, and processes each ready
> descriptor using a pair of read() and write(). (in more detail, it's
> https://github.com/micchie/netmap/tree/paste/apps/phttpd)

1. Call accept() in loop until get error.
2. Use reuseport option for load balance.
Received on Sun Aug 12 2018 - 15:42:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:17 UTC