Windows Prefetch RAM: What It Is, How to Enable or Disable It, and How to Free Up More RAM

Windows Prefetch and its RAM use worry a lot of people for no good reason. Here is what Prefetch and SysMain really do with your memory, when turning them off helps, and how to do it safely.

Quick answer

Windows Prefetch records what each app loads at startup so the next launch is faster. It does not eat your RAM, and most people should leave it on.

  • Prefetch files are tiny records on disk, in C:\Windows\Prefetch. They are not kept in memory.
  • The part that fills RAM is a separate service called SysMain (once named SuperFetch). The memory it uses is cache, and Windows hands it back the instant an app needs it.
  • Turn SysMain off only if it keeps your disk at 100%. The steps are below.

Prefetch Decision Finder

Should you touch it at all? Two questions.

Chart explaining the EnablePrefetcher registry values 0, 1, 2 and 3, and the separate SysMain service
Save this chart: what each EnablePrefetcher value means.

Prefetch, SuperFetch and SysMain: what each one is

NameWhat it doesWhere it lives
PrefetchKeeps a small record of the files each app reads when it starts.pf files in C:\Windows\Prefetch
SuperFetchOld name of SysMain, used until Windows 10 version 1809Same service, renamed
SysMainLoads the apps you use most into spare RAM before you open themA Windows service

Leave it on unless you have a measured problem. Spare RAM that holds cached data is not wasted. Task Manager counts it under “Cached” and “Available”, and it is released without delay when a program asks for memory. Clearing the Prefetch folder also does not help: Windows rebuilds the files, and the next launch of each app is slower while it does.

How to check and change it

1 minuteChanges nothing

Step 1: Check your current settings

Open PowerShell or Terminal and run these two commands. Neither needs administrator rights.

reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v EnablePrefetcher
sc query sysmain
PowerShell window showing EnablePrefetcher set to 0x3 and the SysMain service stopped and disabled
The same check on our own PC: EnablePrefetcher is 3 (default) and SysMain is disabled.

A value of 0x3 is the Windows default. For SysMain, “RUNNING” means it is on.

2 minutesEasy to undo

Step 2: Turn SysMain off

  1. Press Windows + R, type services.msc and press Enter.
  2. Double-click SysMain.
  3. Click Stop, set Startup type to Disabled, and click OK.

Or run these in Terminal as administrator:

sc stop sysmain sc config sysmain start= disabled

Worked if: after a restart, disk use in Task Manager settles within a minute or two. Give it a few days before you judge app launch speed.

AdvancedRarely needed

Step 3: Change EnablePrefetcher in the registry

This switches the prefetch records themselves. Use the chart above to pick a value. Run in Terminal as administrator, replacing the last number:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v EnablePrefetcher /t REG_DWORD /d 0 /f

Restart for it to take effect. We do not suggest this for normal use. With the value at 0, Windows stops learning how your apps start, and there is no memory to gain from it.

Step 4: Turn everything back on

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters" /v EnablePrefetcher /t REG_DWORD /d 3 /f sc config sysmain start= auto sc start sysmain

Free up RAM the useful way

  1. Press Ctrl + Shift + Esc, open Processes and click the Memory column. The real users are at the top, usually a browser.
  2. Close browser tabs you are not using, or turn on the browser’s memory saver.
  3. Open Startup apps in Task Manager and disable what you do not need at sign-in.
  4. Look at Performance > Memory. If “In use” is near the total while you work, the fix is more RAM, not a registry tweak.

What we saw on our own PC

Our test PC has an NVMe SSD and 16 GB of RAM. EnablePrefetcher is at the default 3, and the SysMain service is disabled, as the screenshot shows. The C:\Windows\Prefetch folder refused to open from a normal account. It needs administrator rights. We did not measure startup or app launch times with SysMain on and off, so we make no speed claim in either direction.

What did you do in the end?

One tap. It shows the next reader what others chose.

Frequently asked questions

Does Prefetch use a lot of RAM?

No. Prefetch files sit on disk. SysMain uses spare RAM as cache, and Windows frees that cache as soon as a program needs the memory.

Should I disable Prefetch on an SSD?

There is no need. Windows already adapts to SSDs, and turning it off does not make an SSD faster or last longer in any way you would notice.

Is it safe to delete the Prefetch folder?

It is safe, but pointless. Windows recreates the files, and apps start a little slower until it does.

What is the default value of EnablePrefetcher?

3, which turns on both application launch and boot prefetching.

More Guides You May Like

Leave a Reply

Your email address will not be published. Required fields are marked *