* Tell me about ZONE_DMA
@ 2000-07-05 21:13 Timur Tabi
2000-07-06 20:03 ` Zlatko Calusic
0 siblings, 1 reply; 2+ messages in thread
From: Timur Tabi @ 2000-07-05 21:13 UTC (permalink / raw)
To: Linux MM mailing list
I'm trying to understand the differences between the three zones, ZONE_DMA,
ZONE_NORMAL,and ZONE_HIGHMEM. I've searched the source code (I'm getting pretty
good at understanding the kernel memory allocator), but I can't figure out what
physical regions of memory belong to each zone. Where is that determined?
Also, I get this eerie feeling that it's possible for a physical page to exist
in more than one zone. Is that true?
--
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com
When replying to a mailing-list message, please don't cc: me, because then I'll just get two copies of the same message.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Tell me about ZONE_DMA
2000-07-05 21:13 Tell me about ZONE_DMA Timur Tabi
@ 2000-07-06 20:03 ` Zlatko Calusic
0 siblings, 0 replies; 2+ messages in thread
From: Zlatko Calusic @ 2000-07-06 20:03 UTC (permalink / raw)
To: Linux MM mailing list
Timur Tabi <ttabi@interactivesi.com> writes:
> I'm trying to understand the differences between the three zones, ZONE_DMA,
> ZONE_NORMAL,and ZONE_HIGHMEM. I've searched the source code (I'm getting pretty
> good at understanding the kernel memory allocator), but I can't figure out what
> physical regions of memory belong to each zone. Where is that determined?
>
First, let's assume we're talking here about i386 architecture,
because I know nothing about other architectures.
ZONE_DMA is lower 16MB of physical memory. It is special because ISA
cards can do DMA only to this part of memory.
ZONE_NORMAL is a memory that is mapped in address space of the CPU. We
use 3:1 GB split of the CPU address space. Lower 3GB is user memory,
upper 1GB is kernel and also whole physical memory has to be mapped
there (modulo vmalloc area, not very relevant for the discussion).
With 1GB of physical memory or more, extra memory above ~960MB is in
ZONE_HIGHMEM. Somebody else will explain this memory area better, so I
won't bother writing wrong facts. I haven't investigated high memory
very much.
> Also, I get this eerie feeling that it's possible for a physical page to exist
> in more than one zone. Is that true?
>
No. Every physical page is in exactly one zone, depending on its
address, see above.
Hope it helps.
--
Zlatko
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-07-06 20:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-05 21:13 Tell me about ZONE_DMA Timur Tabi
2000-07-06 20:03 ` Zlatko Calusic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox