|
发表于 2009-10-13 18:57:58
|
显示全部楼层
The defragmentation support in ext4 is still a work in progress. The current e4defrag essentially creates a new file that is the same size is the existing file, checks to see if it is less fragmented, and if so, invokes a ioctl which atomically substitutes the blocks from the new file to the new file, while preserving the contents of the file.
It however, doesn't have any concept trying to make the file system better from a global point of view, in terms of (a) making sure the free space is not fragmented so as to avoid the file system becoming fragmented again in the near future, and (b) using a global file system wide strategy to move files aside to "make room" for a large fragmented file. It also hasn't undergone enough testing that it's really a good idea to recommend its use in production settings...
目前的ext4在線整理工具處於起步階段,portage里還沒有,補丁在[color="Blue"]這裡找。
另外問下,XFS在線整理花的時間長嗎,在/usr/portage下用過XFS嗎,又怎麼樣呢? |
|