How do I run my app with large pages in Windows?

瘦欲@ 提交于 2019-12-06 08:24:39

Martin's answer is correct on Windows Server 2003:

You will have to assign the "Lock pages in memory" privilege to any user that runs your > application. This includes administrators

  1. Select Control Panel -> Administrative Tools -> Local Security Policy
  2. Select Local Policies -> User Rights Assignment
  3. Double click "Lock pages in memory", add users and/or groups
  4. 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".

In addition, it helps to have a freshly booted machine since the large pages can "run out" due to fragmentation of the heap.

Martin

You will have to assign the Lock pages in memory privilege to any user that runs your application. This includes administrators.

  1. Select Control Panel -> Administrative Tools -> Local Security Policy
  2. Select Local Policies -> User Rights Assignment
  3. Double click "Lock pages in memory", add users and/or groups
  4. Reboot the machine
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!