Large pages are available in Windows Server 2003
and Windows Vista
.
Windows Server 2003和Windows Vista中提供了大页面。
But how do I enable large pages for my application?
但是如何为我的应用程序启用大页面?
2 个解决方案
#1
3
Martin's answer is correct on Windows Server 2003:
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
重新启动机器
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".
在Windows Vista上,您还需要确保应用程序以管理员身份运行(通过右键单击应用程序或shell并选择“以管理员身份运行”。
In addition, it helps to have a freshly booted machine since the large pages can "run out" due to fragmentation of the heap.
此外,由于堆的碎片会导致大页面“耗尽”,因此有一个新启动的机器很有帮助。
#2
1
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
选择控制面板 - >管理工具 - >本地安全策略
选择本地策略 - >用户权限分配
双击“锁定内存中的页面”,添加用户和/或组
重新启动机器
#1
3
Martin's answer is correct on Windows Server 2003:
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
重新启动机器
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".
在Windows Vista上,您还需要确保应用程序以管理员身份运行(通过右键单击应用程序或shell并选择“以管理员身份运行”。
In addition, it helps to have a freshly booted machine since the large pages can "run out" due to fragmentation of the heap.
此外,由于堆的碎片会导致大页面“耗尽”,因此有一个新启动的机器很有帮助。
#2
1
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
选择控制面板 - >管理工具 - >本地安全策略
选择本地策略 - >用户权限分配
双击“锁定内存中的页面”,添加用户和/或组
重新启动机器