From owner-freebsd-net@freebsd.org Thu Feb 23 15:36:46 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 517E2CEBEE2 for ; Thu, 23 Feb 2017 15:36:46 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 3BE831126 for ; Thu, 23 Feb 2017 15:36:46 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: by mailman.ysv.freebsd.org (Postfix) id 38410CEBEE1; Thu, 23 Feb 2017 15:36:46 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37E6FCEBEE0 for ; Thu, 23 Feb 2017 15:36:46 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (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 EB2491123; Thu, 23 Feb 2017 15:36:45 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1cgvRc-0003Tb-SU; Thu, 23 Feb 2017 18:36:36 +0300 Date: Thu, 23 Feb 2017 18:36:36 +0300 From: Slawa Olhovchenkov To: Sepherosa Ziehau Cc: Gleb Smirnoff , rrs@freebsd.org, hiren@freebsd.org, Jason Eggleston , Julien Charbon , "freebsd-net@freebsd.org" , jtl@freebsd.org Subject: Re: listening sockets as non sockets Message-ID: <20170223153636.GI15630@zxy.spb.ru> References: <20170127005251.GM2611@FreeBSD.org> <20170210063024.GE1973@FreeBSD.org> <20170216184903.GF58829@FreeBSD.org> <0858647a-ec3c-1a78-053f-d04397a82d8a@freebsd.org> <20170222232704.GJ8899@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2017 15:36:46 -0000 On Thu, Feb 23, 2017 at 11:40:21AM +0800, Sepherosa Ziehau wrote: > On Thu, Feb 23, 2017 at 7:27 AM, Gleb Smirnoff wrote: > > On Tue, Feb 21, 2017 at 09:58:45AM +0100, Julien Charbon wrote: > > J> > T> 1) The patch worked pretty okay, but the idea of separate file type is > > J> > T> abandoned. With current filedescriptor code it is almost impossible > > J> > T> to racelessly switch fileops and f_data. > > J> > T> For more details read the commit message, URL below. > > J> > T> > > J> > T> 2) I moved the work to git. It allows for easier code sharing. > > J> > T> > > J> > T> https://github.com/glebius/FreeBSD/commit/3a52df429889ea9c6e61013f6913aad95939f159 > > J> > > > J> > The current 'solisten' branch at https://github.com/glebius/FreeBSD has > > J> > been running successfully for 48 hours at Netflix. But as mentioned before, > > J> > our connection rate is pretty low. > > J> > > > J> > So, testing from Julien and Hiren will be much appreciated. > > J> > > J> Sound good, I will have spare time to get performance results on our > > J> side w/ and w/o your change before the end of this week. > > > > Thanks, Julien! Looking forward for your results. Meanwhile, the code has > > been running for a week on a single Netflix box. And for 24 hours on a > > set of boxes as A/B test against non-patched code. Since our connection > > rate is low, and we never seen accept_mtx to be a major problem in our > > profiling, the A/B test didn't show any statistically significant > > improvements. But my biased eye of course sees some improvements in the > > graphs :) > > You can use this to force clients to generate 1 request/connection > (--connreqs 1) to test the accept queue contention for HTTP workload: > https://github.com/sepherosa/wrk > > Checkout the sephe/wrk branch. pkg install wrk. Then gmake in the > checked out directory. pkg install gcc gmake, may be? PANIC: unprotected error in call to Lua API (27) PANIC: unprotected error in call to Lua API (13)