Disable Memory Compression in Windows
Disable Memory Compression in Windows
The Memory Manager (MM) feature in Windows 10 and 11 is designed to compress infrequently-accessed memory pages. This compression reduces the number of reads and writes to the disk, specifically the pagefile, thereby improving system responsiveness. By reducing the memory used per process, the operating system can maintain more physical memory applications before resorting to traditional paging, thus improving overall performance .
Disabling memory compression might reduce system lag in scenarios where a system has a high-end CPU that is adept at handling memory management tasks without compression. In such cases, the overhead of compressing and decompressing memory might introduce latency, which could be reduced by disabling the feature, assuming the CPU can efficiently manage memory operations without it .
Users should consider their system configuration and performance requirements. While the default recommendation is to keep the Memory Manager enabled for optimal performance and efficient memory use, high-end CPU users might experience reduced lag with it disabled. Users need to assess whether the performance gains from disabling outweigh the loss of the compression benefits .
To open Windows Terminal as Administrator, search for 'Windows Terminal' in the Start menu, right-click on it, and select 'Run as Administrator'. This grants the necessary privileges to manage system features such as memory compression .
To disable memory compression, open Windows Terminal as Administrator, type 'Disable-MMAgent -mc' and press Enter, wait a few seconds, then reboot the computer to apply the change. Low-end systems might benefit from disabling memory compression as it may reduce lag, especially if the user has a high-end CPU that manages memory well without compression .
Memory compression can potentially extend the lifespan of a system's storage disk by reducing the number of read and write operations to the disk. This alleviation occurs because memory compression limits the need to use the disk's pagefile for storing memory pages, thereby decreasing wear and tear on the storage media .
To enable memory compression, one should open Windows Terminal as Administrator, type 'Enable-MMAgent -mc', and press Enter. Wait a few seconds for the process to complete, then reboot the computer to apply the change .
The pagefile acts as a secondary memory source where the operating system stores memory pages that cannot be held in RAM. Memory compression reduces the need to move memory pages to the pagefile by compressing them, which lessens the frequency of reads and writes operations to the disk. This benefits performance by allowing more applications to run in physical memory and reducing disk activity .
Keeping memory compression enabled allows the operating system to handle more applications in physical memory without quickly resorting to paging. This can lead to enhanced system responsiveness and potentially less wear on the disk by reducing the frequency of disk operations associated with paging .
To verify if memory compression is enabled or disabled, open the Task Manager by pressing the Windows Key + X and clicking on Task Manager. Then click on the Performance tab and look for 'In use' to see if memory compression is on or off .