大页面在 Windows Server 2003
和 Windows Vista
中可用。
但是如何为我的应用程序启用大页面?
最佳答案
Martin 的答案在 Windows Server 2003 上是正确的:
You will have to assign the "Lock pages in memory" privilege to any user that runs your > application. This includes administrators
- Select Control Panel -> Administrative Tools -> Local Security Policy
- Select Local Policies -> User Rights Assignment
- Double click "Lock pages in memory", add users and/or groups
- Reboot the machine
在 Windows Vista 上,您还需要确保应用程序以管理员身份运行(右键单击应用程序或 shell 并选择“以管理员身份运行”。
此外,拥有一台新启动的机器也很有帮助,因为大页面可能会由于堆碎片而“耗尽”。
关于windows - 如何在 Windows 中运行具有大页面的应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39059/