What are page faults

页面故障发生在尝试访问内存映射文件的部分时,该部分不在内存中。若内存有空闲空间,操作系统会在磁盘上找到页面并直接加载到内存;若无空闲内存,则必须替换现有页面并从磁盘读取请求的页面。这一过程,在活跃系统中可能非常耗时。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

What are page faults?

Page faults will occur if you’re attempting to access part of a memory-mapped file that isn’t in memory.

If there is free memory, then the operating system can find the page on disk and load it to memory directly. However, if there is no free memory, the operating system must:

  • find a page in memory that is stale or no longer needed, and write the page to disk.
  • read the requested page from disk and load it into memory.

This process, particularly on an active system can take a long time, particularly in comparison to reading a page that is already in memory.

 

参考:http://docs.mongodb.org/manual/faq/storage/#what-are-page-faults

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值