From owner-freebsd-hardware@FreeBSD.ORG Sun Sep 30 01:57:28 2007 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E00D16A417 for ; Sun, 30 Sep 2007 01:57:28 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.236]) by mx1.freebsd.org (Postfix) with ESMTP id 56CE013C458 for ; Sun, 30 Sep 2007 01:57:28 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so2060910nzf for ; Sat, 29 Sep 2007 18:57:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=d7+lCE18igTIIGaQDvU45IqTwHAqL1q794hOudUt+DY=; b=fmt3GLlpkAzLRlzerBBhmVE3ry5SwnZWsPH4Ck+QZ8zis5EYZ6oV6klua43+pjKMiCKNrqG/OTRLnvNfXqYgsFETL6iDN8+X9fFVjLb2sDk9moragBhsJYFCRdejHT5FvwxoitOMzZKeZRsSbVaxu5TYhVKaZzfL/keJHFIRPBc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=ENL/TwUtVJpfjNoQoL2tsfK29L2FQH5dg92aLlLhpfWmk48RU6zChpttZTrK7g4L2ElOGYvQ22u89qrCNZj2tcbD/GDBwrw99Usk4E6A6ZmXCt+1V2RKTEHs3hJLqy0N5yJUHS44AMg5og5L0CRnZUif9EJHPRxlMPYA2XB7THI= Received: by 10.114.199.1 with SMTP id w1mr950266waf.1191117447148; Sat, 29 Sep 2007 18:57:27 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id m40sm8588843wag.2007.09.29.18.57.24 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 29 Sep 2007 18:57:26 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id l8U1rkrs015320 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 30 Sep 2007 10:53:46 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id l8U1rjKo015319; Sun, 30 Sep 2007 10:53:45 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Sun, 30 Sep 2007 10:53:43 +0900 From: Pyun YongHyeon To: freebsd-hardware@freebsd.org, FreeBSD Stable Message-ID: <20070930015343.GA15227@cdnetworks.co.kr> References: <20070924020116.GA36909@eos.sc1.parodius.com> <3aaaa3a0709240844j2603a050nd09bb5482a0f3c21@mail.gmail.com> <20070927065155.GE3692@cdnetworks.co.kr> <3aaaa3a0709271030k24892099ra3409ce6f5f7020f@mail.gmail.com> <20070928000656.GA7119@cdnetworks.co.kr> <3aaaa3a0709281105g1503fdbcu70910de6eae060a0@mail.gmail.com> <20070929012801.GA11457@cdnetworks.co.kr> <20070929022147.GA27590@lizzy.catnook.local> <20070929050240.GC11457@cdnetworks.co.kr> <20070929181618.GA30333@lizzy.catnook.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070929181618.GA30333@lizzy.catnook.local> User-Agent: Mutt/1.4.2.1i Cc: Subject: Re: nfe driver 6.2 stable X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2007 01:57:28 -0000 On Sat, Sep 29, 2007 at 11:16:18AM -0700, Jos Backus wrote: > On Sat, Sep 29, 2007 at 02:02:40PM +0900, Pyun YongHyeon wrote: > > On Fri, Sep 28, 2007 at 07:21:47PM -0700, Jos Backus wrote: > > > On Sat, Sep 29, 2007 at 10:28:01AM +0900, Pyun YongHyeon wrote: > > > [snip] > > > > ATM nfe(4)'s interrupt moderation mechanism doesn't seem to work > > > > at all so nfe(4) generates too many interrupts. However I don't > > > > think it wouldn't be major bottleneck of the performance. > > > > > > Could this be why (on -current) I had to enable polling on nfe0 to get rid of > > > the choppy audio playback I was experiencing? > > > > > > > Probably not. Maybe nfe(4) use shared interrupt. > > Check the output of "vmstat -i". > > pcm0 and nfe0 share irq23: > > lizzy:~% vmstat -i > interrupt total rate > irq1: atkbd0 107296 0 > irq6: fdc0 1 0 > irq12: psm0 563936 1 > irq22: atapci2 5293281 11 > irq23: pcm0 nfe0 1225731 2 > cpu0: timer 947413237 2000 > Total 954603482 2015 > lizzy:~% > > Both pcm0 and nfe0 are mobo devices. Is there any way to change the assigned > interrupts? > It seems that your NIC doesn't have MSI/MSIX capability. Also the NIC is LOM version so I guess there is no easy way to change the interrupt number. ATM polling(4) seems to be the only way to reliably run nfe(4) under shared interrupt situations. Of course, you may encounter additional latency from the polling(4) but it normally wouldn't affect desktop usage patterns. I have a plan that will add an additional knob that have nfe(4) work more reliably under shared interrupt environments. However that would happen after branching 7. -- Regards, Pyun YongHyeon