From owner-freebsd-net Wed Jan 3 12:29:15 2001 From owner-freebsd-net@FreeBSD.ORG Wed Jan 3 12:29:13 2001 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 5BC5A37B400; Wed, 3 Jan 2001 12:29:13 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f03KTBu02677; Wed, 3 Jan 2001 12:29:11 -0800 (PST) Date: Wed, 3 Jan 2001 12:29:11 -0800 From: Alfred Perlstein To: "C. Stephen Gunn" Cc: wpaul@freebsd.org, net@freebsd.org Subject: Re: 'no memory for rx list' Message-ID: <20010103122911.H292@fw.wintelcom.net> References: <20010103101008.I19572@fw.wintelcom.net> <200101032018.PAA71589@tsunami.waterspout.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200101032018.PAA71589@tsunami.waterspout.com>; from csg@waterspout.com on Wed, Jan 03, 2001 at 03:24:20PM -0500 Sender: bright@fw.wintelcom.net Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * C. Stephen Gunn [010103 12:19] wrote: > On Wed, 03 Jan 2001 10:10:09 PST, Alfred Perlstein wrote: > > > > You could change the printf()'s to log()'s, and allow syslogd > > > to filter/combine/report them on your console. I'm sure you > > > already know this, you could increase NBMCLUSTERS and friends > > > in your kernel config, or at boot time. (For posterity in > > > the list archives). > > > > I really don't see any point in assisting a cascade-like failure > > situation by adding more work that the kernel has to do when faced > > with a shortage. > > I hadn't thought about it from that perspective. Having the driver > log something to the console about the condition is desirable > though, otherwise it simply fails without notice. A delicate > trade-off. A proper fix would be to have the driver do what it does when it can't get an mbuf by incrementing if_ierrors or something. Then the admin would be able to see it through the tools to view network device stats. I may be wrong here, but I want to know what Bill Paul thinks about this as he's far more clueful than me especially when it comes to drivers. Another solution would be something along the lines of the what the ICMP code does, which is only print the message after X number of instances and at most 1 time per second. -- -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-net" in the body of the message