From owner-freebsd-questions@FreeBSD.ORG Mon Dec 15 22:40:17 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BBCE16A4CE for ; Mon, 15 Dec 2003 22:40:17 -0800 (PST) Received: from tequila.4you.lt (tequila.4you.lt [212.122.68.216]) by mx1.FreeBSD.org (Postfix) with SMTP id 4CCB143D31 for ; Mon, 15 Dec 2003 22:40:11 -0800 (PST) (envelope-from hugle@vkt.lt) Received: (qmail 21697 invoked by uid 0); 16 Dec 2003 06:36:55 -0000 Received: from hugle@vkt.lt by tequila by uid 82 with qmail-scanner-1.20rc1 (. Clear:RC:1:. Processed in 0.077205 secs); 16 Dec 2003 06:36:55 -0000 Received: from unknown (HELO hugl3) (213.252.192.162) by tequila.4you.lt with SMTP; 16 Dec 2003 06:36:55 -0000 Date: Tue, 16 Dec 2003 08:39:27 -0800 From: hugle X-Mailer: The Bat! (v2.01) X-Priority: 3 (Normal) Message-ID: <163235840781.20031216083927@vkt.lt> To: freebsd-questions@freebsd.org In-Reply-To: <1071547417.30863.0.camel@itouch-1011.prv.au.itouchnet.net> References: <1071465321.7243.25.camel@itouch-1011.prv.au.itouchnet.net> <1071547417.30863.0.camel@itouch-1011.prv.au.itouchnet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re[2]: socket: no buffer space available X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hugle List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2003 06:40:17 -0000 AT> Just for the record, I fixed this problem by recompiling my kernel with AT> MAXUSERS 512 actualy you don't need to recompile kernel. you can achieve that by doing: echo kern.maxusers=0 >> /boot/loader.conf It is better to use 0, since them freeBSD can dynamicaly change you need (as i heard) AT> :) AT> ajt. AT> On Mon, 2003-12-15 at 16:15, Andrew Thomson wrote: >> I've got a perl script doing some p5-sybase stuff for me.. However after >> a while, it fails with the following error message: >> >> .."socket: No buffer space available"... >> >> I've seen other reports from other uses getting this problem however no >> clear responses on a fix. >> >> This script used to work find on my 5.0-RELEASE box now I'm trying it on >> a 5.1-RELEASE box. I admit the new box is a lower spec - less cpu and >> less memory - so that may affect some of the default sysctl values??? >> >> I've tried tweaking a couple of sysctl entries however nothing has >> gotten me over this hurdle. >> >> Below are some relevant(??) sysctls. >> >> kern.ipc.maxsockbuf: 1048576 >> kern.ipc.sockbuf_waste_factor: 8 >> kern.ipc.nmbufs: 17920 >> kern.ipc.nsfbufs: 2496 >> kern.ipc.mbuf_wait: 64 >> kern.ipc.mbuf_hiwm: 512 >> kern.ipc.mbuf_lowm: 128 >> >> kern.ipc.numopensockets: 94 >> kern.ipc.maxsockets: 4008 >> >> Any suggested tweaks appreciated. >> >> Regards, >> >> ajt. >> >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> AT> _______________________________________________ AT> freebsd-questions@freebsd.org mailing list AT> http://lists.freebsd.org/mailman/listinfo/freebsd-questions AT> To unsubscribe, send any mail to AT> "freebsd-questions-unsubscribe@freebsd.org"