如何在 Windows 中运行具有大页面的应用程序?
大页面在 Windows Server 2003
和 Windows Vista
中可用。
但是如何为我的应用程序启用大页面呢?
Large pages are available in Windows Server 2003
and Windows Vista
.
But how do I enable large pages for my application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须将
锁定内存页面
权限分配给运行您的应用程序的任何用户。 这包括管理员。You will have to assign the
Lock pages in memory
privilege to any user that runs your application. This includes administrators.Martin 的答案在 Windows Server 2003 上是正确的:
在Windows Vista上,您还需要确保应用程序以管理员身份运行(右键单击应用程序或外壳并选择“以管理员身份运行”。
此外,它有助于拥有一台新启动的计算机,因为大页面可能会由于堆碎片而“耗尽”。
Martin's answer is correct on Windows Server 2003:
On Windows Vista you need also make sure that the application is run as Administrator (by right-clicking on the application or the shell and choosing "Run as adminstrator".
In addition, it helps to have a freshly booted machine since the large pages can "run out" due to fragmentation of the heap.