From owner-freebsd-net@FreeBSD.ORG Mon Aug 9 08:04:56 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8344D16A4CE for ; Mon, 9 Aug 2004 08:04:56 +0000 (GMT) Received: from adsl-136-23.38-151.net24.it (adsl-136-23.38-151.net24.it [151.38.23.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0401A43D4C for ; Mon, 9 Aug 2004 08:04:56 +0000 (GMT) (envelope-from enrico.sirola@statpro.com) Received: from sirola02 (unknown [192.168.1.2]) by adsl-136-23.38-151.net24.it (Postfix) with ESMTP id A966F61B7; Mon, 9 Aug 2004 10:06:36 +0200 (CEST) To: freebsd-net@freebsd.org From: sirola@fisica.unige.it Date: Mon, 09 Aug 2004 10:05:20 +0200 Message-ID: <878ycoag8v.fsf@statpro.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: retransmissions with bge driver? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: sirola@fisica.unige.it List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 08:04:56 -0000 Hello, I'm going to set up a server with FreeBSD 4.10. While testing the network performance, I see a lot of tcp retransmissions on both the network cards this server have. These are identified as BCM5704C and using the bge driver. Actually, the network cards are configured as 100baseTX (no autoselection) and i get a 5% of retransmissions. Modifying the tcp kernel configuration as follows raises the maximum transfer rates a bit, from 70KBytes/s to 150KBytes/s which are nevertheless poor performances. The relevant parts of my net.inet.tcp are as follows: net.inet.tcp.inflight_enable: 1 net.inet.tcp.sendspace: 65535 net.inet.tcp.recvspace: 65535 net.inet.tcp.rexmit_min: 20 net.inet.tcp.rexmit_slop: 200 kern.ipc.nmbclusters: 32768 By the way, no errors/collisions are reported with netstat -in... netstat -s shows tcp: 3283167 packets sent 1934388 data packets (438813217 bytes) 20514 data packets (28327158 bytes) retransmitted 2095620 packets received 1786464 acks (for 438791442 bytes) 22570 duplicate acks what could be the reason of all these retransmissions? Bad cabling? A poor switch? Thanks in advance for your help, enrico P.S. If I'm writing to the wrong list, please let me know it -- Enrico Sirola