From owner-freebsd-net@FreeBSD.ORG Fri Dec 12 22:06:28 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2F3616A4CF for ; Fri, 12 Dec 2003 22:06:28 -0800 (PST) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7041843D09 for ; Fri, 12 Dec 2003 22:06:27 -0800 (PST) (envelope-from cgaylord@vt.edu) Received: from vivi.cc.vt.edu (IDENT:mirapoint@evil-vivi [10.1.1.12]) by lennier.cc.vt.edu (8.12.8/8.12.8) with ESMTP id hBD66Qca465129; Sat, 13 Dec 2003 01:06:26 -0500 (EST) Received: from vt.edu (h80ad22c1.async.vt.edu [128.173.34.193]) by vivi.cc.vt.edu (MOS 3.4.2-CR) with ESMTP id CCF07868; Sat, 13 Dec 2003 01:06:21 -0500 (EST) Message-ID: <3FDAAC5B.5030008@vt.edu> Date: Sat, 13 Dec 2003 01:06:19 -0500 From: Clark Gaylord User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20030925 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eugene Grosbein References: <20031213054654.GA850@grosbein.pp.ru> In-Reply-To: <20031213054654.GA850@grosbein.pp.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: net@freebsd.org Subject: Re: how to saturate 100Mbit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2003 06:06:28 -0000 Eugene Grosbein wrote: > Is it possible to saturate 100Mbit ethernet using FreeBSD 4.9-STABLE, > Pentium-133 & Intel 430VX-based motherboard (PCI-33), > Intel 82559 Pro/100 Ethernet (fxp) ? > > I tried to use sendfile(2) on /dev/zero but that does not work. > Then I created 8Tb holey file and used sendfile() on it. > That gave 100% CPU load and only 37Mbit/s on wire. I usually use ttcp for tcp throughput measurement. You may not be able to do 100Mbps, due to tcp-ness, but it has a udp mode as well. Depends on what you are interested in doing. But ttcp is pretty low impact. Also, when you use it, boost the buffersize; this can help performance (and lower cpu hit) considerably. I am doing 800+Mbps on gigE with FreeBSD 5.1 these days. The other trick we use for link utilization with tcp is to multiplex several sessions; we do a few score (or a few hundred :-) simultaneous ttcp's just with a shell script and background the processes. ping -f with larger packets can also be useful. --ckg