Windows memory compression is a feature that was implemented to improve system performance with traditional hard drives that, when available memory calls for data to be paged to the drive, will instead compress some memory content because it is more efficient do to so and creates a better user experience.
While it might be more efficient than writing to a traditional hard drive, it will not be more efficient than writing to most SSDs, and it is impossible that it would be more efficient than L1 cache.
This is important if your virtual memory paging file is on a drive that is cached by PrimoCache. Unless you have changed your paging file setting it most likely set to C: drive, and therefore most likely being cached by PrimoCache, L1 and L2.
Therefore, if Memory Compression is active, instead of Windows paging data, which will be completely transparent to your user experience if that write goes to L1, Windows will compress some memory contents. This will use CPU resources that would otherwise not have been used. As a user you will perceive a lag in your system as Windows compresses the data.
So my advice is to turn off Windows Memory compression, because it is enabled by default.
To disable Memory Compression:
1. Run Powershell as Administrator
2. Enter the command: Disable-MMAgent -mc
3. Restart your computer
You’re Welcome!
![Smile :)](./images/smilies/icon_e_smile.gif)
If you ever want to re-enable Memory Compression:
1. Run Powershell as Administrator
2. Enter the command: Enable-MMAgent -mc
3. Restart your computer