Re: Virtual memory - user space kernel space



On Feb 8, 1:45 pm, "SaranJothy" <saranjo...@xxxxxxxxx> wrote:
Hi,
I m having some questions in Linux memory management.
I m considering about 32 bit machine only.
If you have a 512 MB of memory, how it is divided between kernel space
and user space?

you bumble virtual and physical memory. kernel divides _only_ virtual
memory between kernel space and user space,
physical memory are share to both. so, if for example, I want to
allocate n mb from user space, i can get some virtual address p
associated with physical page g.
and if i after it will try to allocate n mb from kernel space i can
get some virtual address i, associated with the same physical page g.
it's normal.


What is the link between this division and 3GB userspace and 1 GB
kernel space division.
Is the 3G/1G division is for virtual memory?

yep

Is the total Virtual memory can be 4G only? I mean is it the maximum?


nope. intel, for example, support PAE feature, that performs 64G
virtual space.

Thanks in advance.

regards
SaranJothy


.



Relevant Pages

  • Re: user_to_phys() without mmap?
    ... into user space is causing large latencies and unsightly artifacts. ... fact being copied into kernel space. ... Only the MMU will interfere accesses to ... virtual memory locations from user space, ...
    (comp.os.linux.development.system)
  • Re: Virtual memory - user space kernel space
    ... It depends upon the total size of kernel code and static data. ... 1G/3G division in virutal memory is nothing but a set of pointers to ... User space pointers has to go via MMU to get the location in physical ... you bumble virtual and physical memory. ...
    (comp.os.linux.development.system)
  • Re: kernel space and user space in RHEL AS3.0
    ... IBM machine has 16GB physical Memory What size estimate ... Kernel space and User space? ... Some Oracle articles say that Oracle VLM can allocate Physical ... Mem to User space as database cache. ...
    (alt.os.linux)
  • Re: about statically mapped virtual address
    ... in chapter 21 it says "The upper 2 GB of kernel space is divided ... The first 512MB memory region, ... that this is linearly mapped to the first 512MB of physical memory is ...
    (microsoft.public.windowsce.platbuilder)
  • running diagnostics application in user space to test hardware:
    ... we are trying write diagnostics application in user space. ... how do you implement memory test from user space. ... how do you know which physical memory location is faulty? ...
    (comp.os.linux.embedded)