Re: 2.6.10-rc2-mm4

From: Petr Vandrovec
Date: Tue Nov 30 2004 - 14:28:37 EST


On 30 Nov 04 at 19:25, Arjan van de Ven wrote:
> On Tue, 2004-11-30 at 10:21 -0800, Andrew Morton wrote:
> > Arjan van de Ven <arjan@xxxxxxxxxxxxx> wrote:
> > > On Tue, 2004-11-30 at 09:50 -0800, Andrew Morton wrote:
> > > > http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.10-rc2/2.6.10-rc2-mm4/
> > > >
> > > > - x86_64 supports a fourth VM zone: ZONE_DMA32. This may affect memory
> > > > reclaim, but shouldn't.
> > > what is the purpose of such a zone ??
> >
> > For pages which have a physical address <4G. I assume this was motivated
> > by the lack of an IOMMU on ia32e?
>
> but there's the swiommu for those... so that can't be it
> realistically....
>
> Is there code using the zone GFP mask yet ??

If this is going to stay, I have one possible user. VMware's vmmon needs
to allocate two pages from memory below 4GB so it can use these pages
for code and page table root while switching from long mode to legacy
mode and back. After switch code can use PAE mode and access any memory
it wants, but as CR3 is 32bit only in legacy mode, and paging has to be
disabled while switching between modes, these two pages needs to be in
low 4GB.

Currently vmmon uses GFP_DMA for this allocation - which unnecessarily
limits memory available for this operation to 16MB, although any page
from low 4GB suffices.
Best regards,
Petr Vandrovec

-
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/