From owner-freebsd-questions Thu Aug 24 10:32:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail11.disney.com (mail11.disney.com [208.246.35.55]) by hub.freebsd.org (Postfix) with ESMTP id ED9DA37B422 for ; Thu, 24 Aug 2000 10:32:10 -0700 (PDT) Received: from pain.corp.disney.com (pain.corp.disney.com [153.7.231.100]) by mail11.disney.com (Switch-2.0.1/Switch-2.0.1) with SMTP id e7OHfT121442 for ; Thu, 24 Aug 2000 10:41:31 -0700 (PDT) Received: from louie.fa.disney.com by pain.corp.disney.com with ESMTP for freebsd-questions@freebsd.org; Thu, 24 Aug 2000 10:31:27 -0700 Received: from mercury.fan.fa.disney.com (mercury.fan.fa.disney.com [153.7.119.1]) by louie.fa.disney.com (8.9.2/8.9.2) with ESMTP id KAA20735 for ; Thu, 24 Aug 2000 10:30:58 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from snoopy.fan.fa.disney.com by mercury.fan.fa.disney.com for freebsd-questions@freebsd.org; Thu, 24 Aug 2000 10:30:58 -0700 From: Jim Pirzyk Organization: Walt Disney Feature Animation To: freebsd-questions@freebsd.org Subject: kern.ipc.maxsockbuf setting does not work Date: Thu, 24 Aug 2000 10:21:02 -0700 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00082410305800.00383@snoopy.fan.fa.disney.com> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am running a 4.1-RELEASE i386 system and I am trying to increase the maxsockbuf size so I set it in /etc/sysctl.conf like this: kern.ipc.maxsockbuf=524288 And on bootup I see kern.ipc.maxsockbuf: 262144 -> 524288 but when I try to use a larger buffer I get: pirzyk@snoopy:/sys/kern 10>ttcp -r -w512 ttcp-r: buflen=65536, nbuf=2048, align=16384/0, port=5001, sockbufsize=524288 tcp ttcp-r: socket ttcp-r: setsockopt: sndbuf: No buffer space available errno=55 But this should work. Seems the kernel is keeping the old value of 262144. Now I can change it in /usr/include/sys/socketvar.h (SB_MAX) and rebuild the kernel but I do not think this is what was designed. - JimP -- --- @(#) $Id: dot.signature,v 1.9 2000/07/10 16:43:05 pirzyk Exp $ __o Jim.Pirzyk@disney.com ------------------------------------- _'\<,_ Senior Systems Engineer, Walt Disney Feature Animation (*)/ (*) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message