Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Sep 2007 10:53:43 +0900
From:      Pyun YongHyeon <pyunyh@gmail.com>
To:        freebsd-hardware@freebsd.org, FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: nfe driver 6.2 stable
Message-ID:  <20070930015343.GA15227@cdnetworks.co.kr>
In-Reply-To: <20070929181618.GA30333@lizzy.catnook.local>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070930015343.GA15227>