How to Enable or Disable Memory Compression in Windows 11

This post shows students and new users steps to turn On or Off Memory compression in windows 11. Windows 11 comes with a feature that compresses a system’s memory to improve performance and reduce physical memory utilization by storing part of the memory pages in RAM in a compressed form.

Compressing the system’s memory helps reduce the number of read / write requests, resulting in fewer pagefile IO operations and a reduced reliance on disk.

Memory compression might help improve user experience overall, however, additional CPU resources may be required during compressing and decompressing the data in RAM which may slow CPU processing on some systems.

Windows also uses Memory compression to reduce the amount of memory used per process, freeing up RAM space to maintain more applications in RAM without enacting traditional paging. All of these can help systems with low memory footprint.

Below is how to enable or disable Memory compression in Windows 11.

How to enable memory compression in Windows 11

As mentioned above, Memory compression may help low-end system with few system memory. Windows Memory compression feature compress the system’s memory helps to reduce the number of read / write requests, and freeing up RAM space to maintain more applications in RAM without enacting traditional paging.

Below is how to see the compressed memory in Windows 11.

Open the Task Manager and look under Performance tab and Memory section to see how much memory is compressed.

You may also view your system’s Memory compression status using the PowerShell commands below in Windows Terminal as administrator.

Get-MMAgent

You should see similar results as the one below when Memory compression is enabled.

If Memory compression is not enabled and the command above returns False, then run the commands below in Windows Terminal as administrator and select PowerShell tab.

Then run the commands below to enable Memory compression.

Enable-MMAgent -mc

When you’re done, close Windows Terminal and restart your computer to apply the changes.

How to disable memory compression in Windows 11

If Memory compression is enabled and you want to disable it, open Windows Terminal as administrator, then select the PowerShell tab. Then run the commands below.

Disable-MMAgent -mc

When you run the commands above, you will get similar results as in the screenshot below.

That should do it!

Conclusion:

This post showed you how to enable or disable Memory compression in Windows 11. If you find any error above or have something to add, please use the comment form below.