Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jul 2000 13:38:52 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Simon J Mudd <sjmudd@pobox.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: how to avoid: socket: No buffer space available?
Message-ID:  <20000730133852.R21967@fw.wintelcom.net>
In-Reply-To: <Pine.LNX.4.21.0007302120280.19805-100000@phoenix.ea4els.ampr.org>; from sjmudd@pobox.com on Sun, Jul 30, 2000 at 09:30:58PM %2B0200
References:  <Pine.LNX.4.21.0007302120280.19805-100000@phoenix.ea4els.ampr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Simon J Mudd <sjmudd@pobox.com> [000730 12:26] wrote:
> I've been testing postfix on freebsd 4.1 and specifically testing the
> speed that it can send and receive SMTP messages without using the
> disk.  This effectively tests the tcp/ip speed.  Postfix comes with a
> couple of binaries which allow you to stress test the system.
> 
> # setup SMTP server on port 5000, with a listen queue of 10
> [sjmudd@unicorn smtpstone]$ ./smtp-sink :5000 10 &
> [1] 37958
> # setup up to 10 simultaneas connections to send 1000 messages of
> # 1000 bytes each
> [sjmudd@unicorn smtpstone]$ ./smtp-source -s 10 -l 1000 -m 1000 localhost:5000
> ./smtp-source: fatal: socket: No buffer space available
> ./smtp-sink: warning: lost connection
> ./smtp-sink: warning: lost connection
> ./smtp-sink: warning: lost connection
> ./smtp-sink: warning: lost connection
> [sjmudd@unicorn smtpstone]$ ./smtp-sink: warning: lost connection
> 
> When I do this test on linux I don't get this error, nor do I get it if I
> reduce the number of messages on FreeBSD.  How do I adjust the buffer
> space to avoid this problem and is there a reason that linux behaves
> differently to FreeBSD? (I'm curious.)

You need to raise maxusers and possibly NMBCLUSTERS, you can increase
nmbclusters via the loader without having to recompile the kernel.

See: man 8 loader

You may also want to turn on softupdates as it will help with
creating the spool files and queues.

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."


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?20000730133852.R21967>