Re: memory allocation in spinlock context

2013-03-01 Thread Alfred Perlstein
On 3/1/13 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. I do not see any obvious architectural obstacles. But the fact that all of the uma locks, system map lock, object locks, page queue locks a

Re: memory allocation in spinlock context

2013-03-01 Thread Andriy Gapon
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

Re: memory allocation in spinlock context

2013-03-01 Thread Davide Italiano
On Fri, Mar 1, 2013 at 2:50 PM, Andriy Gapon wrote: > > I am trying to understand if it is possible to allow memory allocations > (M_NOWAIT, > of course) in a spinlock context. > I do not see any obvious architectural obstacles. > But the fact that all of the uma locks, system map lock, object lo

Re: memory allocation in spinlock context

2013-03-01 Thread Matthew Jacob
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

memory allocation in spinlock context

2013-03-01 Thread Andriy Gapon
I am trying to understand if it is possible to allow memory allocations (M_NOWAIT, of course) in a spinlock context. I do not see any obvious architectural obstacles. But the fact that all of the uma locks, system map lock, object locks, page queue locks and so on are regular mutexes makes it im