Date: Fri, 01 Mar 2013 17:48:40 +0200 From: Andriy Gapon <avg@FreeBSD.org> To: mjacob@FreeBSD.org Cc: freebsd-hackers@FreeBSD.org Subject: Re: memory allocation in spinlock context Message-ID: <5130CDD8.2050107@FreeBSD.org> In-Reply-To: <5130B990.2010001@freebsd.org> References: <5130B224.8000600@FreeBSD.org> <5130B990.2010001@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
on 01/03/2013 16:22 Matthew Jacob said the following: > On 3/1/2013 5:50 AM, Andriy Gapon wrote: >> I am trying to understand if it is possible to allow memory allocations (M_NOWAIT, >> of course) in a spinlock context. >> > There are mechanisms to do just this- essentially by creating private pools that > are organized in a way to allow for spinlock (and thus possible interrupt level) > safe allocations (and failure if the pool is empty). Are you trying to make a > general mechanism for this? I am just pondering what would it take to develop such a general mechanism. -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5130CDD8.2050107>