System Enable or Disable Memory Compression in Windows 10 and Windows 11


  • Staff
Memory_Compression_banner.png

Memory Compression allows Windows 10 and Windows 11 to make better use of available memory on all systems by reducing physical memory utilization, resulting in fewer pagefile IO operations and a reduced reliance on disk. Furthermore, it improves the speed of writing to and reading from disk when MM determines paging must be enacted. Microsoft expects users to experience improved overall responsiveness and usability on all devices running Windows 10 and Windows 11.

Microsoft enabled the Memory Manager (MM) to compress infrequently-accessed memory pages which reduces the amount of reads and writes to the disk (pagefile) and therefore improves responsiveness. Compressing memory reduces the amount of memory used per process, allowing the operating system to maintain more applications in physical memory at a time before enacting traditional paging.

When Memory Manager’s policy does dictate paging, the data being written to or read from the disk is already compressed to typically around 40 percent of its original size. This compression improves the performance of other unrelated operations on the system by reducing a major source of interfering IO load. The end result is a snappier, more responsive experience with improved app launch performance and consistency.

Memory Compression is faster than using the page file, but does use more CPU resources. Your system may not perform as fast as it would if it didn’t need to compress data in memory. If you see a lot of compressed memory and suspect it’s the reason your PC is a bit slow, the only solution for this is to install more physical memory (RAM) or disable Memory Compression.

This tutorial will show you how to enable or disable Memory Compression in Windows 10 and Windows 11.


You must be signed in as an administrator to enable or disable Memory Compression.



Contents



EXAMPLE: See amount of compressed memory in Task Manager

Task_Manager_compressed_memory.png






OPTION ONE

See if Memory Compression is Currently Enabled or Disabled


1 Open Windows Terminal (Admin). and select Windows PowerShell.

2 Copy and paste the Get-MMAgent command into Windows Terminal (Admin), and press Enter. (see screenshot below)

3 Look to see if MemoryCompression shows as True (enabled) or False (disabled).

4 You can now close Windows Terminal (Admin) if you like.

Get-MMAgent.png






OPTION TWO

Enable Memory Compression


This is the default setting.


1 Open Windows Terminal (Admin). and select Windows PowerShell.

2 Copy and paste the Enable-MMAgent -mc command into Windows Terminal (Admin), and press Enter. (see screenshot below)

3 Close Windows Terminal (Admin).

4 Restart the computer to apply.

Enable-MMAgent.png






OPTION THREE

Disable Memory Compression


1 Open Windows Terminal (Admin). and select Windows PowerShell.

2 Copy and paste the Disable-MMAgent -mc command into Windows Terminal (Admin), and press Enter. (see screenshot below)

3 Close Windows Terminal (Admin).

4 Restart the computer to apply.

Disable-MMAgent.png



That's it,
Shawn Brink
 

Attachments

  • Memory_Compression.png
    Memory_Compression.png
    15.4 KB · Views: 27
Last edited:

Bug locker

Member
Local time
8:18 AM
Posts
77
Location
Athens
OS
Windows 11 Pro
Hi.
My system has memory compression enabled. The CPU I have is a sixth generation Intel and many times my system lags.
From what I've read, memory compression uses more CPU. From what I understand it is better to turn it off for this reason. Is this right ?
I have 16GB of RAM so there is no question of lack of RAM.
Thanks. :)
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17g-100nv
    CPU
    Intel 6200U
    Memory
    16GB
    Graphics Card(s)
    NVIDIA 940M
    Screen Resolution
    1600x900
    Hard Drives
    WD 3D NAND 500GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton 360

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
12:18 AM
Posts
3,706
OS
Windows 11 Pro for Workstations
Hi.
My system has memory compression enabled. The CPU I have is a sixth generation Intel and many times my system lags.
From what I've read, memory compression uses more CPU. From what I understand it is better to turn it off for this reason. Is this right ?
I have 16GB of RAM so there is no question of lack of RAM.
Thanks. :)

Hello mate, :)

It's usually better to have memory compression enabled.

You can temporarily disable memory compression to see how it affects your system lags, but I doubt it is related.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

Bug locker

Member
Local time
8:18 AM
Posts
77
Location
Athens
OS
Windows 11 Pro
Hello mate, :)

It's usually better to have memory compression enabled.

You can temporarily disable memory compression to see how it affects your system lags, but I doubt it is related.
I use rainmeter to check CPU , disk , RAM and net use. When my CPU is over 80% (in multitasking) the system lags sometimes or streaming interrupted temporarily. I will see CPU usage and lag and will inform.
On the other hand the use of RAM never exceeds 60%. So I think if less CPU and more RAM is used it would be better.
Thanks. (y)
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17g-100nv
    CPU
    Intel 6200U
    Memory
    16GB
    Graphics Card(s)
    NVIDIA 940M
    Screen Resolution
    1600x900
    Hard Drives
    WD 3D NAND 500GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton 360

Bug locker

Member
Local time
8:18 AM
Posts
77
Location
Athens
OS
Windows 11 Pro
Hello mate, :)

It's usually better to have memory compression enabled.

You can temporarily disable memory compression to see how it affects your system lags, but I doubt it is related.
Problem. After restarting the system to apply the disable MC, the powershell says compression is disabled , while in task management it seems active.
Which of the two applies?:rolleyes:
Edit : Task Manager shows "Compressed 0MB". That means its disabled ?
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17g-100nv
    CPU
    Intel 6200U
    Memory
    16GB
    Graphics Card(s)
    NVIDIA 940M
    Screen Resolution
    1600x900
    Hard Drives
    WD 3D NAND 500GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton 360

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
12:18 AM
Posts
3,706
OS
Windows 11 Pro for Workstations
Problem. After restarting the system to apply the disable MC, the powershell says compression is disabled , while in task management it seems active.
Which of the two applies?:rolleyes:
Edit : Task Manager shows "Compressed 0MB". That means its disabled ?

Correct. Both indicate it's disabled. :)

How are the lags with it disabled?
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

Bug locker

Member
Local time
8:18 AM
Posts
77
Location
Athens
OS
Windows 11 Pro
Correct. Both indicate it's disabled. :)

How are the lags with it disabled?
I tested just for the last 30 minutes and no lags until now :party: .
I will update it if it change. :) Merry Christmas for now.
(lol all these , at an "uncompatible" CPU Intel 6200U)
Χωρίς τίτλο.jpg
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17g-100nv
    CPU
    Intel 6200U
    Memory
    16GB
    Graphics Card(s)
    NVIDIA 940M
    Screen Resolution
    1600x900
    Hard Drives
    WD 3D NAND 500GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton 360

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
12:18 AM
Posts
3,706
OS
Windows 11 Pro for Workstations
:shawn:
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

FreeBooter

Well-known member
Power User
VIP
Local time
8:18 AM
Posts
691
OS
Windows 11
I have disabled memory compression and after restarting my computer few minutes later Windows 11 froze, this never happened before so just letting people know your computer may freeze after disabling memory compression you may need to restart and enable it again.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1

Bug locker

Member
Local time
8:18 AM
Posts
77
Location
Athens
OS
Windows 11 Pro
Correct. Both indicate it's disabled. :)

How are the lags with it disabled?
Well, after about 30 hours of testing, the interruptions and delays have stopped.
Well as the original article says "Memory Compression is faster than using the page file, but does use more CPU resources." ,
seems to be true. (y) :party:
These, of course, on an old sixth generation Intel CPU 6200U.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17g-100nv
    CPU
    Intel 6200U
    Memory
    16GB
    Graphics Card(s)
    NVIDIA 940M
    Screen Resolution
    1600x900
    Hard Drives
    WD 3D NAND 500GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton 360

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
12:18 AM
Posts
3,706
OS
Windows 11 Pro for Workstations
(y)
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium
Top Bottom