From owner-svn-src-head@FreeBSD.ORG Fri Feb 27 08:46:25 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 81B01395; Fri, 27 Feb 2015 08:46:25 +0000 (UTC) Date: Fri, 27 Feb 2015 08:46:25 +0000 From: Alexey Dokuchaev To: Andrew Rybchenko Subject: Re: svn commit: r279351 - head/sys/dev/sfxge Message-ID: <20150227084625.GA72768@FreeBSD.org> References: <201502270739.t1R7dAiK016165@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201502270739.t1R7dAiK016165@svn.freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2015 08:46:25 -0000 On Fri, Feb 27, 2015 at 07:39:10AM +0000, Andrew Rybchenko wrote: > New Revision: 279351 > URL: https://svnweb.freebsd.org/changeset/base/279351 > > Log: > sfxge: expect required init_state on data path and in periodic calls > > With the patch applied the number of instruction events is 1% less and > number of mispredicted branch events is 5% less under multistream TCP > traffic load close to line rate. Yuck. This brings more Linux' stink to our code. Why compiler can't do this itself? From what I see, __predict_false was added to != checks, and __predict_true for == ones. Looks like a pattern to me... ./danfe