Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Oct 2009 21:25:04 +0500
From:      rihad <rihad@mail.ru>
To:        Eugene Grosbein <eugen@kuzbass.ru>
Cc:        freebsd-net@freebsd.org, Luigi Rizzo <rizzo@iet.unipi.it>, Julian Elischer <julian@elischer.org>
Subject:   Re: dummynet dropping too many packets
Message-ID:  <4ACB6F60.7090407@mail.ru>
In-Reply-To: <20091006161240.GA49940@svzserv.kemerovo.su>
References:  <4AC9E29B.6080908@mail.ru> <20091005123230.GA64167@onelab2.iet.unipi.it> <4AC9EFDF.4080302@mail.ru> <4ACA2CC6.70201@elischer.org> <4ACAFF2A.1000206@mail.ru> <4ACB0C22.4000008@mail.ru> <20091006100726.GA26426@svzserv.kemerovo.su> <4ACB42D2.2070909@mail.ru> <20091006142152.GA42350@svzserv.kemerovo.su> <4ACB6223.1000709@mail.ru> <20091006161240.GA49940@svzserv.kemerovo.su>

next in thread | previous in thread | raw e-mail | index | archive | help
Eugene Grosbein wrote:
> On Tue, Oct 06, 2009 at 08:28:35PM +0500, rihad wrote:
> 
>> I don't think net.inet.ip.intr_queue_maxlen is relevant to this problem, 
>> as net.inet.ip.intr_queue_drops is normally zero or very close to it at 
>> all times.
> 
> When net.isr.direct is 1, this queue is used very seldom.
> Would you change it to 0, it will be used extensively.
> 
Ah, ok, thanks. I'll try that tomorrow.

But still...

> Try setting net.isr.direct to 0 and make large net.inet.ip.intr_queue_maxlen.
> This way, one of your cores may run bce's thread, enqueue incoming
> packets and return to work immediately. The rest of processing may be
> performed by another kernel thread, hopefully using another core.
> Just to see if this changes anything. top -S should help here too.


It isn't the incoming bce0 losing packets, but rather the outgoing bce1, 
which is almost idle interrupt-wise:

   29 root          1 -68    -     0K    16K CPU1   1 223:39 55.86% 
irq256: bce0
   31 root          1 -68    -     0K    16K WAIT   2  19:27  4.10% 
irq257: bce1



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