From owner-freebsd-net@FreeBSD.ORG Tue Jun 12 16:00:49 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3B67B16A400 for ; Tue, 12 Jun 2007 16:00:49 +0000 (UTC) (envelope-from winterny@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.239]) by mx1.freebsd.org (Postfix) with ESMTP id CA68613C480 for ; Tue, 12 Jun 2007 16:00:48 +0000 (UTC) (envelope-from winterny@gmail.com) Received: by nz-out-0506.google.com with SMTP id 14so1438453nzn for ; Tue, 12 Jun 2007 09:00:43 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=uZ5f8G/NzYl6SqHy3/oDkRrMU3YuSi8K05yI6H7fn202UzJxkgNFggh/MbtWVZy66P3VTcFA1eT9vdmBZMNBtqX7+YbFMidqRdTSMCA0tSPMzgbbhys/yd//WE+glRuEapvc8+2mu+ttA/jo5o1lj+WaOc76/IRVUydNCfplRXI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=dcohko/OXMydUL2so7oWm5e1I8nNY8Chh+Rpfj7g2zJKaTqLpqTAgYfqaMvGk7hMpmKQcIHgEBaqMIDcpvhaITO3Vu02Nyx/S+bOgWg2BOyBK6S6vLa2STcASnqrIu3+GiZmOHGY+08s6S6wnE5IvSOf4X11sU28VtY5X8pamqo= Received: by 10.142.103.6 with SMTP id a6mr344944wfc.1181662481623; Tue, 12 Jun 2007 08:34:41 -0700 (PDT) Received: by 10.143.44.9 with HTTP; Tue, 12 Jun 2007 08:34:41 -0700 (PDT) Message-ID: Date: Tue, 12 Jun 2007 11:34:41 -0400 From: "Stephan Koenig" To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Tuning if_bge for high packet rates (receive descriptors/transmit descriptors?) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2007 16:00:49 -0000 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