From owner-freebsd-current@FreeBSD.ORG Wed May 24 18:08:14 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DDB216A5D3 for ; Wed, 24 May 2006 18:08:14 +0000 (UTC) (envelope-from gbergling@0xfce3.net) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5813843D48 for ; Wed, 24 May 2006 18:08:12 +0000 (GMT) (envelope-from gbergling@0xfce3.net) X-Envelope-From: gbergling@0xfce3.net X-Envelope-To: Received: from central.0xfce3.net (dslb-088-072-036-161.pools.arcor-ip.net [88.72.36.161]) (authenticated bits=128) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id k4OI89qP024003 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 24 May 2006 20:08:09 +0200 Received: from central.0xfce3.net (localhost [127.0.0.1]) by central.0xfce3.net (8.13.6/8.13.4) with ESMTP id k4OI85Ax059338 for ; Wed, 24 May 2006 20:08:05 +0200 (CEST) (envelope-from gbergling@0xfce3.net) Received: (from gordon@localhost) by central.0xfce3.net (8.13.6/8.13.4/Submit) id k4OI82tX059337 for freebsd-current@freebsd.org; Wed, 24 May 2006 20:08:02 +0200 (CEST) (envelope-from gbergling@0xfce3.net) X-Authentication-Warning: central.0xfce3.net: gordon set sender to gbergling@0xfce3.net using -f Date: Wed, 24 May 2006 20:08:02 +0200 From: Gordon Bergling To: freebsd-current@freebsd.org Message-ID: <20060524180802.GA59176@central.0xfce3.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Url: X-Operating-System: FreeBSD 6.1-STABLE i386 X-Host-Uptime: 7:51PM up 5:03, 0 users, load averages: 0.05, 0.13, 0.29 User-Agent: Mutt/1.5.11 X-Spam-Score: * (1.17) AWL,BAYES_50,FORGED_RCVD_HELO X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Subject: Take 2: new IP Checksum Code from DragonFlyBSD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 24 May 2006 18:08:14 -0000 Hi, a few month ago I ported DragonFlyBSD's IP checksum code to FreeBSD. My first try wasn't complete and I had forgotten it by the time. Now I hope I have addressed the former mistakes and it maybe included in the tree. ;) The patch can be found at http://generic.0xfce3.net/20060524-ipchecksum.patch This patch modifies the i386, amd64 and pc98 architectures. Matt Dillons new implementation is machine indepement, but there are some asm files/code with seems for me i386 centric. I don't know assembler, so I can't tell much about it. I applied the patch to RELENG_6 and have done a simple netperf benchmark. The machine was a PIII 900. The ministat output: ---------------------------------------------------------------------------- x netperf-localhost-plain.txt + netperf-localhost-ncksum.txt +--------------------------------------------------------------------------+ | x x x x + ++ + | |xx x x xx xxx x x x x+x *+x x + +++ ++ + + + +++++ +| | |__________M_A____________| |__________A___________| | +--------------------------------------------------------------------------+ N Min Max Median Avg Stddev x 22 707.31 730.41 717.37 718.53909 6.7389076 + 22 725.57 746.46 736.535 736.51727 6.3001188 Difference at 95.0% confidence 17.9782 +/- 3.96904 2.50205% +/- 0.552377% (Student's t, pooled s = 6.5232) ---------------------------------------------------------------------------- Any comments, correctures are very appreciated. best regards, Gordon -- Gordon Bergling http://www.0xFCE3.net/ PGP Fingerprint: 7732 9BB1 5013 AE8B E42C 28E0 93B9 D32B C76F 02A0 RIPE-HDL: MDTP-RIPE "Minimal Electronic Music"