Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2007 11:34:41 -0400
From:      "Stephan Koenig" <winterny@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   Tuning if_bge for high packet rates (receive descriptors/transmit descriptors?)
Message-ID:  <d41351410706120834l243b8eb5wdb056853a39c1a99@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

We have some servers that have a very high packet rate in a normal
production mode, and require polling to keep the CPU load reasonable.

We have Kern.HZ=4000, and even still, have some dropped packets.

On our servers that use the intel "em" driver, we have tuned the
drivers as following, by default, if_em.h has:

#define EM_MIN_TXD              80
#define EM_MAX_TXD_82543        256
#define EM_MAX_TXD              4096
#define EM_DEFAULT_TXD          EM_MAX_TXD_82543

#define EM_MIN_RXD              80
#define EM_MAX_RXD_82543        256
#define EM_MAX_RXD              4096
#define EM_DEFAULT_RXD          EM_MAX_RXD_82543


We have changed EM_DEFAULT_TXD and EM_DEFAULT_RXD to 4096 -- This
solved the problem on these servers.

The question is now what to do on our servers with Broadcom "bge"
series cards.  Does anyone know how to tune this driver in a similar
matter?

Thanks,
--Stephan



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