From owner-freebsd-questions@FreeBSD.ORG Wed Aug 4 13:05:22 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4661116A4CE for ; Wed, 4 Aug 2004 13:05:22 +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 D265A43D53 for ; Wed, 4 Aug 2004 13:05:21 +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 DF42261E2; Wed, 4 Aug 2004 15:06:57 +0200 (CEST) To: freebsd-questions@freebsd.org From: sirola@fisica.unige.it Date: Wed, 04 Aug 2004 15:05:36 +0200 Message-ID: <87fz73jbof.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: [Q] poor network performance X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: sirola@fisica.unige.it List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 13:05:22 -0000 Hello, I have Dell PE1750 server with FreeBSD 4.10-RELEASE-p2 freshly installed. The server shows very low transfer rates with other hosts, but i can't see any error/strange data on interfaces/mbufs statistics. I tried scp on both interfaces and it's very slow (approx 100KBytes/s), while if it try to route back the response packets (acks) on the other interface it goes very fast (100MBytes/s). Swapping cables and configuration doesn't show any difference. The host is configured as follows: * two gigabit ethernets: seen as bge0 and bge1 bge0: flags=8843 mtu 1500 options=3 inet 192.168.2.3 netmask 0xffffff00 broadcast 192.168.2.255 inet6 fe80::20b:dbff:fe93:3b5a%bge0 prefixlen 64 scopeid 0x1 ether 00:0b:db:93:3b:5a media: Ethernet 100baseTX status: active bge1: flags=8843 mtu 1500 options=3 inet 192.168.3.3 netmask 0xffffff00 broadcast 192.168.3.255 inet6 fe80::20b:dbff:fe93:3b5b%bge1 prefixlen 64 scopeid 0x2 ether 00:0b:db:93:3b:5b media: Ethernet 100baseTX status: active bge1 has an alias to the host public ip address (not shown). * 1 GB RAM * sysctl.conf as follows: kern.ipc.somaxconn=1024 kern.ipc.shmmax=700000000 kern.ipc.shmall=524280 kern.ipc.shm_use_phys=1 * loader.conf as follows: kern.ipc.nmbclusters="32768" * routing is as follows: netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.3.1 UGSc 1 64 bge1 127.0.0.1 127.0.0.1 UH 1 2683 lo0 192.168.0 192.168.2.1 UGSc 6 2385 bge0 192.168.2 link#1 UC 2 0 bge0 192.168.2.1 00:01:02:24:da:2c UHLW 6 8029 bge0 972 192.168.2.3 00:0b:db:93:3b:5a UHLW 0 87 lo0 192.168.3 link#2 UC 2 0 bge1 192.168.3.1 00:05:1c:0b:26:b3 UHLW 2 6861 bge1 988 192.168.3.3 00:0b:db:93:3b:5b UHLW 0 17 lo0 link#2 UC 1 0 bge1 00:0b:db:93:3b:5b UHLW 0 6167 lo0 While transfering files, I see what (to me) seems a "normal" behavior with netstat -m 515/704/131072 mbufs in use (current/peak/max): 515 mbufs allocated to data 512/596/32768 mbuf clusters in use (current/peak/max) 1368 Kbytes allocated to network (1% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines This stuff is going to drive me crazy... Thanks in advance for your time / help, e. -- Enrico Sirola