
내가 읽고"TRIM 지원 추가"autotrim
기사를 작성했지만 "ZFS는 언제, 얼마나 자주 발생합니까?" 에 대한 단서를 얻지 못했습니다. 그리고 의 활동을 어떻게 관찰할 수 있나요 autotrim
?
미리 의견을 보내주셔서 감사합니다.
답변1
ZFS 자동 다듬기는 실제로 블록/범위가 해제된 후에 실행되는 연속적이고 기회주의적인 작업입니다.
로부터매뉴얼 페이지:
자동 트림 = 켜기 | 끄다
최근에 해제되어 더 이상 풀에서 할당되지 않는 공간으로 설정하면 주기적으로 잘립니다...자동 TRIM은 해제된 블록을 즉시 회수하지 않습니다.대신, 더 작은 범위가 몇 개의 더 큰 범위로 집계되는 것을 긍정적으로 지연할 것입니다. 그러면 이를 스토리지에 보다 효율적으로 발행할 수 있습니다.
자세한 내용은 다음을 참조하세요.다음 코드 주석:
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.
답변2
트림을 포함하여 풀 [탱크]에 요청된 IO를 보려면 이 명령을 사용하십시오.
zpool iostat -r [tank]