From owner-freebsd-net@FreeBSD.ORG Fri Jan 15 10:25:28 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D742106568B for ; Fri, 15 Jan 2010 10:25:28 +0000 (UTC) (envelope-from sh@keff.org) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id 3DFB38FC0A for ; Fri, 15 Jan 2010 10:25:27 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id d26so34524eyd.9 for ; Fri, 15 Jan 2010 02:25:21 -0800 (PST) Received: by 10.213.47.16 with SMTP id l16mr715914ebf.7.1263551121467; Fri, 15 Jan 2010 02:25:21 -0800 (PST) Received: from ?10.156.17.105? (workstation1.tele2.se [192.71.219.1]) by mx.google.com with ESMTPS id 10sm211559eyd.21.2010.01.15.02.25.20 (version=SSLv3 cipher=RC4-MD5); Fri, 15 Jan 2010 02:25:20 -0800 (PST) Message-ID: <4B504290.5020506@keff.org> Date: Fri, 15 Jan 2010 11:25:20 +0100 From: Sebastian Hyrwall User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: FreeBSD 7.2 vs Linux in routing performance X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jan 2010 10:25:28 -0000 Hi I have to identical x86 routers with the following specifications, hw.model: Intel(R) Atom(TM) CPU 330 @ 1.60GHz hw.physmem: 2132996096 hw.usermem: 1787252736 hw.realmem: 2146041856 2x re0: port 0xd800-0xd8ff mem 0xfeaff000-0xfeafffff,0xfdef0000-0xfdefffff irq 16 at device 0.0 on pci2 I know it's not really the best equipment to use in gbit-enviroments but that is irrelevant here. One of these runs FreeBSD 7.2 (R-p4) and the other Linux 2.6.31.5. Without pf/iptables loaded the FreeBSD-server maxes out at 35MB/s when it comes to forwarding between the two NICs (simple http-transfer used for testing). The Linux-server pushes 90-100MB/s between the NICs with the same test. Both servers are connected the same way to the network (I swap them between the testing). Any suggestions on where the gigantic performance loss might be and how to fix it? I intend to switch FreeBSD 8 in the coming month and maybe that will fix the problem but I am hoping it's also fixable in 7.2. Sincerely, Sebastian H.