From owner-freebsd-current@FreeBSD.ORG Fri Mar 26 08:05:30 2004 Return-Path: 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 8967416A4CF for ; Fri, 26 Mar 2004 08:05:30 -0800 (PST) Received: from mailhub.sweetdreamsracing.biz (mailhub.sweetdreamsracing.biz [66.92.171.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D36043D39 for ; Fri, 26 Mar 2004 08:05:28 -0800 (PST) (envelope-from culverk@sweetdreamsracing.biz) Received: by mailhub.sweetdreamsracing.biz (Postfix, from userid 80) id 0BE471F6; Fri, 26 Mar 2004 11:21:54 -0500 (EST) Received: from 141.156.69.109 ([141.156.69.109]) by www.sweetdreamsracing.biz (Horde) with HTTP for ; Fri, 26 Mar 2004 11:21:53 -0500 Message-ID: <20040326112153.wcgwk4o0wkwwosos@www.sweetdreamsracing.biz> Date: Fri, 26 Mar 2004 11:21:53 -0500 From: Kenneth Culver To: Dan Nelson References: <20040325220939.2ogcsoogkoookwwc@www.sweetdreamsracing.biz> <20040326153548.GD3446@dan.emsphone.com> In-Reply-To: <20040326153548.GD3446@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs cc: freebsd-current@freebsd.org Subject: Re: poor gigabit ethernet performance with amd64 + sk0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 26 Mar 2004 16:05:30 -0000 Quoting Dan Nelson : > In the last episode (Mar 25), Kenneth Culver said: >> I recently did a short file transfer over gigabit ethernet in both >> x86 and amd64. On x86 it appears the limiting factor is the laptop >> I'm transferring to. I get about 20MB/sec to the laptop in x86. But >> on amd64, I'm not sure what the limiting factor is, because I max out >> at about 2.8MB/sec with the EXACT same hardware. Here are the dmesg >> lines for that ethernet card: > > Make sure you're testing ethernet speeds and not disk speeds; try > something like ttcp or tcpblast. Even a pII/600mhz can do 50MB/sec; > any modern CPU should be able to do 90. You might also want to do a > long test, then run systat -v to see if the CPU load or interrupts/sec > is different between x86 and amd64 modes. > > -- > Dan Nelson > dnelson@allantgroup.com I know for sure I'm not testing disk speeds, at least on the x86 side. In x86 the transfer at 20MB/sec is maxing out my laptop's hard drive. I have the same model hard drive running my amd64 -CURRENT as I do my x86 -CURRENT, and both kernels were built from the same source tree. The only difference I see when running the tests with systat -vm 1 is that sk0 is only interrupting around 600-800 times per second on amd64, where it's interrupting at like 4000 times per second on x86, which is what I'd expect given that on FreeBSD-x86 I'm sending data at 10x the speed of FreeBSD-amd64. One other thing I noticed while doing the systat -vm 1 was that the clk device is interrupting at over 1000 times per second instead of the x86'x 100 times per second. I could try changing that to 100 and see what happens. Also I'm read a little bit in the NOTES file on amd64 that atpic is for legacy 8259A interrupt controller support. I don't think I need that either. Could any of these be causing my problem? Ken