Andrew Morton wrote:
On Mon, 11 Jun 2007 18:10:40 -0700 Arjan van de Ven <[email protected]> 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 workis schedule to grow the pool when the low threshold point is hit.I realise all that. But I'd have thought that the mempool approach is 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.
we do, except that we just ate the memory the downstream code would use and get ... so THAT can't get any.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- From: Matt Mackall <[email protected]>
- Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- From: "Siddha, Suresh B" <[email protected]>
- Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- References:
- [Intel-IOMMU 00/10] Intel IOMMU Support
- From: [email protected]
- Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- From: Andi Kleen <[email protected]>
- Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- From: Christoph Lameter <[email protected]>
- Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- From: Andi Kleen <[email protected]>
- Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- From: "Keshavamurthy, Anil S" <[email protected]>
- Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- From: Andrew Morton <[email protected]>
- Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- From: "Keshavamurthy, Anil S" <[email protected]>
- Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- From: Andrew Morton <[email protected]>
- Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- From: Arjan van de Ven <[email protected]>
- Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- From: Andrew Morton <[email protected]>
- [Intel-IOMMU 00/10] Intel IOMMU Support
- Prev by Date: [RFC][AGPGART]intel-agp: save whole config space in suspend/resume
- Next by Date: Re: [patch 0/3] AHCI Link Power Management
- Previous by thread: Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- Next by thread: Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling
- Index(es):