如何在 Windows 中使用大页面运行我的应用程序? [英] How do I run my app with large pages in Windows?

查看:29
本文介绍了如何在 Windows 中使用大页面运行我的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大页面在 Windows Server 2003Windows Vista 中可用.

Large pages are available in Windows Server 2003 and Windows Vista.

但是如何为我的应用程序启用大页面?

But how do I enable large pages for my application?

推荐答案

Martin 的回答在 Windows Server 2003 上是正确的:

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. 选择控制面板 -> 管理工具 -> 本地安全策略
  2. 选择本地策略 -> 用户权限分配
  3. 双击在内存中锁定页面",添加用户和/或群组
  4. 重启机器

在 Windows Vista 上,您还需要确保应用程序以管理员身份运行(通过右键单击应用程序或外壳并选择以管理员身份运行".

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.

这篇关于如何在 Windows 中使用大页面运行我的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆