From owner-freebsd-current@FreeBSD.ORG Fri Mar 26 09:00:43 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 0831416A4CE for ; Fri, 26 Mar 2004 09:00:43 -0800 (PST) Received: from cmsrelay02.mx.net (cmsrelay02.mx.net [165.212.11.111]) by mx1.FreeBSD.org (Postfix) with SMTP id 956A343D1D for ; Fri, 26 Mar 2004 09:00:42 -0800 (PST) (envelope-from noackjr@alumni.rice.edu) Received: from uadvg131.cms.usa.net (165.212.11.131) by cmsoutbound.mx.net with SMTP; 26 Mar 2004 17:00:42 -0000 Received: from optimator.noacks.org [65.69.2.212] by uadvg131.cms.usa.net (ASMTP/noackjr@usa.net) via mtad (C8.MAIN.3.13N) with ESMTP id 162icZRaM0498M31; Fri, 26 Mar 2004 17:00:38 GMT X-USANET-Auth: 65.69.2.212 AUTH noackjr@usa.net optimator.noacks.org Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 78EE16103; Fri, 26 Mar 2004 11:00:37 -0600 (CST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08694-03; Fri, 26 Mar 2004 11:00:36 -0600 (CST) Received: from alumni.rice.edu (optimator [192.168.1.11]) by optimator.noacks.org (Postfix) with ESMTP id 1E92B6101; Fri, 26 Mar 2004 11:00:36 -0600 (CST) Message-ID: <406461B3.1090805@alumni.rice.edu> Date: Fri, 26 Mar 2004 11:00:35 -0600 From: Jon Noack User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040312) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kenneth Culver References: <20040325220939.2ogcsoogkoookwwc@www.sweetdreamsracing.biz> <20040326153548.GD3446@dan.emsphone.com> <20040326112153.wcgwk4o0wkwwosos@www.sweetdreamsracing.biz> In-Reply-To: <20040326112153.wcgwk4o0wkwwosos@www.sweetdreamsracing.biz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at noacks.org cc: freebsd-current@freebsd.org cc: Dan Nelson Subject: Re: poor gigabit ethernet performance with amd64 + sk0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu 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 17:00:43 -0000 On 3/26/2004 10:21 AM, Kenneth Culver wrote: > 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. > > 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? HZ=1024 by default on amd64, so you should be seeing approximately that many clk interrupts/second. Jon