Date: Fri, 2 Jul 2004 14:10:06 -0400 From: Brian Fundakowski Feldman <green@FreeBSD.org> To: current@FreeBSD.org Subject: UMA zinit/zctor function error returning Message-ID: <20040702181006.GJ1034@green.homeunix.org>
next in thread | raw e-mail | index | archive | help
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. <URL:http://green.homeunix.org/~green/uma_error_checking.patch> -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040702181006.GJ1034>