Re: Zone's in Linux
- From: Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Aug 2007 10:51:25 +0200
Gil Hamilton wrote:
Alexander Krizhanovsky <a.krizhanovsky@xxxxxxxxx> wrote in news:1187785854.294148.246500@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
As far as I understood this comment x86 can't directly address memory
higher than 896Mb (I don't understand why here is wrote 900Mb):
So could you explain why we have only 896Mb of Normal Zone (that is
can't directly address whole 2Gb of physical memory)? Why these 2Gb
aren't fully arranged to NormalZone?
The issue is how much of the memory is visible in kernel *virtual memory* at a given time. There is a total visibility of 4GB of virtual memory. In the "normal" x86 linux kernel configuration, the virtual address space is subdivided between user-space which gets 3GB (address 0 through 0xbfffffff) and 1GB for the kernel address space (0xc0000000 through 0xffffffff). That is, the kernel only has 1GB of virtual memory space available for its use. Starting at 0xc0000000, the first X pages of physical memory are mapped 1-to-1 into kernel virtual memory space. This makes it convenient to access any low physical address: you just add PAGE_OFFSET (0xc0000000) to it.
ACK. My answer was context-free. In the context of a Linux kernel (and we're in comp.os.*linux*.development.system, after all), you're absolutely right.
Josef
--
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
.
- References:
- Zone's in Linux
- From: deepak
- Re: Zone's in Linux
- From: Alexander Krizhanovsky
- Re: Zone's in Linux
- From: deepak
- Re: Zone's in Linux
- From: Josef Moellers
- Re: Zone's in Linux
- From: Alexander Krizhanovsky
- Re: Zone's in Linux
- From: Gil Hamilton
- Zone's in Linux
- Prev by Date: Re: Zone's in Linux
- Next by Date: i386 compiles from a x86_64 system?
- Previous by thread: Re: Zone's in Linux
- Next by thread: Query in usage of YAFFS
- Index(es):
Relevant Pages
|