Windows不是直接从硬盘驱动器运行软件,而是将一些相关数据临时存储在系统内存中。这为您带来了速度优势——切换回您的软件更快,因为访问系统内存中的数据比访问硬盘驱动器上的数据要快得多。
但是,随着时间的推移,这些数据可能会开始填满您的可用内存。缓存越大,您的 PC 执行其他关键任务所需的可用内存就越少。如果您的 PC 开始运行有点慢,了解如何清除Windows 10中的缓存可以立即提高速度。
重启你的电脑(Restart Your PC)
您的硬盘驱动器不需要电源来存储您的数据。当您关闭 PC 时,您的文件将被保存,供您下次启动时再次访问。
您的系统内存不同。它是易变的,这意味着它需要恒定的电力来维持其状态。当您关闭 PC 时,系统内存中的所有数据都会被擦除。
这意味着清除Windows内存缓存的最快方法就是关闭 PC。重新启动它或关闭它并手动重新启动它——无论哪种方式,电源的短暂中断都会擦除其中保存的数据。
当 Windows 再次启动时,您的内存使用量应该会降低。
虽然Windows 10在保持开机状态方面确实比以前的(Windows 10)Windows版本要好得多,但您的数据缓存会随着它在不重新启动的情况下运行的时间越长而增长。通过偶尔重新启动您的 PC,您可以快速清除Windows 10中的缓存并立即提升速度。
禁用 Windows Superfetch(Disable Windows Superfetch)
Windows试图通过分析您使用 PC 的方式并预测您的操作来提高系统性能。Superfetch是一项 Windows 功能,旨在通过自动将某些应用程序数据加载到系统内存中来帮助实现这一点。
从技术上讲,Windows将Superfetch内存使用视为低优先级。当对系统内存的需求增加时,应该放弃Superfetch数据。(Superfetch)但是,此过程可能会很缓慢,尤其是当您的内存使用率很高并且Superfetch(Superfetch)与您的其他打开的应用程序之间存在“拉锯战”时。
如果您使用固态驱动器作为Windows系统驱动器,Windows将自动禁用此功能。访问SSD(SSD)上的文件比典型的硬盘驱动器快得多,因此将数据留在驱动器上直接运行是安全的,无需Superfetch。
在大多数情况下,打开Superfetch(Superfetch)可能是安全的,但如果您发现经常出现减速、高RAM使用或启动缓慢,禁用Superfetch可能是您开始故障排除的好地方。
- 首先,通过按键盘上的Win + RWindows 注册表编辑器(Windows Registry Editor),键入regedit,然后按 Enter。
- 在出现的“用户访问控制(User Access Control)”窗口中按“是”。(Yes)
- 在注册表编辑器(Registry Editor)中,导航到左侧面板中的HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters
- 在打开的窗口中单击鼠标右键(Right-click),转到新建(New)子菜单,然后单击D-WORD (32 bit) Value。
- 如果要完全禁用Superfetch,请将EnableSuperfetch的值保留为0。但是,如果要更改它,请双击EnableSuperfetch值,然后在ValueData下,将其更改为1以启用应用程序的Superfetch,2以启用它用于启动,或3以完全启用它。单击确定(OK )以确认该图。
这将完全禁用Superfetch服务,或者将其范围限制为应用程序或启动。正如我们所提到的,拥有SSD系统驱动器的用户应该自动禁用Superfetch,并且可以使用其他方法之一来清除Windows 10中的缓存。
清除挂起的空闲任务以释放内存(Clear Pending Idle Tasks to Free Up Memory)
清除Windows(Windows)缓存的一个古老且常见的技巧是使用自定义快捷方式“应该”清除Windows 10和旧Windows版本中的缓存。
不幸的是,这实际上并没有清除您的Windows内存缓存,但它确实指示Windows开始处理挂起的系统“空闲”任务。这些是不使用系统资源时在后台执行的 隐藏Windows任务。(Windows)
该过程可能需要一些时间才能完成,但可以在您的 PC 运行时为您提供更长期的可用系统资源。
这是一种过时的方法,但如果您想弄清楚如何在旅途中清除计算机缓存,那么尝试它肯定没有害处。但是,如果您想立即提高系统性能,最好只是重新启动您的 PC。
- 首先,前往您的桌面,或在合适的位置打开Windows 文件资源管理器。(Windows File Explorer)右键单击(Right-click),前往新建(New)子菜单,然后单击快捷方式(Shortcut)。
- 在“创建快捷方式(Create Shortcut)”对话框的“(, )键入项目的位置”下(Type the location of the item),键入%windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks,然后单击“下一步”(Next)。
- 给快捷方式起一个合适的名称,例如Clear Pending System Tasks。
快捷方式创建后即可供您使用 - 在任意位置双击快捷方式即可开始该过程。
考虑其他解决方案(Consider Other Solutions)
(Windows)与旧版Windows相比, (Windows)Windows 10 在管理可用系统资源方面要好得多。如果您发现性能不佳,请首先尝试重新启动。这是擦除Windows内存缓存的最简单方法。
我们列出的其他方法可能会有所帮助,但不能保证它们在所有情况下都有效。Windows会尽力管理您的系统资源,但速度较慢的 PC 可能有更大的根本原因,例如RAM不足、磁盘空间不足或硬盘驱动器较旧且速度较慢。
清除内存缓存只会修补而不是解决 PC 的这些长期问题。您可能需要检查系统性能(check your system performance)以调查任何 PC 速度变慢的原因并帮助您找到更合适的解决方案。
How To Clear The Windows Memory Cache
Rather than running softwarе directly from your hard drive, Windows temporarily stores some of the related data in your system memory. This gives you the benefit of speed—switching back to your software is qυicker, becauѕe it’s much quicker to access data in your system memory than on your hard drive.
Over time, however, this data can begin to fill up your available memory. The bigger the cache, the less free memory your PC has to perform other crucial tasks. Knowing how to clear the cache in Windows 10 could offer you an immediate speed boost if your PC is starting to run a little slow.
Restart Your PC
Your hard drive doesn’t require power to store your data. When you turn your PC off, your files are saved, ready for you to access again the next time you boot up.
Your system memory is different. It’s volatile, which means that it needs constant electrical power to maintain its state. When you turn off your PC, all the data held in your system memory is wiped.
That means that the quickest route to clearing your Windows memory cache is to just turn your PC off. Restart it or switch it off and boot it up again manually —either way, the brief interruption in power will erase the data held within.
When Windows starts up again, your memory usage should be lower as a result.
While it’s true that Windows 10 is far better at being left powered up than previous Windows releases, your data cache is going to grow the longer it runs without a restart. By occasionally rebooting your PC, you can quickly clear the cache in Windows 10 and give yourself an immediate speed boost.
Disable Windows Superfetch
Windows tries to improve system performance by analyzing how you use your PC and predicting your actions. Superfetch is a Windows feature designed to help this by automatically loading certain application data into your system memory.
Technically, Windows treats Superfetch memory usage as a low priority. When demands on your system memory increase, Superfetch data should be given up. This process can be sluggish, however, especially if your memory usage is high and there’s a “tug of war” between Superfetch and your other open applications.
If you’re using a solid-state drive as your Windows system drive, Windows will automatically disable this feature. It’s much quicker to access files on an SSD than a typical hard drive, so it’s safe to leave data on the drive to run directly instead, making Superfetch unnecessary.
You’re probably safe to leave Superfetch on in most instances, but if you’re seeing regular slowdowns, high RAM usage, or a slow startup, disabling Superfetch could be a good place for you to begin troubleshooting.
- To start, open the Windows Registry Editor by pressing Win + R on your keyboard, type regedit, then press enter.
- Press Yes to the User Access Control window that appears.
- In the Registry Editor, navigate to HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters in the left-hand panel.
- Right-click in the open window, go to the New sub-menu, then click D-WORD (32 bit) Value.
- Name the new value EnableSuperfetch.
- If you want to completely disable Superfetch, leave the value of EnableSuperfetch as 0. If you want to alter it, however, double-click on the EnableSuperfetch value, then under ValueData, change it to 1 to enable Superfetch for applications, 2 to enable it for booting, or 3 to completely enable it. Click OK to confirm the figure.
- Once saved, reboot your PC.
This will disable the Superfetch service, either entirely, or by limiting its scope to applications or startup. As we’ve mentioned, users with an SSD system drive should have Superfetch disabled automatically and can look to one of the other methods to clear the cache in Windows 10 instead.
Clear Pending Idle Tasks to Free Up Memory
An old and commonly reported trick to clear your Windows cache is to use a custom shortcut that “should” clear the cache in Windows 10 and older Windows versions.
Unfortunately, this doesn’t actually clear your Windows memory cache, but it does instruct Windows to begin processing pending system “idle” tasks. These are hidden Windows tasks that are performed in the background when system resources aren’t being used.
The process may take some time to complete but could give you a longer-term boost in available system resources while your PC is running.
This is an outdated method, but there’s certainly no harm in trying it if you’re trying to figure out how to clear your computer cache on the go. If you want an immediate boost in system performance, however, it’s best to just restart your PC instead.
- To begin, head to your desktop, or open Windows File Explorer in a suitable location. Right-click, head to the New sub-menu, then click Shortcut.
- In the Create Shortcut dialog box, under Type the location of the item, type %windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks, then click Next.
- Give the shortcut a suitable name, such as Clear Pending System Tasks.
- Click Finish to create the shortcut.
The shortcut will be ready for you to use once it’s created—double-click the shortcut at any point to begin the process.
Consider Other Solutions
Windows 10 is far better at managing available system resources than older Windows releases. If you’re seeing poor performance, try a restart in the first instance. This is the easiest way for you to wipe your Windows memory cache.
The other methods we’ve listed could help, but they’re not guaranteed to work in every situation. Windows will try to manage your system resources as best it can, but a slow PC is likely to have a larger root cause such as insufficient RAM, low disk space, or an older and slower hard drive.
Clearing your memory cache only patches up, rather than resolves, these longer-term issues with your PC. You may need to check your system performance to investigate the cause of any PC slowdown and to help you find a more adequate solution.