From owner-freebsd-net@FreeBSD.ORG Wed Oct 3 21:00:46 2007 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 ECD5A16A421 for ; Wed, 3 Oct 2007 21:00:46 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id 8082013C45B for ; Wed, 3 Oct 2007 21:00:46 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so962161anc for ; Wed, 03 Oct 2007 14:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=r92tR1Lrf+CtP7EzSfnOwrXdnHUpF8CcLqV1E6SCYt8=; b=Zk3I7oLXGmztE+YVqavX4wivFkQzaYZR3gNSv+v8GpAWy73FP678UtNJWj2eV80BFjObsbi2HVTN8PzihTVDT3+YYsM19QNuPcWFz2Qskxe1zrfLNqwIWFkkPZaZWlhVgbXzvfzNqi5YBMZfaxz+23kNZaPoOgXQ3HpdmAlpRBA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=iG4iT65KdTgW07R2yjMf6TQFluEpyVM8Xxxeh9+5Quv7e0CORSTJtmpDj9lAx1yI1v2UbLLxQbTN8qV0LExd1t/J7CjOSD0/NsyKQU5R4zSSfOIXWorThoi1dr5g2ebRNlgtf5NWFS+zOsaXCB6b7bOZkDCHyxAiUBzoCXp3R4o= Received: by 10.142.77.11 with SMTP id z11mr1149627wfa.1191443710453; Wed, 03 Oct 2007 13:35:10 -0700 (PDT) Received: by 10.140.192.2 with HTTP; Wed, 3 Oct 2007 13:35:10 -0700 (PDT) Message-ID: <2e77fc10710031335x2e48f723vae4d0e869b4426f0@mail.gmail.com> Date: Wed, 3 Oct 2007 23:35:10 +0300 From: "Niki Denev" Sender: ndenev@gmail.com To: "Cristian KLEIN" , freebsd-net@freebsd.org In-Reply-To: <4703F9C3.2060601@net.utcluj.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4703F9C3.2060601@net.utcluj.ro> X-Google-Sender-Auth: 2de8ecfc3876f99e Cc: Subject: Re: FreeBSD as a gigabit router 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: Wed, 03 Oct 2007 21:00:47 -0000 2007/10/3, Cristian KLEIN : > Hi list, > > A few days ago I tested whether a FreeBSD 7 box is able to handle Gigabit > traffic. So I used a Cisco 7600 and added static routes from the router to the > box and from the box to the router, so that some packets would loop between the > two. Then I externally injected 30Mbps of "ping -f -t 255 -s ", which > should have generated a "maximum" of 3,6Gbps. I then used nload on the box to > graph the bandwidth. > > The box is a Intel Core 2 Duo, with a PCIe re NIC. I used FreeBSD i386 with > polling and fastforwarding. No WITNESS, INVARIANTS or firewalls. > > I was amased to see that injecting 1000 bytes packets gave a maximum throughput > of 650Mbps, while 1400 bytes gave 750Mbps. During both tests one core was 98% > idle, while the other one was more than 80% idle. > > Can anybody point me what the bottleneck of this configuration is? CPU was > mostly idle and PCIe 1x should carry way more. Or is the experiment perhaps > fundamentally flawed? > > Thanks. > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > Using icmp and especially "ping -f" does not sound like a good idea for testing network thoroughput. Maybe you should consider something like iperf or netperf (/usr/ports/benchmarks/iperf and /usr/ports/benchmarks/netperf) -- Niki