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
  • 閱讀 ( 49 )
  • 分類:網際網路

你可能感興趣的文章

如何在windows10中節省磁碟空間

... Compact OS是Windows 10的一項功能,它使用壓縮來減少系統檔案和Windows應用商店應用程式佔用的總體空間。當你開啟它的時候,它需要幾分鐘來壓縮所有的東西。但一旦完成,您可以看到從1到7 GB的任何地方的即時...

  • 發佈於 2021-03-14 10:03
  • 閲讀 ( 46 )

這個免費的工具可以幫助你在windows上節省大量的磁碟空間

...資料,但需要更多的空間,那麼您應該考慮另一種方法:壓縮作業系統。這樣在32位系統上可以節省1.5 GB左右,在64位安裝上可以節省2.6 GB左右。通常,壓縮作業系統需要在命令提示符下執行一些命令,但是有一個免費的工具可...

  • 發佈於 2021-03-15 01:25
  • 閲讀 ( 37 )

如何使用remix os 3.0在pc上安裝android

...的三個點,找到GParted的影象(這是一個ISO檔案,必須解壓縮)。第三,選擇剛剛**的快閃記憶體驅動器。第四,選擇OK。 ...

  • 發佈於 2021-03-17 12:51
  • 閲讀 ( 53 )

如何格式化防寫usb pendrive

...案並點選Browse以選擇一個位置(如桌面或文件)。單擊解壓縮,然後瀏覽到新位置,然後雙擊金斯頓格式實用程式.exe. ...

  • 發佈於 2021-03-18 04:31
  • 閲讀 ( 43 )

如何在windows10中解壓檔案

每個人都應該知道的一個基本Windows函式是如何解壓縮檔案。這並不難,事實上,這個選項就在作業系統內部。 ...

  • 發佈於 2021-03-27 04:26
  • 閲讀 ( 46 )

如何在mac上製作zip檔案

... 什麼是壓縮檔案(a zip file)? ...

  • 發佈於 2021-03-28 16:40
  • 閲讀 ( 66 )

如何使用powershell壓縮(和解壓)檔案

ZIP檔案格式透過將檔案壓縮為單個檔案來減小檔案的大小。這個過程節省了磁碟空間,加密了資料,並使與其他人共享檔案變得容易。下面介紹如何使用PowerShell壓縮和解壓檔案。 如何使用powershell壓縮檔案 讓我們首先使用Compr...

  • 發佈於 2021-04-02 01:39
  • 閲讀 ( 44 )

如何在mac上壓縮和解壓檔案和資料夾

Macs附帶了一個強大的內建壓縮工具,可以幫助您壓縮和解壓檔案和資料夾。另外,它很容易使用!為了增加功能,您也可以嘗試使用第三方應用程式。 首先,讓我們討論一下內建的歸檔實用工具。它不是一個應用程式,而是一...

  • 發佈於 2021-04-02 03:45
  • 閲讀 ( 41 )

如何在Windows10上壓縮(和解壓)檔案

ZIP檔案格式透過壓縮檔案、節省磁碟空間和減少網路傳輸時間來減小檔案的大小。它還允許您將多個檔案合併成一個易於與其他人共享的檔案。下面是如何在Windows10上壓縮和解壓檔案。 如何建立zip檔案(壓縮資料夾) 首先,...

  • 發佈於 2021-04-02 06:33
  • 閲讀 ( 40 )

如何在chromebook上壓縮或解壓檔案

...電子郵件中傳送一堆檔案,或者你在Chromebook上收到一個壓縮的ZIP檔案作為附件?無論你想壓縮還是解壓檔案,Chrome作業系統都讓你不需要任何額外的應用程式。 相關:你需要知道的關於Zip檔案的一切 如何壓縮檔案 要開始,請...

  • 發佈於 2021-04-03 17:05
  • 閲讀 ( 49 )
h255779
h255779

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦