SysMain

Also known as: Superfetch

On this page 7

SysMain is the Windows service that analyzes long-term usage patterns and preloads frequently used code and data into idle memory, so that applications start and respond faster. Until Windows 10 version 1809 the same service was named Superfetch, and many guides still use that older name. In Windows performance work, SysMain sits at the center of a recurring debate: it usually helps, yet it is often blamed for high disk activity on older machines.

The service runs inside a shared Service Host process, starts automatically and works mostly in the background. It combines several mechanisms, including boot and application prefetching, memory prioritization and support for ReadyBoost, which together turn otherwise unused RAM into a cache of likely needs.

How SysMain predicts and preloads data

SysMain works by recording which files and memory pages each program touches during startup and normal use, then reading those pages back into RAM before they are requested. The logic follows a simple principle: free memory is wasted memory, so filling it with probable data costs nothing as long as it can be discarded instantly.

The collected traces are stored in the C:\Windows\Prefetch folder as .pf trace files, one per executable, together with databases such as AgAppLaunch.db that record launch history by time of day and day of week. From this history the service builds a ranking of programs and pages, so that the browser used every morning is cached before the first click.

Preloaded pages land on the standby list, the part of physical memory that holds cached data not currently assigned to any process. Windows assigns each standby page a priority from 0 to 7, and SysMain raises the priority of pages it expects to be reused. When an application needs memory, the lowest-priority standby pages are repurposed first, which means prefetched data never blocks a real allocation.

The table below lists the main components that operate under the SysMain service and the job each one performs.

ComponentWhat it doesWhen it acts
Boot prefetcherReads files needed during startup in one optimized passDuring system boot
Application prefetcherReplays recorded file access for a programEach time the program launches
Superfetch prioritizationRanks and preloads pages by usage historyContinuously at low priority
ReadyBoost supportUses a flash drive as an extra cacheOnly when a ReadyBoost device is configured
Memory compression supportKeeps compressed pages in RAM instead of paging outUnder memory pressure
Components managed by the SysMain service

SysMain settings and where they live

SysMain is controlled mainly through the Services console, PowerShell and a small set of registry values. The service name and the display name are both SysMain, and its default startup type is Automatic. The process appears in Task Manager as Service Host: SysMain, which makes it easy to identify when diagnosing disk or CPU load.

Finer control comes from the PrefetchParameters registry key, where the EnablePrefetcher value selects which kinds of prefetching are active. The values below apply to both the prefetcher and the older EnableSuperfetch setting, although modern builds often ignore manual changes and manage the behavior themselves.

ValueMeaningTypical use
0Prefetching disabledTroubleshooting or specialized appliances
1Application launch prefetching onlyRarely used configurations
2Boot prefetching onlySome server or kiosk images
3Both boot and application prefetchingDefault on client editions
Values of the EnablePrefetcher registry setting

Useful commands include Get-Service SysMain to read the state, Stop-Service SysMain for a temporary stop and Set-Service SysMain -StartupType Disabled for a permanent change. The cmdlet Get-MMAgent shows whether memory compression and application pre-launch are enabled, because these memory manager features interact closely with the service.

SysMain is one of several caching mechanisms in Windows, and confusing them leads to poor tuning decisions. The comparison below separates SysMain from neighboring features that also speed up access to data or appear in the same performance discussions.

FeatureMain purposeRelation to SysMain
System file cacheCaches recently read file dataIndependent; SysMain adds predictive loading
ReadyBoostExtends caching to a USB flash driveDepends on SysMain to function
Windows Search indexingBuilds a searchable index of contentSeparate service with its own disk load
Paging fileStores memory pages moved out of RAMOpposite direction; SysMain reads data in
Fast StartupSaves a kernel hibernation imageComplements boot prefetching
How SysMain differs from neighboring features

The distinction matters most during troubleshooting. High disk usage after login frequently comes from Windows Search indexing, update servicing or antivirus scans, so disabling SysMain alone often leaves the real cause untouched.

When to keep or disable SysMain

For most systems the correct choice is to leave SysMain enabled, because its work is scheduled at low I/O priority and yields to foreground activity. Modern Windows also adapts the service to the storage type, reducing aggressive preloading on fast NVMe drives where the gain is smaller.

The decision table below summarizes common situations and the recommended setting for each one.

SituationRecommended settingReason
Typical desktop or laptop with an SSDKeep enabledFaster launches at negligible cost
Older PC with a hard disk and 4 GB RAMTest disabling temporarilyPreloading may compete with active work
Sustained 100% disk usage traced to SysMainDisable and measureConfirms whether it is the true cause
Virtual desktop or non-persistent VDI imageOften disabled in the imageUsage history is discarded at each logoff
Gaming PC with ample RAMKeep enabledCached assets reduce load times
Decision guide for SysMain configuration

Any change should be validated with measurements rather than impressions. Resource Monitor shows which files the service reads, and Windows Performance Recorder can capture a boot trace that reveals whether prefetching shortens or lengthens startup.

Limitations and common misconceptions

Most complaints about SysMain stem from misreading memory statistics. A machine that shows little free RAM is not starved when the memory is held as standby cache, because that cache is released immediately on demand.

  • High memory use is not a fault: cached pages are counted as available memory in Task Manager.
  • Disabling SysMain does not free usable RAM: it only leaves memory empty that would otherwise hold cached data.
  • Prefetch folder cleaning is counterproductive: deleting .pf files forces Windows to relearn launch patterns and slows the next starts.
  • Disk activity is front-loaded: preloading is heaviest shortly after boot and after major updates, then settles.
  • Memory compression can be affected: on many builds stopping the service also stops compressed memory, which increases paging.

The real limitation is slow mechanical storage. On a hard disk with long seek times, background reads compete with foreground requests, and on a heavily loaded system the benefit may not outweigh the cost. In that case, upgrading to an SSD solves the underlying problem far more effectively than disabling the service.

The short version

SysMain is a helper built into Windows that learns which programs you use and loads them into memory ahead of time. When you open them, they appear faster because much of the work is already done in advance.

Think of a cafe that starts brewing your usual order when it sees you at the door. If you order something else, nothing is lost: the prepared cup is simply set aside. In the same way, the memory SysMain fills is handed back instantly whenever another program needs it, so on most computers the best choice is to leave it switched on.

Where it makes a difference

A small accounting office runs ten older desktops with mechanical hard disks and 8 GB of RAM. Staff report that every morning the computers are nearly unusable for several minutes, and Task Manager shows Service Host: SysMain reading heavily from disk alongside Windows Search indexing and antivirus scans.

The administrator disables SysMain on two test machines for one week and records boot traces. Login becomes slightly more responsive, but the accounting application now takes about twice as long to open each morning. The trace also shows that search indexing caused most of the disk queue.

The final decision is to keep SysMain enabled, reschedule indexing and replace the hard disks with SSDs. After the upgrade, the morning slowdown disappears entirely and application launches drop to a few seconds, confirming that storage speed, not the service, was the bottleneck.