PCDVD數位科技討論區
PCDVD數位科技討論區   註冊 常見問題 標記討論區為已讀

回到   PCDVD數位科技討論區 > 其他群組 > 疑難雜症區
帳戶
密碼
 

回應
 
主題工具
joe3970
Regular Member
 

加入日期: Jan 2017
文章: 85
壓縮磁碟後反而空間不足?

今天同事問我
無法複製檔案的問題

硬碟是250GB SSD
全部資料夾容量只占200GB
剩4X多GB
從隨身碟複製10GB進去
卻出現空間不足
查看後發現同事有開磁碟壓縮

自己做實驗
win10環境
設定一個1GB RAMDISK
打開磁碟壓縮
複製一堆檔案約650MB進去
複製快結束時出現空間不足 無法複製

經查看
已複製進去約598MB 磁碟大小 391MB
剩下約50MB還沒複製
理論上沒有空間不足的問題

打開RAMDISK磁碟內容
發現
已使用空間約 0.99GB
可用空間 只剩5.46MB

全選檔案查看內容或用Treesize查看
全部檔案加起來也只有約600MB左右

當然解決方法就是不要用磁碟壓縮
不過 怎麼會這樣呢?
有人知道嗎? 謝謝。
     
      
舊 2020-08-27, 10:25 AM #1
回應時引用此文章
joe3970離線中  
wja12345
Junior Member
 
wja12345的大頭照
 

加入日期: Apr 2002
您的住址: 台中市
文章: 796
SSD有不可使用的預留空間

https://kknews.cc/zh-tw/digital/bgmnpb6.html
 
__________________
燦坤卡號:35171847
舊 2020-08-27, 03:45 PM #2
回應時引用此文章
wja12345離線中  
joe3970
Regular Member
 

加入日期: Jan 2017
文章: 85
引用:
作者wja12345
SSD有不可使用的預留空間

https://kknews.cc/zh-tw/digital/bgmnpb6.html



謝謝回答
我用RAMDISK也是一樣
所以不是這問題
舊 2020-08-27, 07:52 PM #3
回應時引用此文章
joe3970離線中  
substar999
Senior Member
 

加入日期: Sep 2001
您的住址: K
文章: 1,444
看這篇

https://docs.microsoft.com/en-us/ar...tfs-compression

最下面有提到出現磁碟已滿的問題(注意第3點)

Disk full error during a backup read operation or file copy…

1. NTFS determines which compression unit is being accessed.
2. The compression unit’s entire allocated range is read.
3. If the unit is not compressed, then we skip to step 5. Otherwise, NTFS would attempt to reserve (but not allocate) the space required to write the decompressed CU back to disk. If insufficient free space exists on the disk, then the application might get an ERROR_DISK_FULL during the read.
4. The CU would be decompressed in memory.
5. The decompressed byte range would be mapped into cache and returned to the requesting application.
6. If part of the CU is altered in cache…
----a. The reserved disk space from step 3 would become allocated space.
----b. The CU contents would be compressed and flushed back to the newly allocated region (the LCN location will usually not change).
----c. Any recoverable disk space within the CU would be freed.

此文章於 2020-08-27 09:54 PM 被 substar999 編輯.
舊 2020-08-27, 09:53 PM #4
回應時引用此文章
substar999現在在線上  
joe3970
Regular Member
 

加入日期: Jan 2017
文章: 85
謝謝您的回答
有些收穫
這邊也有類似的討論
https://superuser.com/questions/605...-a-lot-of-space
舊 2020-08-27, 11:32 PM #5
回應時引用此文章
joe3970離線中  


回應


POPIN
主題工具

發表文章規則
不可以發起新主題
不可以回應主題
不可以上傳附加檔案
不可以編輯您的文章

vB 代碼打開
[IMG]代碼打開
HTML代碼關閉



所有的時間均為GMT +8。 現在的時間是08:17 PM.


vBulletin Version 3.0.1
powered_by_vbulletin 2024。