Compacting C: Drive: Understanding the Differences

Abstract: Prevent C: drive performance degradation caused by CPU-intensive on-the-fly NTFS compression.

Created: 2026-08-01 by
Using the compact command with the /u, /i, and /s flags on your C: drive compresses files on-the-fly, which significantly increases CPU usage during read operations and can degrade system performance. Microsoft advises against this method for system drives because it introduces latency to every file access, making general computing tasks feel sluggish compared to using native storage management tools or simply freeing up space.

How On-The-Fly Compression Works

The compact utility in Windows enables NTFS compression, which is distinct from traditional defragmentation or disk cleanup methods. When you apply compression to a folder or drive, the operating system does not permanently shrink the file size on the disk in a way that saves static space without overhead. Instead, it uses a feature called "on-the-fly" decompression. Every time an application reads a compressed file, the CPU must temporarily decompress the data into memory before the application can use it. Similarly, when writing data, the system must compress it before saving it to the disk.

This process creates a continuous cycle of CPU-intensive work. For modern multi-core processors, this might seem negligible, but for system-critical files located on the C: drive, the impact is noticeable. System processes, such as those involved in booting, loading applications, and managing background services, frequently access thousands of small files. The additional computational load required to decompress these files in real-time can lead to increased input/output (I/O) wait times. Users often report that their computers feel slower, particularly when launching programs or switching between windows, even though the available free space has technically increased.

Why Microsoft Advises Against It

Microsoft documentation explicitly warns against compressing the entire system drive because the performance penalty outweighs the benefits of saved space. The primary reason is the unpredictability of system responsiveness. While you may gain several gigabytes of free space, the trade-off is a consistent reduction in disk throughput efficiency. The file system must maintain metadata about which parts of a file are compressed and which are not, adding complexity to every read and write operation.

Furthermore, compression does not solve the root cause of low disk space. If your C: drive is full, it is usually due to accumulated temporary files, large application caches, or user data. Compressing the drive masks the problem rather than resolving it. As new files are created, they too will be compressed, continuing the cycle of CPU overhead. In contrast, cleaning up unnecessary files provides immediate relief without any ongoing performance tax. This approach aligns with best practices for maintaining a healthy operating system environment, ensuring that critical system resources remain available for active tasks rather than being consumed by file management overhead.

Safe Alternatives to Free Up Space

Instead of using the compact command, consider using built-in Windows tools designed specifically for storage management. The Storage Sense feature in Windows 10 and 11 automatically cleans up temporary files, empties the recycle bin, and removes unused apps. You can also manually review large files and folders using the Settings app under System > Storage. This allows you to identify and delete specific items causing space issues without affecting system performance.

Another effective strategy is to move personal data, such as documents, pictures, and videos, to a secondary drive if one is available. This reduces the load on the C: drive while keeping your data accessible. If you do not have additional hardware, consider using cloud storage solutions for less frequently accessed files. These methods provide tangible space savings without introducing the computational penalties associated with NTFS compression. For more information on managing storage conflicts, you might find our guide on Can't delete/remove temporary files Windows 10 helpful for troubleshooting stubborn files.

Disabling Compression on Existing Files

If you have already applied compression and wish to revert the changes, you can do so through the Properties dialog. Right-click the compressed folder or drive, select Properties, and then click Advanced. Uncheck the box that says "Compress contents to save disk space." Apply the changes to all subfolders and files. This process will decompress the data, restoring original file sizes and eliminating the CPU overhead. Be aware that this operation can take considerable time depending on the amount of data involved, as the system must rewrite every file in its uncompressed state.

Impact on SSD Longevity and Performance

A common misconception is that compression affects SSD longevity or fragmentation in the same way it affects mechanical hard drives. SSDs do not suffer from fragmentation-related performance losses in the traditional sense, as they have no moving parts. However, constant reading and writing of compressed data can increase wear leveling activity, potentially impacting the lifespan of the drive over many years. More immediately, the CPU overhead remains the primary concern. Even on high-end systems, the extra cycles required for decompression can delay response times for interactive applications.

For users concerned about storage optimization, focusing on efficient file management is far superior to enabling system-wide compression. Regular maintenance, such as clearing browser caches and uninstalling unused software, provides sustainable benefits. If you are considering changing your storage hardware configuration, ensure you understand the implications of mixing different drive types. Our article Can I Change My C Drive from My SSD to My HDD? discusses how hardware choices affect overall system behavior and performance expectations.

Frequently Asked Questions

Does compact /c compress files permanently?

No, the compact command enables NTFS on-the-fly compression, meaning files are stored in a compressed format but decompressed dynamically upon access. This means the space savings are permanent until you decompress them, but the performance impact is continuous during every read operation. It does not create a separate archive file like ZIP or RAR formats.

Can I compress only specific folders instead of the whole drive?

Yes, you can target specific folders, such as a large media library, to reduce the impact on system performance. By compressing only non-critical data, you avoid slowing down system files and applications. However, you must still manage the CPU overhead for accessing those specific folders, which may still feel slower than uncompressed equivalents.

Will disabling compression delete my files?

Disabling compression does not delete your files; it simply rewrites them in an uncompressed format. Your data remains intact, but the files will occupy more disk space after the process completes. Ensure you have sufficient free space on the drive before initiating decompression to prevent errors during the rewrite process.

Is NTFS compression faster than using a third-party zip tool?

NTFS compression is generally more convenient for everyday access because it requires no manual extraction, but it places a constant load on the CPU. Third-party zip tools offer higher compression ratios and allow you to store data without affecting system performance until you choose to extract it. For long-term archival, zip tools are superior; for active use, NTFS compression adds unwanted latency.

Should I use compact on a USB flash drive?

It is generally not recommended to use NTFS compression on USB flash drives unless absolutely necessary. Flash memory has limited write cycles, and the constant read-write overhead of compression can accelerate wear. Additionally, many older devices or car stereos may not support NTFS compression features, leading to compatibility issues when accessing the drive.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More