Re: A question about ZONE_DMA

From: David Rientjes
Date: Wed Oct 13 2010 - 16:53:51 EST


On Wed, 13 Oct 2010, Casey Dahlin wrote:

> Hi all,
>
> So if I understand correctly, ZONE_DMA exists to separate and preserve the
> chunk of memory to which older ISA cards are capable of doing DMA. The question
> that arises for me is:
>
> 1) Why do /all/ 32-bit boxes have a ZONE_DMA when surely only a tiny and
> shrinking number of them have a need for it?
>

If you don't need it, disable CONFIG_ZONE_DMA, which is useful to prevent
oom conditions when lowmem_reserve_ratio reserves memory in that zone that
you'll never need to save.

If you do disable that option, you may also want to look at disabling
CONFIG_GENERIC_ISA_DMA and CONFIG_ISA_DMA_API which you need to hack a
little to get to compile. I'll send a patch to fix that.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/