From owner-svn-src-all@freebsd.org Thu Jan 10 08:45:32 2019 Return-Path: Delivered-To: svn-src-all@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 3967F1481399; Thu, 10 Jan 2019 08:45:32 +0000 (UTC) (envelope-from srs0=uzpj=ps=vega.codepro.be=kp@codepro.be) Received: from venus.codepro.be (venus.codepro.be [5.9.86.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.codepro.be", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C0E2F70E91; Thu, 10 Jan 2019 08:45:31 +0000 (UTC) (envelope-from srs0=uzpj=ps=vega.codepro.be=kp@codepro.be) Received: from vega.codepro.be (unknown [172.16.1.3]) by venus.codepro.be (Postfix) with ESMTP id 5F3E612CEC; Thu, 10 Jan 2019 09:45:24 +0100 (CET) Received: by vega.codepro.be (Postfix, from userid 1001) id 59ED67BA6F; Thu, 10 Jan 2019 09:45:24 +0100 (CET) Date: Thu, 10 Jan 2019 09:45:24 +0100 From: Kristof Provost To: Gleb Smirnoff Cc: "Andrey V. Elsukov" , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r342908 - head/sys/netpfil/ipfw Message-ID: <20190110084524.GH49515@vega.codepro.be> References: <201901100147.x0A1lvQX035635@repo.freebsd.org> <20190110073827.GE18452@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190110073827.GE18452@FreeBSD.org> X-Checked-By-NSA: Probably User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: C0E2F70E91 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.94 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.94)[-0.943,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2019 08:45:32 -0000 On 2019-01-09 23:38:27 (-0800), Gleb Smirnoff wrote: > On Thu, Jan 10, 2019 at 01:47:57AM +0000, Andrey V. Elsukov wrote: > A> glebius@ has reported that they at Netflix discovered, that initialization > A> of this variable produces significant overhead on packet processing. > A> After patching I managed to increase performance of packet processing on > A> simple routing with ipfw(4) firewalling to about 11% from 9.8Mpps up to > A> 11Mpps (Xeon E5-2660 v4@ + Mellanox 100G card). > > And with ipfw being processed at driver level, rather than ip_input() > the boost is even more dramatic than 11%. > > https://github.com/glebius/FreeBSD/commits/pfil > > Soon to reach FreeBSD head :) > Nice! That pfil epoch-ification change should help pf too. Kristof