From owner-freebsd-performance@FreeBSD.ORG Tue Jul 13 03:10:14 2004 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDE7516A4CE for ; Tue, 13 Jul 2004 03:10:14 +0000 (GMT) Received: from inetbml02.citec.qld.gov.au (inetbml02.citec.qld.gov.au [203.5.10.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5735943D46 for ; Tue, 13 Jul 2004 03:10:14 +0000 (GMT) (envelope-from ce018@torfree.net) Received: from lasun129.dnr.qld.gov.au (mailgate1.nrm.qld.gov.au [203.46.162.123]) by inetbml02.citec.qld.gov.au (Postfix) with ESMTP id E2B5A93C61 for ; Tue, 13 Jul 2004 13:10:12 +1000 (EST) Received: from nrmsweep.lands.resnet.qg (dnrsweep.dnr.qld.gov.au [203.8.130.181]) by lasun129.dnr.qld.gov.au (Postfix) with ESMTP id 13FDD9482A for ; Tue, 13 Jul 2004 13:10:12 +1000 (EST) Received: from chqmailgw.lands.resnet.qg (unverified [203.8.130.29]) by nrmsweep.lands.resnet.qg for ; Tue, 13 Jul 2004 13:06:23 +1000 Received: from chqmail2.lands.resnet.qg ([203.8.130.170]) by chqmailgw.lands.resnet.qg with Microsoft SMTPSVC(5.0.2195.6713); Tue, 13 Jul 2004 13:07:54 +1000 Received: from dep ([131.242.90.37]) by chqmail2.lands.resnet.qg with Microsoft SMTPSVC(5.0.2195.6713); Tue, 13 Jul 2004 13:06:34 +1000 From: Joe To: freebsd-performance@freebsd.org Message-ID: X-OriginalArrivalTime: 13 Jul 2004 03:07:24.0100 (UTC) FILETIME=[85170040:01C46886] Date: 13 Jul 2004 13:07:24 +1000 Subject: ethernet rate limiting?? X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2004 03:10:14 -0000 Hi Here goes for a first post. I run an mldonkey server under 4.10-STABLE (though I noticed the same behaviour under 4.8 and 4.9). It also runs samba and ssh2 all on a p2-333. Generally what happens is I download files to this fbsd server and share them to my other pc via samba. When first rebooted this works fine with full ethernet copy speeds. After a while copying files from the fbsd box to the pc rate limits to 40k (via smb/ftp/ssh2 whichever) over the ethernet lan. This is on 100mbit cards I've tried different cables/cards/switches etc with no luck. I'm guessing there is some memory/network/file descriptor limit I'm hitting and I've no idea how to extend it or clear it. I've made the following mods in sysctl.conf kern.maxfiles=65000 kern.maxfilesperproc=65000 kern.ipc.somaxconn=4096 kern.ipc.maxsockbuf=1048576 net.inet.ip.fw.verbose_limit=0 and in kernconf machine i386 cpu I686_CPU maxusers 512 options NMBCLUSTERS=16384 options NMBUFS=32768 sample output from netstat -m 149/944/32768 mbufs in use (current/peak/max): 101 mbufs allocated to data 48 mbufs allocated to packet headers 73/348/16384 mbuf clusters in use (current/peak/max) 932 Kbytes allocated to network (2% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines # netstat -an | grep tcp4 | wc -l 482 Does anybody have any suggestions or ideas as to optimize this or have I hit some limit that can't be exceeded? thanks again, Joe