Is “compress OS Drive” worth it on SSD?
My SSD is running out of disk space, and I see that "Compress your OS drive" is suggested as a means to save some disk space.
My questions:
- I'm not sure whether there are any performance penalty associating with compressing the OS drive.
- And I'm not even sure whether this option is the same with "Compress this drive to save disk space" at the C drive property as per below. This option does seem to come with performance penalty.
Edit:
My PC information:
- Windows 10
- 12GB RAM
- 4 Cores with Intel i7
windows-10 hard-drive ssd compression
add a comment |
My SSD is running out of disk space, and I see that "Compress your OS drive" is suggested as a means to save some disk space.
My questions:
- I'm not sure whether there are any performance penalty associating with compressing the OS drive.
- And I'm not even sure whether this option is the same with "Compress this drive to save disk space" at the C drive property as per below. This option does seem to come with performance penalty.
Edit:
My PC information:
- Windows 10
- 12GB RAM
- 4 Cores with Intel i7
windows-10 hard-drive ssd compression
1
"My questions.." -- No, what you wrote are statements that ended with a period and not a question mark.
– sawdust
Feb 16 at 4:39
3
@sawdust they can be easily casted into question mark form. Not sure any point in nitpicking.
– Graviton
Feb 16 at 5:24
Is this on an 8-16 core monster desktop, or a single core atom netbook? I'm pretty sure there'll be some performance penalty, not sure if it'll be noticeable or not. This article from 2011 might be interesting & mentions "With information being compressed on the fly, you're consuming more of an SSD's available write cycles than if you were writing the files uncompressed. This could have negative implications on the drive's endurance" but it's not obvious why. And I thought I read SSD's might do their own compression?
– Xen2050
Feb 16 at 5:56
@Xen2050, it's a 4 core system
– Graviton
Feb 16 at 6:50
1
@Xen2050 that's about NTFS compression for general purpose files that can be read and write constantly, not CompactOS which compresses read-only system files, so no write-amplification is involved and write cycle doesn't further change. And worrying about drive wear nowadays is pretty much nonsense, because wear-leveling algorithms are increasingly good, and the total data write is enough for at least 4-8 years even if you write hundreds of GBs a day, that's why modern SSDs have 5-year warranties. I have an old workstation from 2009 or 2012 and its SSD just passed half its life
– phuclv
Feb 16 at 14:46
add a comment |
My SSD is running out of disk space, and I see that "Compress your OS drive" is suggested as a means to save some disk space.
My questions:
- I'm not sure whether there are any performance penalty associating with compressing the OS drive.
- And I'm not even sure whether this option is the same with "Compress this drive to save disk space" at the C drive property as per below. This option does seem to come with performance penalty.
Edit:
My PC information:
- Windows 10
- 12GB RAM
- 4 Cores with Intel i7
windows-10 hard-drive ssd compression
My SSD is running out of disk space, and I see that "Compress your OS drive" is suggested as a means to save some disk space.
My questions:
- I'm not sure whether there are any performance penalty associating with compressing the OS drive.
- And I'm not even sure whether this option is the same with "Compress this drive to save disk space" at the C drive property as per below. This option does seem to come with performance penalty.
Edit:
My PC information:
- Windows 10
- 12GB RAM
- 4 Cores with Intel i7
windows-10 hard-drive ssd compression
windows-10 hard-drive ssd compression
edited Feb 16 at 15:33
phuclv
10.1k64195
10.1k64195
asked Feb 16 at 4:29
GravitonGraviton
2,640226588
2,640226588
1
"My questions.." -- No, what you wrote are statements that ended with a period and not a question mark.
– sawdust
Feb 16 at 4:39
3
@sawdust they can be easily casted into question mark form. Not sure any point in nitpicking.
– Graviton
Feb 16 at 5:24
Is this on an 8-16 core monster desktop, or a single core atom netbook? I'm pretty sure there'll be some performance penalty, not sure if it'll be noticeable or not. This article from 2011 might be interesting & mentions "With information being compressed on the fly, you're consuming more of an SSD's available write cycles than if you were writing the files uncompressed. This could have negative implications on the drive's endurance" but it's not obvious why. And I thought I read SSD's might do their own compression?
– Xen2050
Feb 16 at 5:56
@Xen2050, it's a 4 core system
– Graviton
Feb 16 at 6:50
1
@Xen2050 that's about NTFS compression for general purpose files that can be read and write constantly, not CompactOS which compresses read-only system files, so no write-amplification is involved and write cycle doesn't further change. And worrying about drive wear nowadays is pretty much nonsense, because wear-leveling algorithms are increasingly good, and the total data write is enough for at least 4-8 years even if you write hundreds of GBs a day, that's why modern SSDs have 5-year warranties. I have an old workstation from 2009 or 2012 and its SSD just passed half its life
– phuclv
Feb 16 at 14:46
add a comment |
1
"My questions.." -- No, what you wrote are statements that ended with a period and not a question mark.
– sawdust
Feb 16 at 4:39
3
@sawdust they can be easily casted into question mark form. Not sure any point in nitpicking.
– Graviton
Feb 16 at 5:24
Is this on an 8-16 core monster desktop, or a single core atom netbook? I'm pretty sure there'll be some performance penalty, not sure if it'll be noticeable or not. This article from 2011 might be interesting & mentions "With information being compressed on the fly, you're consuming more of an SSD's available write cycles than if you were writing the files uncompressed. This could have negative implications on the drive's endurance" but it's not obvious why. And I thought I read SSD's might do their own compression?
– Xen2050
Feb 16 at 5:56
@Xen2050, it's a 4 core system
– Graviton
Feb 16 at 6:50
1
@Xen2050 that's about NTFS compression for general purpose files that can be read and write constantly, not CompactOS which compresses read-only system files, so no write-amplification is involved and write cycle doesn't further change. And worrying about drive wear nowadays is pretty much nonsense, because wear-leveling algorithms are increasingly good, and the total data write is enough for at least 4-8 years even if you write hundreds of GBs a day, that's why modern SSDs have 5-year warranties. I have an old workstation from 2009 or 2012 and its SSD just passed half its life
– phuclv
Feb 16 at 14:46
1
1
"My questions.." -- No, what you wrote are statements that ended with a period and not a question mark.
– sawdust
Feb 16 at 4:39
"My questions.." -- No, what you wrote are statements that ended with a period and not a question mark.
– sawdust
Feb 16 at 4:39
3
3
@sawdust they can be easily casted into question mark form. Not sure any point in nitpicking.
– Graviton
Feb 16 at 5:24
@sawdust they can be easily casted into question mark form. Not sure any point in nitpicking.
– Graviton
Feb 16 at 5:24
Is this on an 8-16 core monster desktop, or a single core atom netbook? I'm pretty sure there'll be some performance penalty, not sure if it'll be noticeable or not. This article from 2011 might be interesting & mentions "With information being compressed on the fly, you're consuming more of an SSD's available write cycles than if you were writing the files uncompressed. This could have negative implications on the drive's endurance" but it's not obvious why. And I thought I read SSD's might do their own compression?
– Xen2050
Feb 16 at 5:56
Is this on an 8-16 core monster desktop, or a single core atom netbook? I'm pretty sure there'll be some performance penalty, not sure if it'll be noticeable or not. This article from 2011 might be interesting & mentions "With information being compressed on the fly, you're consuming more of an SSD's available write cycles than if you were writing the files uncompressed. This could have negative implications on the drive's endurance" but it's not obvious why. And I thought I read SSD's might do their own compression?
– Xen2050
Feb 16 at 5:56
@Xen2050, it's a 4 core system
– Graviton
Feb 16 at 6:50
@Xen2050, it's a 4 core system
– Graviton
Feb 16 at 6:50
1
1
@Xen2050 that's about NTFS compression for general purpose files that can be read and write constantly, not CompactOS which compresses read-only system files, so no write-amplification is involved and write cycle doesn't further change. And worrying about drive wear nowadays is pretty much nonsense, because wear-leveling algorithms are increasingly good, and the total data write is enough for at least 4-8 years even if you write hundreds of GBs a day, that's why modern SSDs have 5-year warranties. I have an old workstation from 2009 or 2012 and its SSD just passed half its life
– phuclv
Feb 16 at 14:46
@Xen2050 that's about NTFS compression for general purpose files that can be read and write constantly, not CompactOS which compresses read-only system files, so no write-amplification is involved and write cycle doesn't further change. And worrying about drive wear nowadays is pretty much nonsense, because wear-leveling algorithms are increasingly good, and the total data write is enough for at least 4-8 years even if you write hundreds of GBs a day, that's why modern SSDs have 5-year warranties. I have an old workstation from 2009 or 2012 and its SSD just passed half its life
– phuclv
Feb 16 at 14:46
add a comment |
1 Answer
1
active
oldest
votes
Compressing data is not the best solution when the drive is full. NTFS will suffer badly from lack of space, because there are no more good places to allocate new files or move old files around and fragmentation will increase. Especially when it begins to use the reserved space for the MFT then the MFT might become fragmented and the worst things may happen
In that case first some other things need to be done
Check your data usage with some tools like TreeSize or WinDirStat. You'll be surprised by how big some files or folders are. Move or delete them if possible. See The Four Best Free Tools to Analyze Hard Drive Space on Your Windows PC
Reduce pagefile size. Your system will crawl to death if just 1-3GB of pagefile is used. But you can't disable it entirely (at least not a good idea), so a lower limit of 1GB and upper limit of 4GB might be a fine choice. That might save you a few GBs compared to the default setting
Reduce hiberfil.sys. Open cmd as admin and runpowercfg /h /size 40
to set the size to 40% of your RAM. From Windows 7 onwards it defaults to 75% the amount of RAM, so setting it to 50% will save you 3GB of disk space. You can also turn it off withpowercfg /h off
- If you have another HDD then don't store too many unnecessary things on the system drive. Leave it for apps and files that need fast access
- Move the documents folders to another drive
- Move the store app install folder and save folder
- Some other folders can also be moved by changing some configurations, or by creating a symlink. But that's for another episode
Then if more space is needed, just compact the OS. The performance difference is often negligible
The CompactOS feature does indeed worth it on small SSDs compared to HDDs. My old laptop has a 1TB HDD with a 32GB SSD cache. I've tried installing Windows onto the 32GB SSD and it ran noticeably smoother than on the HDD+cache
Regarding your questions:
I'm not sure whether there are any performance penalty associating with compressing the OS drive.
Compressing files always have a CPU time penalty. That doesn't mean that it'll be slow though, since on slow storage devices like HDDs that penalty might be far less than the wasted time on accessing/reading the data from HDD. That's why sometimes compressing easily-compressed data will make it faster to access. One example is that hibernation in newer Windows compresses data before writing to disk, which makes shutdown much faster because the CPU can compress faster than the drive can write
The difference may be less obvious on SSDs, but there's no way to know that for sure except benchmarking for your specific situation. Each usecase is different, and not all disks are created equal. For example old SSDs may run at only ~200MB/s which is just about as fast as an HDD nowadays (but their obvious advantage is the fast access time), whereas newer algorithms like LZ4 (which is used in Linux's zram) can sustain ~3.9GB/s which is even faster than modern SSDs. See
With SSDs and Compact, Windows can speed up even more for an example where CompactOS boosts system performance- I tested 25 games against the Windows Compact function: 51GB more free space, and all the games run with no performance issues.
There are often no need to worry, because Windows will do a benchmark while installing to assess whether CompactOS should be enabled or not. Although after installing apps and things that benchmark result may not be correct anymore and you may want to do a reassessment yourself
And I'm not even sure whether this option is the same with "Compress this drive to save disk space" at the C drive property as per below
Basically both use the compression feature of NTFS and can be configured by compact.exe
, but there are many major differences
The "Compress your OS drive" (i.e. CompactOS) uses the newly introduced compression algorithms XPRESS* and LZX in Windows 10's NTFS. They're designed for efficient storage for "static" files that don't change much (like executables)
OTOH the "Compress this drive to save disk space" feature uses LZNT1 algorithm and is designed for compressing frequently changed data files for optimum performance. That means it'll be faster but the compression ratio will not be as high. It's like checking the "Compress contents to save disk space" option for all files and folders on the drive
Files compacted by CompactOS will not be marked as compressed (either shown in blue or with double arrows) if that feature is enabled
- CompactOS compresses selected system files, while NTFS whole-disk-compression compresses every file on the disk
Further reading:
- File Compression versus Compact OS in Win 10?
- How can Windows 10 function on as little as 32 GB of disk space?
The link given by Xen2050 is also good. It shows that even with the drive compression feature the difference is not that much, and in some cases it'll be faster, as I mentioned above
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1406360%2fis-compress-os-drive-worth-it-on-ssd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Compressing data is not the best solution when the drive is full. NTFS will suffer badly from lack of space, because there are no more good places to allocate new files or move old files around and fragmentation will increase. Especially when it begins to use the reserved space for the MFT then the MFT might become fragmented and the worst things may happen
In that case first some other things need to be done
Check your data usage with some tools like TreeSize or WinDirStat. You'll be surprised by how big some files or folders are. Move or delete them if possible. See The Four Best Free Tools to Analyze Hard Drive Space on Your Windows PC
Reduce pagefile size. Your system will crawl to death if just 1-3GB of pagefile is used. But you can't disable it entirely (at least not a good idea), so a lower limit of 1GB and upper limit of 4GB might be a fine choice. That might save you a few GBs compared to the default setting
Reduce hiberfil.sys. Open cmd as admin and runpowercfg /h /size 40
to set the size to 40% of your RAM. From Windows 7 onwards it defaults to 75% the amount of RAM, so setting it to 50% will save you 3GB of disk space. You can also turn it off withpowercfg /h off
- If you have another HDD then don't store too many unnecessary things on the system drive. Leave it for apps and files that need fast access
- Move the documents folders to another drive
- Move the store app install folder and save folder
- Some other folders can also be moved by changing some configurations, or by creating a symlink. But that's for another episode
Then if more space is needed, just compact the OS. The performance difference is often negligible
The CompactOS feature does indeed worth it on small SSDs compared to HDDs. My old laptop has a 1TB HDD with a 32GB SSD cache. I've tried installing Windows onto the 32GB SSD and it ran noticeably smoother than on the HDD+cache
Regarding your questions:
I'm not sure whether there are any performance penalty associating with compressing the OS drive.
Compressing files always have a CPU time penalty. That doesn't mean that it'll be slow though, since on slow storage devices like HDDs that penalty might be far less than the wasted time on accessing/reading the data from HDD. That's why sometimes compressing easily-compressed data will make it faster to access. One example is that hibernation in newer Windows compresses data before writing to disk, which makes shutdown much faster because the CPU can compress faster than the drive can write
The difference may be less obvious on SSDs, but there's no way to know that for sure except benchmarking for your specific situation. Each usecase is different, and not all disks are created equal. For example old SSDs may run at only ~200MB/s which is just about as fast as an HDD nowadays (but their obvious advantage is the fast access time), whereas newer algorithms like LZ4 (which is used in Linux's zram) can sustain ~3.9GB/s which is even faster than modern SSDs. See
With SSDs and Compact, Windows can speed up even more for an example where CompactOS boosts system performance- I tested 25 games against the Windows Compact function: 51GB more free space, and all the games run with no performance issues.
There are often no need to worry, because Windows will do a benchmark while installing to assess whether CompactOS should be enabled or not. Although after installing apps and things that benchmark result may not be correct anymore and you may want to do a reassessment yourself
And I'm not even sure whether this option is the same with "Compress this drive to save disk space" at the C drive property as per below
Basically both use the compression feature of NTFS and can be configured by compact.exe
, but there are many major differences
The "Compress your OS drive" (i.e. CompactOS) uses the newly introduced compression algorithms XPRESS* and LZX in Windows 10's NTFS. They're designed for efficient storage for "static" files that don't change much (like executables)
OTOH the "Compress this drive to save disk space" feature uses LZNT1 algorithm and is designed for compressing frequently changed data files for optimum performance. That means it'll be faster but the compression ratio will not be as high. It's like checking the "Compress contents to save disk space" option for all files and folders on the drive
Files compacted by CompactOS will not be marked as compressed (either shown in blue or with double arrows) if that feature is enabled
- CompactOS compresses selected system files, while NTFS whole-disk-compression compresses every file on the disk
Further reading:
- File Compression versus Compact OS in Win 10?
- How can Windows 10 function on as little as 32 GB of disk space?
The link given by Xen2050 is also good. It shows that even with the drive compression feature the difference is not that much, and in some cases it'll be faster, as I mentioned above
add a comment |
Compressing data is not the best solution when the drive is full. NTFS will suffer badly from lack of space, because there are no more good places to allocate new files or move old files around and fragmentation will increase. Especially when it begins to use the reserved space for the MFT then the MFT might become fragmented and the worst things may happen
In that case first some other things need to be done
Check your data usage with some tools like TreeSize or WinDirStat. You'll be surprised by how big some files or folders are. Move or delete them if possible. See The Four Best Free Tools to Analyze Hard Drive Space on Your Windows PC
Reduce pagefile size. Your system will crawl to death if just 1-3GB of pagefile is used. But you can't disable it entirely (at least not a good idea), so a lower limit of 1GB and upper limit of 4GB might be a fine choice. That might save you a few GBs compared to the default setting
Reduce hiberfil.sys. Open cmd as admin and runpowercfg /h /size 40
to set the size to 40% of your RAM. From Windows 7 onwards it defaults to 75% the amount of RAM, so setting it to 50% will save you 3GB of disk space. You can also turn it off withpowercfg /h off
- If you have another HDD then don't store too many unnecessary things on the system drive. Leave it for apps and files that need fast access
- Move the documents folders to another drive
- Move the store app install folder and save folder
- Some other folders can also be moved by changing some configurations, or by creating a symlink. But that's for another episode
Then if more space is needed, just compact the OS. The performance difference is often negligible
The CompactOS feature does indeed worth it on small SSDs compared to HDDs. My old laptop has a 1TB HDD with a 32GB SSD cache. I've tried installing Windows onto the 32GB SSD and it ran noticeably smoother than on the HDD+cache
Regarding your questions:
I'm not sure whether there are any performance penalty associating with compressing the OS drive.
Compressing files always have a CPU time penalty. That doesn't mean that it'll be slow though, since on slow storage devices like HDDs that penalty might be far less than the wasted time on accessing/reading the data from HDD. That's why sometimes compressing easily-compressed data will make it faster to access. One example is that hibernation in newer Windows compresses data before writing to disk, which makes shutdown much faster because the CPU can compress faster than the drive can write
The difference may be less obvious on SSDs, but there's no way to know that for sure except benchmarking for your specific situation. Each usecase is different, and not all disks are created equal. For example old SSDs may run at only ~200MB/s which is just about as fast as an HDD nowadays (but their obvious advantage is the fast access time), whereas newer algorithms like LZ4 (which is used in Linux's zram) can sustain ~3.9GB/s which is even faster than modern SSDs. See
With SSDs and Compact, Windows can speed up even more for an example where CompactOS boosts system performance- I tested 25 games against the Windows Compact function: 51GB more free space, and all the games run with no performance issues.
There are often no need to worry, because Windows will do a benchmark while installing to assess whether CompactOS should be enabled or not. Although after installing apps and things that benchmark result may not be correct anymore and you may want to do a reassessment yourself
And I'm not even sure whether this option is the same with "Compress this drive to save disk space" at the C drive property as per below
Basically both use the compression feature of NTFS and can be configured by compact.exe
, but there are many major differences
The "Compress your OS drive" (i.e. CompactOS) uses the newly introduced compression algorithms XPRESS* and LZX in Windows 10's NTFS. They're designed for efficient storage for "static" files that don't change much (like executables)
OTOH the "Compress this drive to save disk space" feature uses LZNT1 algorithm and is designed for compressing frequently changed data files for optimum performance. That means it'll be faster but the compression ratio will not be as high. It's like checking the "Compress contents to save disk space" option for all files and folders on the drive
Files compacted by CompactOS will not be marked as compressed (either shown in blue or with double arrows) if that feature is enabled
- CompactOS compresses selected system files, while NTFS whole-disk-compression compresses every file on the disk
Further reading:
- File Compression versus Compact OS in Win 10?
- How can Windows 10 function on as little as 32 GB of disk space?
The link given by Xen2050 is also good. It shows that even with the drive compression feature the difference is not that much, and in some cases it'll be faster, as I mentioned above
add a comment |
Compressing data is not the best solution when the drive is full. NTFS will suffer badly from lack of space, because there are no more good places to allocate new files or move old files around and fragmentation will increase. Especially when it begins to use the reserved space for the MFT then the MFT might become fragmented and the worst things may happen
In that case first some other things need to be done
Check your data usage with some tools like TreeSize or WinDirStat. You'll be surprised by how big some files or folders are. Move or delete them if possible. See The Four Best Free Tools to Analyze Hard Drive Space on Your Windows PC
Reduce pagefile size. Your system will crawl to death if just 1-3GB of pagefile is used. But you can't disable it entirely (at least not a good idea), so a lower limit of 1GB and upper limit of 4GB might be a fine choice. That might save you a few GBs compared to the default setting
Reduce hiberfil.sys. Open cmd as admin and runpowercfg /h /size 40
to set the size to 40% of your RAM. From Windows 7 onwards it defaults to 75% the amount of RAM, so setting it to 50% will save you 3GB of disk space. You can also turn it off withpowercfg /h off
- If you have another HDD then don't store too many unnecessary things on the system drive. Leave it for apps and files that need fast access
- Move the documents folders to another drive
- Move the store app install folder and save folder
- Some other folders can also be moved by changing some configurations, or by creating a symlink. But that's for another episode
Then if more space is needed, just compact the OS. The performance difference is often negligible
The CompactOS feature does indeed worth it on small SSDs compared to HDDs. My old laptop has a 1TB HDD with a 32GB SSD cache. I've tried installing Windows onto the 32GB SSD and it ran noticeably smoother than on the HDD+cache
Regarding your questions:
I'm not sure whether there are any performance penalty associating with compressing the OS drive.
Compressing files always have a CPU time penalty. That doesn't mean that it'll be slow though, since on slow storage devices like HDDs that penalty might be far less than the wasted time on accessing/reading the data from HDD. That's why sometimes compressing easily-compressed data will make it faster to access. One example is that hibernation in newer Windows compresses data before writing to disk, which makes shutdown much faster because the CPU can compress faster than the drive can write
The difference may be less obvious on SSDs, but there's no way to know that for sure except benchmarking for your specific situation. Each usecase is different, and not all disks are created equal. For example old SSDs may run at only ~200MB/s which is just about as fast as an HDD nowadays (but their obvious advantage is the fast access time), whereas newer algorithms like LZ4 (which is used in Linux's zram) can sustain ~3.9GB/s which is even faster than modern SSDs. See
With SSDs and Compact, Windows can speed up even more for an example where CompactOS boosts system performance- I tested 25 games against the Windows Compact function: 51GB more free space, and all the games run with no performance issues.
There are often no need to worry, because Windows will do a benchmark while installing to assess whether CompactOS should be enabled or not. Although after installing apps and things that benchmark result may not be correct anymore and you may want to do a reassessment yourself
And I'm not even sure whether this option is the same with "Compress this drive to save disk space" at the C drive property as per below
Basically both use the compression feature of NTFS and can be configured by compact.exe
, but there are many major differences
The "Compress your OS drive" (i.e. CompactOS) uses the newly introduced compression algorithms XPRESS* and LZX in Windows 10's NTFS. They're designed for efficient storage for "static" files that don't change much (like executables)
OTOH the "Compress this drive to save disk space" feature uses LZNT1 algorithm and is designed for compressing frequently changed data files for optimum performance. That means it'll be faster but the compression ratio will not be as high. It's like checking the "Compress contents to save disk space" option for all files and folders on the drive
Files compacted by CompactOS will not be marked as compressed (either shown in blue or with double arrows) if that feature is enabled
- CompactOS compresses selected system files, while NTFS whole-disk-compression compresses every file on the disk
Further reading:
- File Compression versus Compact OS in Win 10?
- How can Windows 10 function on as little as 32 GB of disk space?
The link given by Xen2050 is also good. It shows that even with the drive compression feature the difference is not that much, and in some cases it'll be faster, as I mentioned above
Compressing data is not the best solution when the drive is full. NTFS will suffer badly from lack of space, because there are no more good places to allocate new files or move old files around and fragmentation will increase. Especially when it begins to use the reserved space for the MFT then the MFT might become fragmented and the worst things may happen
In that case first some other things need to be done
Check your data usage with some tools like TreeSize or WinDirStat. You'll be surprised by how big some files or folders are. Move or delete them if possible. See The Four Best Free Tools to Analyze Hard Drive Space on Your Windows PC
Reduce pagefile size. Your system will crawl to death if just 1-3GB of pagefile is used. But you can't disable it entirely (at least not a good idea), so a lower limit of 1GB and upper limit of 4GB might be a fine choice. That might save you a few GBs compared to the default setting
Reduce hiberfil.sys. Open cmd as admin and runpowercfg /h /size 40
to set the size to 40% of your RAM. From Windows 7 onwards it defaults to 75% the amount of RAM, so setting it to 50% will save you 3GB of disk space. You can also turn it off withpowercfg /h off
- If you have another HDD then don't store too many unnecessary things on the system drive. Leave it for apps and files that need fast access
- Move the documents folders to another drive
- Move the store app install folder and save folder
- Some other folders can also be moved by changing some configurations, or by creating a symlink. But that's for another episode
Then if more space is needed, just compact the OS. The performance difference is often negligible
The CompactOS feature does indeed worth it on small SSDs compared to HDDs. My old laptop has a 1TB HDD with a 32GB SSD cache. I've tried installing Windows onto the 32GB SSD and it ran noticeably smoother than on the HDD+cache
Regarding your questions:
I'm not sure whether there are any performance penalty associating with compressing the OS drive.
Compressing files always have a CPU time penalty. That doesn't mean that it'll be slow though, since on slow storage devices like HDDs that penalty might be far less than the wasted time on accessing/reading the data from HDD. That's why sometimes compressing easily-compressed data will make it faster to access. One example is that hibernation in newer Windows compresses data before writing to disk, which makes shutdown much faster because the CPU can compress faster than the drive can write
The difference may be less obvious on SSDs, but there's no way to know that for sure except benchmarking for your specific situation. Each usecase is different, and not all disks are created equal. For example old SSDs may run at only ~200MB/s which is just about as fast as an HDD nowadays (but their obvious advantage is the fast access time), whereas newer algorithms like LZ4 (which is used in Linux's zram) can sustain ~3.9GB/s which is even faster than modern SSDs. See
With SSDs and Compact, Windows can speed up even more for an example where CompactOS boosts system performance- I tested 25 games against the Windows Compact function: 51GB more free space, and all the games run with no performance issues.
There are often no need to worry, because Windows will do a benchmark while installing to assess whether CompactOS should be enabled or not. Although after installing apps and things that benchmark result may not be correct anymore and you may want to do a reassessment yourself
And I'm not even sure whether this option is the same with "Compress this drive to save disk space" at the C drive property as per below
Basically both use the compression feature of NTFS and can be configured by compact.exe
, but there are many major differences
The "Compress your OS drive" (i.e. CompactOS) uses the newly introduced compression algorithms XPRESS* and LZX in Windows 10's NTFS. They're designed for efficient storage for "static" files that don't change much (like executables)
OTOH the "Compress this drive to save disk space" feature uses LZNT1 algorithm and is designed for compressing frequently changed data files for optimum performance. That means it'll be faster but the compression ratio will not be as high. It's like checking the "Compress contents to save disk space" option for all files and folders on the drive
Files compacted by CompactOS will not be marked as compressed (either shown in blue or with double arrows) if that feature is enabled
- CompactOS compresses selected system files, while NTFS whole-disk-compression compresses every file on the disk
Further reading:
- File Compression versus Compact OS in Win 10?
- How can Windows 10 function on as little as 32 GB of disk space?
The link given by Xen2050 is also good. It shows that even with the drive compression feature the difference is not that much, and in some cases it'll be faster, as I mentioned above
edited Feb 16 at 16:33
answered Feb 16 at 6:25
phuclvphuclv
10.1k64195
10.1k64195
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1406360%2fis-compress-os-drive-worth-it-on-ssd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
"My questions.." -- No, what you wrote are statements that ended with a period and not a question mark.
– sawdust
Feb 16 at 4:39
3
@sawdust they can be easily casted into question mark form. Not sure any point in nitpicking.
– Graviton
Feb 16 at 5:24
Is this on an 8-16 core monster desktop, or a single core atom netbook? I'm pretty sure there'll be some performance penalty, not sure if it'll be noticeable or not. This article from 2011 might be interesting & mentions "With information being compressed on the fly, you're consuming more of an SSD's available write cycles than if you were writing the files uncompressed. This could have negative implications on the drive's endurance" but it's not obvious why. And I thought I read SSD's might do their own compression?
– Xen2050
Feb 16 at 5:56
@Xen2050, it's a 4 core system
– Graviton
Feb 16 at 6:50
1
@Xen2050 that's about NTFS compression for general purpose files that can be read and write constantly, not CompactOS which compresses read-only system files, so no write-amplification is involved and write cycle doesn't further change. And worrying about drive wear nowadays is pretty much nonsense, because wear-leveling algorithms are increasingly good, and the total data write is enough for at least 4-8 years even if you write hundreds of GBs a day, that's why modern SSDs have 5-year warranties. I have an old workstation from 2009 or 2012 and its SSD just passed half its life
– phuclv
Feb 16 at 14:46