ZFS自動整理何時以及多久進行一次?

分享于 

1分钟阅读

互联网

  简体


ZFS autotrim實際上是連續的機會操作,在釋放塊/範圍后運行。

手冊頁:

autotrim = on | off 

設置為最近已釋放且不再由池分配的空間時,將定期進行修剪...

更多細節,你可以看看以下代碼註釋:


Automatic TRIM happens continuously in the background and operates


solely on recently freed blocks (ms_trim not ms_allocatable).


...


While the automatic TRIM process is highly effective it is more likely


than a manual TRIM to encounter tiny ranges. Ranges less than or equal to


'zfs_trim_extent_bytes_min' (32k) are considered too small to efficiently


TRIM and are skipped. This means small amounts of freed space may not


be automatically trimmed.





相关文章