通过使用本网站, 您同意 隐私政策.
接受
进入IT进入IT进入IT
  • 家
  • 信息技术专家
  • 技术
  • 微软
    • 天蓝色
    • 配置管理器/SCCM
    • 数字PM
    • 协调者
    • Hyper-V
    • 微软 Edge 预览体验
    • 微星指数
    • 办公室 365
    • 办公室内幕
    • 电力商业智能
    • Skype
    • SQL服务器
    • 团队
  • 视窗
    • Windows 管理中心
    • Windows客户端
    • Windows服务器
  • SCCM查询集合列表
阅读: 如何更改 Windows 上的虚拟内存大小 10: Step-by-Step Guide
字体调整器氨基酸
进入IT进入IT
字体调整器氨基酸
  • 家
  • 信息技术专家
  • 技术
  • 微软
  • 视窗
  • SCCM查询集合列表
搜索
  • 家
  • 信息技术专家
  • 技术
  • 微软
    • 天蓝色
    • 配置管理器/SCCM
    • 数字PM
    • 协调者
    • Hyper-V
    • 微软 Edge 预览体验
    • 微星指数
    • 办公室 365
    • 办公室内幕
    • 电力商业智能
    • Skype
    • SQL服务器
    • 团队
  • 视窗
    • Windows 管理中心
    • Windows客户端
    • Windows服务器
  • SCCM查询集合列表
Windows客户端

如何更改 Windows 上的虚拟内存大小 10: Step-by-Step Guide

出版: 二月 18, 2024
5 最小阅读量
分享

如何更改 Windows 上的虚拟内存大小 10: Step-by-Step Guide.

内容
How to increase virtual memory using Settings (图形用户界面)How to increase virtual memory using Windows PowerShell

System-managed page files

By default, page files are system-managed. This means that the page files increase and decrease based on many factors, such as the amount of physical memory installed, the process of accommodating the system commit charge, and the process of accommodating a system crash dump.

For example, when the system commits charge is more than 90 percent of the system commit limit, the page file is increased to back it. This continues to occur until the page file reaches three times the size of physical memory or 4 国标, whichever is larger. This all assumes that the logical disk that is hosting the page file is large enough to accommodate the growth.

The following table lists the minimum and maximum page file sizes of system-managed page files in Windows 10.

Minimum page file sizeMaximum page file size
Varies based on page file usage history, amount of RAM (RAM ÷ 8, max 32 国标) and crash dump settings.3 × RAM or 4 国标, whichever is larger. This is then limited to the volume size ÷ 8. 然而, it can grow to within 1 GB of free space on the volume if required for crash dump settings.

How to increase virtual memory using Settings (图形用户界面)

To adjust the virtual memory size on Windows 10, use these steps:

1. Open Settings;

2. 导航至 System\About;

3. Under the “Related settings” section, click the System info;

4. Click the Advanced system settings option from the left pane;

5. Click the Advanced 选项卡.

6. Under the “Performance” section, 点击 Settings;

7. Click the Advanced 选项卡;

8. Under the “Virtual memory” section, click the Change;

9. 清除 Automatically manage paging files size for all drives option.

10. Select the Custom size option.

11. Specify the initial and maximum size for the paging file in megabytes.

笔记: The size of the virtual memory is unique to each device, and it can’t be generalized. 然而, usually, it’s recommended to use a number that’s one and a half times the total available memory for the “Initial size” and three times of available memory for the “Maximum size” when possible.

12. Click the Set 按钮.

13. Click the 好的 按钮.

14. Click the 好的 button again.

15. Restart your device.

If you need to revert the changes, you can use the same instructions, but on step 9, make sure to check the Automatically manage paging size for all drives option, and restart your device to apply changes.

How to increase virtual memory using Windows PowerShell

To modify the paging file size with Windows PowerShell:

1. Open 开始.

2. 搜索 Windows PowerShell, right-click the top result, and select the Run as administrator option.

笔记: Also you can right mouse button click on 开始 按钮并运行 Windows PowerShell (Admin)

3. Type the following command to get the current status of the paging file:

wmic pagefile list /format:list

4. Type the following command to switch from Automatic Manage to 风俗 virtual memory:

wmic computersystem where name="%computername%" set AutomaticManagedPagefile=false

5. Type the following command to set the initial and maximum size of the virtual memory:

wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=<InitialSizeinMB>,MaximumSize=<MaximumSizeinMB>

An example (Initial – 1024 Mb, Maximum – 4096 Mb):

wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=1024,MaximumSize=4096

6. Type the following command to restart your PC:

shutdown -r -t 00

After you complete the steps, the device will start using the new values for virtual memory, which, if done correctly, should help to improve system performance.

笔记: If you no longer need to use the custom size for virtual memory, you can always revert the changes to automatic:

wmic computersystem where name="%computername%" set AutomaticManagedPagefile=true

Restart your device.

笔记: It’s possible to disable virtual memory on Windows 10, even when you have a large amount of system memory, it’s not recommended to disable this feature. Usually, if you disable it, some applications may stop working, some system features may not work efficiently, and you may end up with some weird behaviors.

标记:Powershell视窗视窗 10
上一篇 如何在 Windows 上执行 Shell 脚本文件 10 使用 WSL
下一篇 How to Refresh Active Directory Group Membership in Windows
发表评论 发表评论

发表回复 取消回复

您的电子邮件地址不会被公开. 必填字段已标记 *

该网站使用 Akismet 来减少垃圾邮件. 了解您的评论数据的处理方式.

翻译

English中文(简体)DanskNederlandsFrançaisDeutschItaliano한국어PolskiPortuguêsRomânăEspañolУкраїнська
经过 Transposh - translation plugin for wordpress

热门帖子

Windows Server 的系统要求 2016
Windows服务器
配置管理器查询集合列表
配置管理器查询集合列表
configmgr
在经典团队网站的新式页面上启用结构化/托管导航
技术
SCCM 无法从 MP 获取预期版本的 DP 位置
configmgr

最近的帖子

在 Ubuntu 上安装和配置 Fail2ban 以实现 SSH 保护 24.04
Linux
在AlmaLinux上启用和配置FirewallD
Linux
AlmaLinux中的用户创建和SSH密钥设置
Linux
如何在AlmaLinux上重置密码
Linux

© 2023 进入IT

转到移动版本
欢迎回来!

登录您的帐户

用户名或电子邮件地址
密码

丢失密码?