From owner-freebsd-questions Sun Jul 30 13:39: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 99DC137B799 for ; Sun, 30 Jul 2000 13:38:57 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e6UKcqA19164; Sun, 30 Jul 2000 13:38:52 -0700 (PDT) Date: Sun, 30 Jul 2000 13:38:52 -0700 From: Alfred Perlstein To: Simon J Mudd Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to avoid: socket: No buffer space available? Message-ID: <20000730133852.R21967@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from sjmudd@pobox.com on Sun, Jul 30, 2000 at 09:30:58PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Simon J Mudd [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