From owner-freebsd-current@freebsd.org Sun Aug 12 19:32:39 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7BD8107A3D2 for ; Sun, 12 Aug 2018 19:32:39 +0000 (UTC) (envelope-from micchie@sfc.wide.ad.jp) Received: from mail.sfc.wide.ad.jp (mail.sfc.wide.ad.jp [IPv6:2001:200:0:8803:203:178:142:146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 36EE5765DC for ; Sun, 12 Aug 2018 19:32:39 +0000 (UTC) (envelope-from micchie@sfc.wide.ad.jp) Received: from n-1059.office.hd (pD9F0CC73.dip0.t-ipconnect.de [217.240.204.115]) by mail.sfc.wide.ad.jp (Postfix) with ESMTPSA id 28EA2278433; Mon, 13 Aug 2018 04:32:33 +0900 (JST) Subject: Re: TCP server app performance To: Rozhuk Ivan Cc: freebsd-current@freebsd.org References: <20180812205049.097f806f@gmail.com> From: Michio Honda Message-ID: Date: Sun, 12 Aug 2018 21:32:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180812205049.097f806f@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2018 19:32:39 -0000 Hi Rozhuk, I only use a single CPU core and thread, so SO_REUSEPORT_LB has no effect. Also, I already accept() in loop until getting error, but this is not a point as I use persistent TCP connections... Cheers, - Michio On 08/12/2018 07:50 PM, Rozhuk Ivan wrote: > On Sun, 12 Aug 2018 18:50:17 +0200 > Honda Michio 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) >> > > PS: > 2. SO_REUSEPORT_LB >