Windows Memory Mapped Files

后端 未结 4 750
耶瑟儿~
耶瑟儿~ 2021-02-09 07:39

I am trying to investigate the behaviour of the Windows Kernel with respect to Memory Mapped Files / Virtual Memory. Specifically I am interested in determining how frequently t

4条回答
  •  滥情空心
    2021-02-09 07:51

    Memory mapped files are controlled by the modified page writer in the kernel - they're flushed whenever the memory that backs the page needs to be re-used (so it can happen under memory pressure).

    The system also keeps track of the number of dirty pages and writes them after a threshold is reached.

    You can find more information about in this article about Windows memory management changes for Windows Vista - it doesn't directly answer your question about how the memory manager treats modified pages but you can infer some of the details based on the information in the article.

提交回复
热议问题