Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Dec 2011 13:25:06 -0800
From:      "David Christensen" <davidch@broadcom.com>
To:        "Sean Bruno" <seanbru@yahoo-inc.com>, "John Baldwin" <jhb@freebsd.org>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   RE: stable/7 bce(4) out of buffers
Message-ID:  <5D267A3F22FD854F8F48B3D2B52381938616740FEB@IRVEXCHCCR01.corp.ad.broadcom.com>
In-Reply-To: <1323971445.3551.1.camel@hitfishpass-lx.corp.yahoo.com>
References:  <1323802814.26931.16.camel@hitfishpass-lx.corp.yahoo.com> <201112151000.52116.jhb@freebsd.org> <1323971445.3551.1.camel@hitfishpass-lx.corp.yahoo.com>

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

> > > dev.bce.0.com_no_buffers: 130228
> >
> > Hmm, in HEAD there looks to be a hw.bce.rx_pages that can be set to
> > 1, 2, 4, or 8.  It defaults to 2.  In the 7 driver it looks like this
> > is a #define in sys/dev/bce/if_bcereg.h (RX_PAGES on line 6710).  Try
> > changing RX_PAGES from 2 to 4 (or 8) and recompiling your kernel (or
> > bce driver) and see if that helps.
> >
> 
> Indeed, I was eyeballing that just now.  I'll post back with results.
> 

Adding buffers might help but more often than not you really should
adjust the interrupt coalescing sysctls (hw.bce.rx_quick_cons_trip, 
hw.bce.rx_ticks) so the hardware releases frames to the OS more
frequently and fetches new buffers.  Setting both values closer to 1
improves latency and small packet performance but does increase CPU
load due to the increased number of interrupts.

Dave 

help

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