Thrashing颠簸

Thrashing

  • If a process does not have “enough” pages, the page-fault rate is very high
    • Page fault to get page
    • Replace existing frame
    • But quickly need replaced frame back
    • This leads to:
      • Low CPU utilization
      • Operating system thinking that it needs to increase the degree of multiprogramming
      • Another process added to the system

如果一个进程没有“足够”的页面,那么页面错误率就会非常高。

页故障到获得页面

替换现有的帧

但很快需要替换的帧回来

这导致:

CPU利用率低

操作系统认为它需要增加多程序设计的程度

另一个进程添加到系统中

  • Thrashing.  A process is busy swapping pages in and out

颠簸。一个进程忙于换入和换出页面。

 Demand Paging and Thrashing

  • Why does demand paging work?

 
       Locality model

    • Process migrates from one locality to another
    • Localities may overlap
  • Why does thrashing occur?

 
       S size of locality > total memory size

  • Limit effects by using local or priority page replacement

需求分页为何有效?

        位置模型

进程从一个区域迁移到另一个区域

局部可能重叠

为什么会发生资源错配?

         局部大小 > 总内存大小

使用本地或优先页替换限制影响

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值