On Mon, 11 Jun 2007 18:10:40 -0700 Arjan van de Ven <arjan@xxxxxxxxxxxxxxx> wrote:
Andrew Morton wrote:the problem with that is that if anything downstream from the iommu layer ALSO needs memory, we've now eaten up the last free page and things go splat.Where as resource pool is exactly opposite of mempool, where each time it looks for an object in the pool and if it exist then we return that object else we try to get the memory for OS while scheduling the work to grow the pool objects. In fact, the workI realise all that. But I'd have thought that the mempool approach is
is schedule to grow the pool when the low threshold point is hit.
actually better: use the page allocator and only deplete your reserve pool
when the page allocator fails.
If that happens, we still have the mempool reserve to fall back to.