Re: Zone's in Linux



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

.



Relevant Pages

  • Re: Zones in Linux
    ... The issue is how much of the memory is visible in kernel *virtual memory* ... There is a total visibility of 4GB of virtual memory. ... physical memory are mapped 1-to-1 into kernel virtual memory space. ...
    (comp.os.linux.development.system)
  • Re: Running RTP module
    ... virtual memory space left to run even a very simple RTP. ... balance of the virtual memory allocation between kernel and RTPs, ...
    (comp.os.vxworks)
  • Re: Not very encouraging :(
    ... the 2.4 kernel is receiving complains even from the Linux community ... anyone post a problem in the linux ng's I follow, ... of message about virtual memory. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Why system call need to copy the date from the userspace before using it
    ... In virtual memory terms, each userspace program resides in the ... while the kernel takes up the higher addresses. ... the supposed buffer, does not belong to kernel space. ... Now the only thing that can go wrong is that the user program told the ...
    (Linux-Kernel)
  • Re: should I go for 64bit version of Fedora 11 ?
    ... Any software that can make use of more than 3 GB of virtual memory space ... GIMP with lots of open images, or a GIMP session where you’ve had lots ... james@ | Humans are humans. ...
    (Fedora)