From owner-freebsd-current@FreeBSD.ORG Fri Jul 2 18:10:08 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D8C0216A4CE for ; Fri, 2 Jul 2004 18:10:07 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i62IA7dA014470 for ; Fri, 2 Jul 2004 14:10:07 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.12.11/8.12.11/Submit) id i62IA6jB014469 for current@FreeBSD.org; Fri, 2 Jul 2004 14:10:06 -0400 (EDT) (envelope-from green) Date: Fri, 2 Jul 2004 14:10:06 -0400 From: Brian Fundakowski Feldman To: current@FreeBSD.org Message-ID: <20040702181006.GJ1034@green.homeunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: UMA zinit/zctor function error returning X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 18:10:08 -0000 Since it seems like a decidedly useful piece of functionality to allow a UMA zone's init/ctor function to cause zalloc failure, and it makes good sense to pass in the M_*WAIT* flags for their use, I have done so in a tree and found it really didn't seem to be a hard change to make. I think if we're going to do it, we need to do it before 5 is branched and not have these problems lurking. I've been running with this on my system with no ill effects so far, but it needs testing under load (i.e. from people that are able to truly provoke the panic: mb_ctor_pack(): can't deal with failure! Please try this if you are having that problem. That panic is possible for anyone with extreme mbuf/kmem load, and there are further panics in the case of users of the MAC subsystem when running out of memory in a similar fashion. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\