精華區beta FreeBSD 關於我們 聯絡資訊
: Soft Updates drastically improves meta-data performance, mainly file : creation and deletion, through the use of a memory cache. We recommend : turning Soft Updates on on all of your filesystems. There are two : downsides to Soft Updates that you should be aware of: First, Soft Updates : guarantees filesystem consistency in the case of a crash but could very : easily be several seconds (even a minute!) be hind updating the physical : disk. If your system crashes you may lose more work than otherwise. : Secondly, Soft Updates delays the freeing of filesystem blocks. If you : have a filesystem (such as the root filesystem) which is almost full, : performing a major update, such as make installworld, can cause the : filesystem to run out of space and the update to fail. 本來是馬上執行rm就會馬上從physical disk中刪除, 在執行Soft Update 之後, 就會變成每隔一些時間檢查有沒有要刪除的檔案, 有的話作一份統一的刪除, 會比較節省資源. 換句話說, 作刪除的動作之後, 馬上用df看磁碟空間, 並不會馬上就有變化, 而是到一段時間之後空間才會增加. 同理用於其他關於磁碟異動的動作上, 也因為這樣子會造成上面的問題. 譬如說, 今天在2:05的時候, 系統不正常關機, 在重開機後, 檔案列表並不會恢復到2:05的時候, 而是在2:05之前, 2:00 , 甚至是1:55的檔案列表都有可能. 因為系統還沒有來得及寫入真正的disk就已經重新開機了. 在make update 的時候, 自然就會有上面的狀況了. 如果系統資料是相當要求即時正確性, 像是transation這種交易過程, 就比較不建議使用. 但就一般系統使用來說, 這樣的集中存取, 會增加系統的速度. 這裡有更詳盡的說明: http://people.freebsd.org/~foxfair/archive.html#5 -- ※Origin:銀 河 鐵 道 之 戀 < starbbs.org > ※From: 61-222-206-216.HINET-IP.hinet.net