覆盖 Windows XP 分页/缓存逐出策略
由于公司原因,我们仅限于 32 位 XP 计算机。 Ramdrive (PAE) 提供了一个很好的替代方案来使用更多的内存,但是 RAMdrive 上设置的分页文件几乎不被使用,并且永远不会增长。 我已经尝试了 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management 下的一些选项,但没有看到任何不同的行为。我已将页面文件设置为最小 2GB,最大 4GB,但它永远不会增长。
我想知道的是如何强制 Windows XP 多分页、少驱逐。不完全是一个编程问题,但可能会引起很多其他程序员的关注。
Because of corporate reasons we are limited to 32-bit XP machines. Ramdrive (PAE) provides a nice alternative to using a bit more memory, but the paging file set on the ramdrive is almost not used and it never grows.
I've tried some of the options under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management but I have not seen any different behavior. I've set up the page file to be minimum 2GB, maximum 4GB, but it never grows.
What I would like to know is how to force Windows XP to page more and evict less. Not quite a programming question, but might concern a lot of other programmers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您希望首先将分页文件设置为分配更大的区域,我建议将虚拟内存分页文件设置为最小 4GB,这样就不需要花费额外的时间来分配额外的空间。
If you are looking to set the paging file to allocate a larger area to begin with I would suggest setting the Virtual Memory paging file to a minimum of 4GB so it does not need to take the additional time to allocate additional space.