Paging memory management

Paging memory management

  1. The main memory is divided into a number of units called frames.
  2. Processes are divided into fixed sized units called pages.
  3. The size of each page is same as that of each frame.
  4. A frame is used to load a page.
  5. The pages of a process/program might be scattered throughout the available frames(may or may not in contiguous frames).
  6. A page-frame table/page-map table is used to record which pages are loaded into which frames.
  7. The logic address of a program instruction is expressed as (PageNumber, offset)
  8. The physical address of a program instruction can be gotten by adding the offset to the star address of a page frame.
  9. Not all the pages of a process need to be loaded to start execution. There might be insufficient page frames available for the whole process.
  10. This leads to the use of virtual memory.
  11. Since not all the pages of a process are loaded into frames, as the running of the process, the instruction of the pages that are not loaded into frames might be needed. But it is possible that there are no frames available. When this happens a page in a frame must be swapped out to the secondary storage so that the frame is available to load the required page. This is called page swapping
  12. This may give rise of another question: disk thrashing. Too much page swapping will lead to a degradation in performance. If this happens, the memory manager spends almost all of its time swapping pages in and out of memory and little time in the execution of the process.
  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值