Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2001 18:06:30 -0400 (EDT)
From:      Marius <marius@mail.communityconnect.com>
To:        questions@FreeBSD.org
Subject:   running out of buffer space for sockets
Message-ID:  <Pine.BSF.4.21.0106181732410.42078-100000@utterlux.hq.communitconnect.com>

next in thread | raw e-mail | index | archive | help


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 <full-duplex>)


-Marius



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0106181732410.42078-100000>