Re: [Intel IOMMU 06/10] Avoid memory allocation failures in dma map api calls

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Wednesday, June 20, 2007 - 1:06 am

On Tue, 2007-06-19 at 14:37 -0700, Keshavamurthy, Anil S wrote:

So you just unleashed an unbounded allocation context on PF_MEMALLOC?
seems like a really really bad idea.


Mempools work as intended with GFP_ATOMIC, it gets filled up to the
specified number of elements using GFP_KERNEL (at creation time). This
gives GFP_ATOMIC allocations nr_elements extra items once it would start
failing.


PF_MEMALLOC as is, is meant to salvage the VM from the typical VM
deadlock. Using it as you do now is not something a driver should ever
do, and I'm afraid I will have to strongly oppose this patch.

You really really want to calculate an upper bound on your memory
consumption and reserve this.

So, I'm afraid I'll have to..

NACK!

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Intel IOMMU 06/10] Avoid memory allocation failures in dm ..., Keshavamurthy, Anil S, (Tue Jun 19, 2:37 pm)
Re: [Intel IOMMU 06/10] Avoid memory allocation failures i ..., Christoph Lameter, (Tue Jun 19, 4:25 pm)
Re: [Intel IOMMU 06/10] Avoid memory allocation failures i ..., Christoph Lameter, (Tue Jun 19, 4:34 pm)
Re: [Intel IOMMU 06/10] Avoid memory allocation failures i ..., Peter Zijlstra, (Wed Jun 20, 1:06 am)
Re: [Intel IOMMU 06/10] Avoid memory allocation failures i ..., Siddha, Suresh B, (Wed Jun 20, 10:30 am)
Re: [Intel IOMMU 06/10] Avoid memory allocation failures i ..., Arjan van de Ven, (Wed Jun 20, 12:14 pm)
Re: [Intel IOMMU 06/10] Avoid memory allocation failures i ..., Keshavamurthy, Anil S, (Wed Jun 20, 4:03 pm)
Re: [Intel IOMMU 06/10] Avoid memory allocation failures i ..., Arjan van de Ven, (Wed Jun 20, 11:11 pm)
Re: [Intel IOMMU 06/10] Avoid memory allocation failures i ..., Keshavamurthy, Anil S, (Wed Jun 20, 11:30 pm)
Re: [Intel IOMMU 06/10] Avoid memory allocation failures i ..., Keshavamurthy, Anil S, (Wed Jun 20, 11:37 pm)
Re: [Intel IOMMU 06/10] Avoid memory allocation failures i ..., Keshavamurthy, Anil S, (Thu Jun 21, 12:51 pm)