From owner-freebsd-questions Mon Jun 18 15: 6:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.communityconnect.com (mail.communityconnect.com [209.10.169.57]) by hub.freebsd.org (Postfix) with ESMTP id 7B5E637B403 for ; Mon, 18 Jun 2001 15:06:28 -0700 (PDT) (envelope-from marius@mail.communityconnect.com) Received: from amavis by mail.communityconnect.com with scanned-ok (Exim 3.20 #1) id 15C7AB-0001rN-00 for questions@freebsd.org; Mon, 18 Jun 2001 18:06:27 -0400 Received: from [206.28.215.90] (helo=utterlux.hq.communitconnect.com) by mail.communityconnect.com with esmtp (Exim 3.20 #1) id 15C7AA-0001pp-00 for questions@FreeBSD.org; Mon, 18 Jun 2001 18:06:26 -0400 Date: Mon, 18 Jun 2001 18:06:30 -0400 (EDT) From: Marius X-Sender: marius@utterlux.hq.communitconnect.com To: questions@FreeBSD.org Subject: running out of buffer space for sockets Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG One of my webservers is having an on-again, off-again problem with networking. When the load gets up there (thttpd is pushing maybe 15MB right now) I begin to run out of buffer space to create sockets. >Jun 18 16:44:01 cc124 sendmail[39781]: f5IKi1439781: SYSERR(root): makeconnection: cannot create socket: No buffer space available >Jun 18 16:44:01 cc124 sendmail[39781]: f5IKi1439781: SYSERR(root): makeconnection: cannot create socket: No buffer space available I get similar or related messages when I try to ping someone, use tcpdump, do an nslookup etc. Running one of these the commands in quick succession produces some successes, some failures, right after one another. I have networking fairly beefed up: ># sysclt -a |grep max >kern.maxvnodes: 129508 >kern.maxproc: 2068 >kern.maxfiles: 65536 >...snip... >kern.maxfilesperproc: 65500 >kern.maxprocperuid: 2067 >kern.ipc.maxsockbuf: 262144 >kern.ipc.somaxconn: 256 >...snip... >kern.ipc.maxsockets: 16384 >...snip... >vfs.maxbufspace: 117932032 >vfs.maxmallocbufspace: 5863833 ># netstat -m >7115/8624/65536 mbufs in use (current/peak/max): > 5454 mbufs allocated to data > 1661 mbufs allocated to packet headers >5056/5854/16384 mbuf clusters in use (current/peak/max) >13864 Kbytes allocated to network (28% of mb_map in use) >0 requests for memory denied >0 requests for memory delayed >0 calls to protocol drain routines Basically I am trying to figure out if I can tweak something to make this scarce resource less scarce. I could try changing some of the MIB's but I am not totally sure whcih ones would effect this. I am researching this the best I can, but I feel a bit overwhelmed. I'd hate to tweak something up beyond sane levels unknowingly. Pointers or suggestions would be appreciated. system info: 4.2-STABLE FreeBSD Dual 700Mhz Processors 1 GB RAM 2 eepro100 NIC cards (100baseTX ) -Marius To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message