Results 1 to 2 of 2

Thread: Paging and logical memory allocation

  1. #1
    Join Date
    May 2013

    Paging and logical memory allocation

    My view of memory is that the heap is located in low memory (above the text and data) and then high up in memory you have the stack. Is this how the memory is actually allocated? Or is it contiguous (and paged). I know page tables reference consecutive frames, so does this mean the first n pages are allocated to the heap, text and data; and then you have m pages allocated to the stack? For example, if the heap,data,text require 5.5 inner page table pages to reference them; and the stack needs 1.5 inner page table pages to reference it, then will there be 8 inner page table pages or 7? There will be 8 if the stack is indeed located much higher in virtual memory, but if its actually all located in one contiguous block of virtual memory then it will require only 7 pages (as the 2 half pages will merge into one). Hopefully this makes sense. I am really keen to get the answer to this question as its been plaguing me for weeks! Thanks.

  2. #2
    Join Date
    Jul 2007
    Magic City of the Plains
    Xubuntu Development Release


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts