Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 2008 13:09:58 +0100
From:      Bartosz Giza <bartosz.giza@korbank.pl>
To:        freebsd-net@freebsd.org
Cc:        Oleksandr Samoylyk <oleksandr@samoylyk.sumy.ua>, Ivan Voras <ivoras@freebsd.org>, jfvogel@gmail.com
Subject:   Re: two NIC on 2 core system (scheduling problem)
Message-ID:  <200810281309.58262.bartosz.giza@korbank.pl>
In-Reply-To: <4906EE31.3080400@samoylyk.sumy.ua>
References:  <200810281235.53508.gizmen@blurp.pl> <4906EC8D.7070503@freebsd.org> <4906EE31.3080400@samoylyk.sumy.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

Tuesday 28 of October 2008 11:49:21 Oleksandr Samoylyk napisaƂ(a):
> Ivan Voras wrote:
> > Bartosz Giza wrote:
> >> Another question is why em0 taskq is eating so much cpu ? BGE
> >> interface is actually one that pushes 2 times more packets than em0
> >> and it uses about half cpu comparing to em0. Is that not strange ?
> >> Could someone tell my why is this happening ? BGE is faster ? or maybe
> >> i can tune some
> >
> > I have the same problem - em0 taskq eating incredible amounts of CPU.
> > If you find a solution, contact me!
>
> It could be not just a problem with em driver.
> Firstly, it's good to make profiling and find out what exactly eats CPU
> time.

Yes, we should make some profiling, but it is quite hard on busy production 
router. When i turn on pooling on em0 card swi1: net is using about 3% of 
cpu. So it is quite big difference between  20% with tasq and 3% with 
polling.
BTW: i am using

em0@pci0:3:0:0: class=0x020000 card=0x10838086 chip=0x10b98086 rev=0x06 
hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82572EI PRO/1000 PT Desktop Adapter (Copper)'
    class      = network
    subclass   = ethernet

I know it is desktop card but i thnik it should not use so much cpu. Besides 
intel card and em driver is supposed to be the best on freebsd. But from my 
observation bge cards are better for now.

-- 
Pozdrawiam,
Bartosz Giza, Administrator sieci
Korbank sp. z o.o.



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