Windows 10

Memory Compression in Windows 10 Threshold 2

In this Ask the Admin, I’ll provide you with a quick rundown of the changes to memory management in Windows 10 Threshold 2, which is slated for release in November.

Most technical users of Windows are familiar with the concept of the page file, which allows Windows to swap memory out to disk, so that under low memory conditions, pages can be purged from physical memory and loaded back into RAM from disk at a later time. While this prevents Windows from running out of memory, loading pages into RAM can cause disk thrashing, which in turn negatively impacts performance.

In Windows 10 Threshold 2 or build 10525, Memory Manager compresses infrequently accessed pages, typically by 40 percent, while retaining them in a new compression store that’s held in physical RAM. If Memory Manager dictates that pages do need to be swapped out to disk, they are already considerably smaller in size, reducing the amount of disk I/O required during read/write operations.

Memory compression in Windows 10

Prior to build 10525, when Memory Manager decides that a page hasn’t been used in a while, it gets written to the modified page list and is then written to disk before being moved to the standby page list. The standby list caches pages that can be taken and used by other apps, but if the original process needs the page back straightaway, it can be reclaimed quickly — otherwise known as a soft fault. Hard faults occur when a page must be retrieved from disk because it’s been purged from RAM, which can be costly to overall system performance and responsiveness.

Sponsored Content

What is “Inside Microsoft Teams”?

“Inside Microsoft Teams” is a webcast series, now in Season 4 for IT pros hosted by Microsoft Product Manager, Stephen Rose. Stephen & his guests comprised of customers, partners, and real-world experts share best practices of planning, deploying, adopting, managing, and securing Teams. You can watch any episode at your convenience, find resources, blogs, reviews of accessories certified for Teams, bonus clips, and information regarding upcoming live broadcasts. Our next episode, “Polaris Inc., and Microsoft Teams- Reinventing how we work and play” will be airing on Oct. 28th from 10-11am PST.

Memory compression in Windows 10 (Image Credit: Microsoft)
Memory compression in Windows 10 (Image Credit: Microsoft)

Windows 10 build 10525 introduces an additional stage to the process described above. Instead of being written to disk, trimmed pages belonging to a working set are moved to the modified list, are compressed and then moved to the system working set. Only when the availability of physical RAM runs critically low, Memory Manager writes pages to disk.

Pages are stored in compression stores, for which there is one for all legacy desktop apps and other non-UWP processes, and one for each Universal Windows Platform (UWP) app. Because compression stores are held in the system working set, the size of the system working set grows, as UWP apps are suspended.

When an app requires a memory page that’s been swapped out, if it is held in a compression store, Memory Manager decompresses it and returns it – known as a soft compression fault. Otherwise, a hard fault occurs, and the page is read from disk and decompressed.

Universal Windows Platform apps

UWP apps are swapped out in their entirety, not trimmed like legacy system apps and other processes. This is because when UWP apps are suspended, they are not in use and the pages used can be safely swapped out in their entirety. When a UWP app is resumed, the combination of sequentially reading the pages from disk back into physical RAM, and parallel decompression using multiple CPU cores, results in an extremely fast and efficient operation.

Improved performance for Windows 10

You may be reading this and thinking that these changes will only benefit low-memory systems. While it’s true that devices with limited amounts of RAM will benefit the most, the upcoming changes to Memory Manager will benefit all systems running Windows 10, by reducing RAM usage and page file I/O operations, which in turn will improve system responsiveness and the lifetime of solid-state disks.

Related Topics:

BECOME A PETRI MEMBER:

Don't have a login but want to join the conversation? Sign up for a Petri Account

Register
Comments (0)

Leave a Reply

IT consultant, Contributing Editor @PetriFeed, and trainer @Pluralsight. All about Microsoft, Office 365, Azure, and Windows Server.
External Sharing and Guest User Access in Microsoft 365 and Teams

This eBook will dive into policy considerations you need to make when creating and managing guest user access to your Teams network, as well as the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure.

You will learn:

  • Who should be allowed to be invited as a guest?
  • What type of guests should be able to access files in SharePoint and OneDrive?
  • How should guests be offboarded?
  • How should you determine who has access to sensitive information in your environment?

Sponsored by:

 
Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: