LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Memory management ?????? (https://www.linuxquestions.org/questions/linux-newbie-8/memory-management-511335/)

cs_raja 12-17-2006 10:21 AM

Memory management ??????
 
:confused: My doubt is regarding 32 bit systems.

And Kernel will take around 1 GB of memory and this is common to all processes. Each process will map this to their starting wirtual addresses.

My doubt is, Is this 4 GB limit is for one process or all the processes together in the system.

As far as I know wiht Virtual Memory management one can address maximum of 4 GB(32 bit). It ok if all processes can address 4 GB combined.
Is it that each process is allocated a separate address inside a single 4 GB adress space

OR

If each process can address 4 Gb then how is it managed.
Does any body have any clue

Thankx:confused: :confused:

btmiller 12-17-2006 11:18 AM

Each process has a 4 GB virtual memory space. As you say, the top 1 GB (usually) of the address space is reserved for the kernel and common to all processes, but the other 3 GB is exclusive to the process (excluding consideration like shared memory here). The total amount of memory used by all processes may exceed 4 GB, but this would require the use of swap space as a 32 bit kernel can only access 4 GB of physical memory (remember that the user and kernel memory that I talk about above refer to virtual addresses, which are translated to physical addresses via the MMU on the CPU using rules given by the kernel). Therefore, all the processes in the system may use more memory than the physical memory installed, but no more than physical memory plus swap space (or any other backing store).


All times are GMT -5. The time now is 09:55 PM.