Major problem with "No buffer space available" errors

James West jwest254 at
Wed Jul 16 05:51:26 PDT 2003


I'm having huge problems with "No buffer space available" errors. I've increased MAXUSERS to 512 in the kernel, recompiled, rebooted and the sysctl values below show that everything is up'ed to the max.
some details which may help are:

    kern.maxfiles: 10796
    kern.maxfilesperproc: 9716
    kern.ipc.maxsockbuf: 262144
    kern.ipc.somaxconn: 65000
    kern.ipc.nmbclusters: 65000
    kern.ipc.maxsockets: 65000

netstat -m reveals:

    70/400/260000 mbufs in use (current/peak/max):
            67 mbufs allocated to data
            3 mbufs allocated to packet headers
    64/208/65000 mbuf clusters in use (current/peak/max)
    516 Kbytes allocated to network (0% of mb_map in use)

Any executable i try use which uses sockets has problems, for example rsync:

    socket: No buffer space available
    rsync: connection unexpectedly closed (0 bytes read so far)
    rsync error: error in rsync protocol data stream (code 12) at io.c(165)

Can anyone help?


Sign-up for your own FREE Personalized E-mail at has over 400,000 jobs. Be smarter about your job search

More information about the freebsd-performance mailing list