From owner-freebsd-questions Fri Jan 21 15: 8:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.x-treme.gr (mx2.x-treme.gr [212.120.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 2E3961563F for ; Fri, 21 Jan 2000 15:08:51 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (pat47.x-treme.gr [212.120.197.239]) by mx2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id BAA23300; Sat, 22 Jan 2000 01:08:28 +0200 Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id AAA01570; Sat, 22 Jan 2000 00:40:13 +0200 (EET) (envelope-from keramida@diogenis.ceid.upatras.gr) Date: Sat, 22 Jan 2000 00:40:12 +0200 From: Giorgos Keramidas To: pirat sriyotha Cc: "Norman C. Rice" , freebsd-questions@FreeBSD.ORG Subject: Re: No buffer space available Message-ID: <20000122004012.C1387@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <20000117013408.A3588@emu.sourcee.com> <00012111212600.01915@sukato.oaep.go.th> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <00012111212600.01915@sukato.oaep.go.th> X-PGP-Fingerprint: 62 45 D1 C9 26 F9 95 06 D6 21 2A C8 8C 16 C0 8E X-Phone-Number: +30-94-6203692, +30-93-2886457 X-Address: Theodorou Kirinaiou 61, 26334 Patra, Greece Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jan 21, 2000 at 11:33:13AM +0700, pirat sriyotha wrote: > On Mon, 17 Jan 2000, you wrote: > > On Mon, Jan 17, 2000 at 01:25:35PM +0700, pirat sriyotha wrote: > > > Hi, > > > > > > occasionally, my small network does not work. i have to 'shutdown -r now' to > > > bring it back to work. > > > > FreeBSD != Windoze > > yes you are quite right and that's why i turn away from 'doz. > > > > > > the only clue is a message from ping which is > > > > > > ping: sendto: No buffer space available > > > > > > is there anyway to solve this kind of problem instead of shutdown ? > > > > ifconfig de0 down up > > > > now, jan 21 2000 11:18 thailand mean time, it happends again and > ifconfig down and up does not work. anyway, i can connect to the > Internet via ppp connection to my isp. For a long-term solution you should consider raising your NMBCLUSTERS, that is if it happens that netstat shows they are too few. At my home box, the output is: % netstat -m 1/96 mbufs in use: 1 mbufs allocated to data 0/8/4096 mbuf clusters in use (current/peak/max) 28 Kbytes allocated to network (0% in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines watch the current/peak/max relationship and see if you need to increase the buffers. If I'm not mistaken, you can change this without a kernel recompile, with sysctl, by tweaking your kern.ipc.nmbclusters as in: # sysctl -w kern.ipc.nmbclusters=4096 After doing this on a running kernel, see if it still has the same problem. If not, you have two options. Either add the above sysctl command in your /etc/rc.local and save yourself a kernel recompile, or recompile your kernel by setting the NMBCLUSTERS option properly. Ciao. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > "Don't let your schooling interfere with your education." [Mark Twain] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message