如何在 Windows 中运行具有大页面的应用程序?

发布于 2024-07-04 05:26:23 字数 107 浏览 4 评论 0原文

大页面在 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

瞎闹 2024-07-11 05:26:23

您必须将锁定内存页面权限分配给运行您的应用程序的任何用户。 这包括管理员。

  1. 选择控制面板-> 管理工具 -> 本地安全策略
  2. 选择本地策略 -> 用户权限分配
  3. 双击“锁定内存中的页面”,添加用户和/或组
  4. 重新启动机器

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
何以笙箫默 2024-07-11 05:26:23

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

您必须将“锁定内存中的页面”权限分配给运行您的>的任何用户 应用。 这包括管理员

  1. 选择控制面板 -> 管理工具 -> 本地安全策略
  2. 选择本地政策 -> 用户权限分配
  3. 双击“锁定内存中的页面”,添加用户和/或群组
  4. 重新启动机器

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

此外,它有助于拥有一台新启动的计算机,因为大页面可能会由于堆碎片而“耗尽”。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文