From owner-freebsd-stable@FreeBSD.ORG Sun Jun 25 22:23:49 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6419A16A402 for ; Sun, 25 Jun 2006 22:23:49 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 785BF43D48 for ; Sun, 25 Jun 2006 22:23:46 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by nz-out-0102.google.com with SMTP id q3so1280219nzb for ; Sun, 25 Jun 2006 15:23:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I50G5UnqmOYRoKNJhp8cSct9H21sXhN6uV+9BrfG5eLC0gQDMsyCldsSoTDZTmDOBAFKz5n9PwSqtvsxwrSQVV0YHXR8ueEu+pmic+DqKj+yi3Yai76RvOZ06w6Ty9LocYrrgKuSbo06cpGXWsCymXLFCK1vQGvICVUwqIxPlaU= Received: by 10.36.251.17 with SMTP id y17mr7058198nzh; Sun, 25 Jun 2006 15:23:46 -0700 (PDT) Received: by 10.36.12.11 with HTTP; Sun, 25 Jun 2006 15:23:45 -0700 (PDT) Message-ID: Date: Sun, 25 Jun 2006 15:23:45 -0700 From: "Nikolas Britton" To: freebsd-stable@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: Sean Bryant Subject: Re: Gigabit ethernet very slow. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 22:23:49 -0000 On 6/25/06, Nikolas Britton wrote: > On 6/25/06, Sean Bryant wrote: > > /dev/zero not exactly the best way to test sending data across the > > network. Especially since you'll be reading a 8k chunks. > > > > I could be wrong, strong possibility that I am. I only got 408mb when > > doing a /dev/zero test. I've managed to saturate though. Using other > > software that I wrote. > > On 6/25/06, Nikolas Britton wrote: > > > What's up with my computer, it's only getting 30MB/s? > > > > > > hostB: nc -4kl port > /dev/null > > > hostA: nc host port < /dev/zero > > > > > 408MByte/s or 408Mbit/s and what measuring stick are you using? I'm > trying to rule in/out problems with the disks, I'm only getting > ~25MB/s on a 6 disk RAID0 over the network... would it be better to > setup an memory backed disk, md(4) , to read from? > > Now I'm getting 523.2Mbit/s (65.4MB/s) with netcat, I wiped out the FreeBSD 6.1/amd64 install with FreeBSD 6.1/i386... and... After a kernel rebuild (recompiled nc too): CPUTYPE?=athlon-mp CFLAGS+= -mtune=athlon64 COPTFLAGS+= -mtune=athlon64 I'm up to 607.2Mbit/s (75.9MB/s). What else can I do to get that number higher, and how can I get interrupts lower? Before recompile: load averages: 0.94, 0.91, 0.66 CPU states: 2.6% user, 0.0% nice, 21.5% system, 64.6% interrupt, 11.3% idle ------------------- After recompile: load averages: 0.99, 0.96, 0.76 CPU states: 3.0% user, 0.0% nice, 33.7% system, 58.2% interrupt, 5.1% idle -- BSD Podcasts @: http://bsdtalk.blogspot.com/ http://freebsdforall.blogspot.com/