Re: Zone's in Linux
- From: Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 22 Aug 2007 09:44:41 +0200
deepak wrote:
On Aug 21, 6:08 pm, Alexander Krizhanovsky <a.krizhanov...@xxxxxxxxx>
wrote:
On Aug 21, 12:39 pm, deepak <deepakpj...@xxxxxxxxx> wrote:
Hi,
I read a document where main memory in Linux will be logically divided
into zones
called as NORMAL, DMA, HIGH memory zones.
Why in linux we are dividing memory into zones?
ZONE_DMA places in first 16MB of memory because some devices need
exactly that addresses for mapping.
x86 can't directly map pages with address over 1GB, so we need
ZONE_HIGHMEM for indirect mapping.
I learned about this from Linux kernel programming by R.Love.
In that author specified that x86 won't be able to access above 868MB.
Why x86 is not able to access this and how they are resolving this
through
DMA_HIGH zone concept?
This is simply not true.
All 32 bit x86 processors are able to access at least 4 GB of physical memory. There may be hardware (i.e. board) restrictions like video buffers or PCI buffers which are placed at the upper end of the 4GB area, but for all practical purposes, 4GB is the limit, not 868MB.
With PAE (Physical Address Extension), x86 processors are able to address 64GB of physical memory, although in all cases, 4GB is the virtual address range.
In the latter case, however, most peripherals which can do DMA cannot access the physical memory above 4GB, as they only have 32 address lines, so Linux provides means to allocate memory which is DMA-able by these devices.
--
These are my personal views and not those of Fujitsu Siemens Computers!
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://www.fujitsu-siemens.com/imprint.html
.
- Follow-Ups:
- Re: Zone's in Linux
- From: Alexander Krizhanovsky
- Re: Zone's in Linux
- References:
- Zone's in Linux
- From: deepak
- Re: Zone's in Linux
- From: Alexander Krizhanovsky
- Re: Zone's in Linux
- From: deepak
- Zone's in Linux
- Prev by Date: Query in usage of YAFFS
- Next by Date: Re: Zone's in Linux
- Previous by thread: Re: Zone's in Linux
- Next by thread: Re: Zone's in Linux
- Index(es):
Relevant Pages
|