From owner-freebsd-questions Sun Jul 30 12:24: 3 2000 Delivered-To: freebsd-questions@freebsd.org Received: from phoenix.ea4els.ampr.org (4-MADR-X122.libre.retevision.es [62.83.125.4]) by hub.freebsd.org (Postfix) with ESMTP id 6FA1C37B760 for ; Sun, 30 Jul 2000 12:23:59 -0700 (PDT) (envelope-from sjmudd@pobox.com) Received: from localhost (localhost [127.0.0.1]) by phoenix.ea4els.ampr.org (Postfix) with ESMTP id 4B606838B for ; Sun, 30 Jul 2000 21:30:58 +0200 (CEST) Date: Sun, 30 Jul 2000 21:30:58 +0200 (CEST) From: Simon J Mudd To: freebsd-questions@freebsd.org Subject: how to avoid: socket: No buffer space available? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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.) Thanks and regards, Simon -- Simon J Mudd, Madrid SPAIN Tel: +34-91-408 4878 email: sjmudd@pobox.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message