Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Aug 2018 20:42:33 +0300
From:      Rozhuk Ivan <rozhuk.im@gmail.com>
To:        Honda Michio <micchie@sfc.wide.ad.jp>
Cc:        freebsd-current@freebsd.org
Subject:   Re: TCP server app performance
Message-ID:  <20180812204233.0fcc4f04@gmail.com>
In-Reply-To: <CA%2BSc9E3_6bw68odAMH2Y-SzR2-PjuxZG6jp8P0JZV6z9LgmwQw@mail.gmail.com>
References:  <CA%2BSc9E3_6bw68odAMH2Y-SzR2-PjuxZG6jp8P0JZV6z9LgmwQw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 12 Aug 2018 18:50:17 +0200
Honda Michio <micchie@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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180812204233.0fcc4f04>