ntfs压缩文件是否解压缩到磁盘或内存?

如果您正在寻找调整Windows系统以节省磁盘空间的方法,则可以选择NTFS压缩。但是如果你选择这个选项,那么解压过程是如何工作的呢?今天的超级用户问答帖子回答了一位好奇的读者的问题。...

ntfs压缩文件是否解压缩到磁盘或内存?

如果您正在寻找调整Windows系统以节省磁盘空间的方法,则可以选择NTFS压缩。但是如果你选择这个选项,那么解压过程是如何工作的呢?今天的超级用户问答帖子回答了一位好奇的读者的问题。

今天的问答环节是由SuperUser提供的,SuperUser是Stack Exchange的一个分支,是一个由社区驱动的问答网站分组。

问题

引发UnderflowSeveryWhere的超级用户读取器想知道NTFS压缩文件是否解压缩到磁盘或内存:

How does NTFS decompression work in Windows? According to Microsoft, NTFS decompression is done by expanding the file, then using it. That sounds right, but my question is how does this process occur technically?

Does Windows load the compressed file into memory, expand it in memory, then read it from memory? Or does it load the compressed file into memory, expand it to disk or memory, write it to disk, then read it?

I am trying to figure out if I can improve my computer’s performance by using NTFS compression. That way, a slow hard drive or SSD that is unable to handle that many write operati*** will always have less data to write and read, and the powerful processor that is idling most of the time can decompress the files and improve my computer’s storage speed and health.

NTFS压缩文件是否解压缩到磁盘或内存?

答案

超级用户贡献者Ben N为我们提供了答案:

Windows decompresses files into memory. Doing it to disk would completely obliterate any speed improvements and would cause a lot of unnecessary disk writing. See the end of this Microsoft blog article on NTFS sparse files and compression.

007Ys3FFly1gpc93yoky8j30hd08dwfh

Of course, if you are low on memory, the memory used by the decompression process could cause other memory be paged out and written to disk in the page file. Fortunately, only the chunks containing secti*** that your programs actually read will be decompressed. NTFS does not have to decompress the whole thing if you only need a few bytes.

If your SSD is fast, you are probably not going to get any speed improvements from NTFS compression. It is conceivable that the time your processor spends decompressing data plus the time your disk spends reading the compressed data could add up to be more than the time your SSD takes to read the uncompressed data.

It also depends on the size of the files you work with. The minimum size of a compressible file ranges from 8 – 64 KB, depending on your cluster size. Any files less than that in size will not be compressed at all, but a tiny amount of bookkeeping would be added. If you do a lot of writing to compressed files, you could see a lot of variance in speed due to the compression algorithm used (LZ).

Further Reading

How Does NTFS Compression Affect Performance?


有什么要补充的解释吗?在评论中发出声音。想从其他精通技术的Stack Exchange用户那里了解更多答案吗?在这里查看完整的讨论主题。

图片来源:Jannis Andrija Schnitzer(Flickr)

  • 发表于 2021-04-08 13:02
  • 阅读 ( 246 )
  • 分类:互联网

你可能感兴趣的文章

如何在windows10中节省磁盘空间

... Compact OS是Windows 10的一项功能,它使用压缩来减少系统文件和Windows应用商店应用程序占用的总体空间。当你打开它的时候,它需要几分钟来压缩所有的东西。但一旦完成,您可以看到从1到7 GB的任何地方的即时...

  • 发布于 2021-03-14 10:03
  • 阅读 ( 213 )

如何使用powershell压缩(和解压)文件

ZIP文件格式通过将文件压缩为单个文件来减小文件的大小。这个过程节省了磁盘空间,加密了数据,并使与其他人共享文件变得容易。下面介绍如何使用PowerShell压缩和解压文件。 如何使用powershell压缩文件 让我们首先使用Compr...

  • 发布于 2021-04-02 01:39
  • 阅读 ( 225 )

如何在Windows10上压缩(和解压)文件

ZIP文件格式通过压缩文件、节省磁盘空间和减少网络传输时间来减小文件的大小。它还允许您将多个文件合并成一个易于与其他人共享的文件。下面是如何在Windows10上压缩和解压文件。 如何创建zip文件(压缩文件夹) 首先,...

  • 发布于 2021-04-02 06:33
  • 阅读 ( 175 )

什么是Windows10中的内存压缩?

Windows10使用内存压缩在系统内存中存储的数据比其他方法存储的数据要多。如果您访问任务管理器并查看内存使用情况的详细信息,您可能会看到一些内存被“压缩”。这就是它的含义。 什么是内存压缩(memory compression)? 内...

  • 发布于 2021-04-07 10:18
  • 阅读 ( 320 )

如何使用Windows10的“compactos”在缺乏存储的PC上节省空间

...板电脑或笔记本电脑,只有16GB的空间。它就像全磁盘NTFS压缩,但更聪明。下面是它的工作原理。 这将取代Windows8.1的wimboot 相关报道:WIMBoot解释:Windows现在如何能安装在一个小的16gb驱动器上 “CompactOS”功能取代了微软在window...

  • 发布于 2021-04-09 03:04
  • 阅读 ( 159 )

你应该使用windows的全驱动器压缩来节省空间吗?

打开一个驱动器的属性窗口,你会看到一个选项“压缩这个驱动器以节省磁盘空间”在Windows上。但是你能节省多少磁盘空间,有什么问题吗? 此选项使用ntfs压缩 相关:如何使用NTFS压缩以及何时使用 Windows使用NTFS文件系统,N...

  • 发布于 2021-04-09 08:09
  • 阅读 ( 263 )

wimboot解释说:windows现在如何能安装在一个小的16gb驱动器上

...系统文件并将其放置在系统分区上的传统方法,而是保留压缩的.wim映像文件。这些.wim文件存储在单独的“images”分区上,就像Windows恢复映像存储在典型Windows系统的单独分区上一样。 DISM(部署映像服务和管理)工具在标准Window...

  • 发布于 2021-04-11 06:45
  • 阅读 ( 153 )

如何使用ntfs压缩以及何时使用

Windows使用的NTFS文件系统有一个内置的压缩功能,称为NTFS压缩。只需单击几下,您就可以压缩文件,使它们在硬盘上占用更少的空间。最棒的是,您仍然可以正常访问这些文件。 使用NTFS压缩需要在CPU时间和磁盘活动之间进行权...

  • 发布于 2021-04-12 03:16
  • 阅读 ( 231 )

如何在Windows7中创建虚拟硬盘

...格式化为NTFS、FAT32或FAT。检查是否需要快速格式化和文件压缩。 向导完成后,单击Finish。 如果您已启用自动播放,它应该弹出窗口,让您打开新的虚拟硬盘。 它将与磁盘管理中的其他磁盘一起列出。 当然你也会在我的电...

  • 发布于 2021-04-14 03:25
  • 阅读 ( 132 )

微软将修复Windows10的漏洞,只要看一个图标就可以损坏硬盘

...方式中隐藏一行巧尽心思构建的代码。windows10用户只需解压缩ZIP文件或查看包含恶意快捷方式的文件夹,就会自动触发硬盘损坏。 CERT协调中心(CERT/CC)的漏洞分析师威尔•多尔曼(Will dorman)证实了这一发现,并指...

  • 发布于 2021-04-16 18:51
  • 阅读 ( 100 )
h255779
h255779

0 篇文章

相关推荐