請問Linux需要進行磁碟重組嗎? [論壇 - 新手村]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊

(1) 2 »


#14 回復: 請問Linux需要進行磁碟重組嗎?
wss 2008/5/17 19:17
底下有一篇文章很早之前看的,但是只瞄了幾眼,有興趣可以看看。
http://geekblog.oneandoneis2.org/index.php/2006/08/17/why_doesn_t_linux_need_defragmenting
#13 回復: 請問Linux需要進行磁碟重組嗎?
訪客 Ident: 75878 66430 9b1e1 2165b 2008/5/16 23:06
我納悶的是為何每次遇到檢查時其結果都是false
但是系統都運作得很順暢啊
到底false哪裡啊?
#12 回復: 請問Linux需要進行磁碟重組嗎?
大家次數一樣嗎 Ident: 06b1b 63c0e 3ea3f c005c 2008/5/16 22:40
不過預設 ubuntu 會定期做磁碟檢查:開機掛載分割區 30 次以後會檢查一次。

我的是20??25??就會檢查一次
#11 回復: 請問Linux需要進行磁碟重組嗎?
rossiliu 2008/5/16 12:58
fsck.ext3 裡面有個參數可以最佳化目錄結構


-D Optimize directories in filesystem. This option causes e2fsck
to try to optimize all directories, either by reindexing them if
the filesystem supports directory indexing, or by sorting and
compressing directories for smaller directories, or for filesys-
tems using traditional linear directories.

Even without the -D option, e2fsck may sometimes optimize a few
directories --- for example, if directory indexing is enabled
and a directory is not indexed and would benefit from being
indexed, or if the index structures are corrupted and need to be
rebuilt. The -D option forces all directories in the filesystem
to be optimized. This can sometimes make them a little smaller
and slightly faster to search, but in practice, you should
rarely need to use this option.

The -D option will detect directory entries with duplicate names
in a single directory, which e2fsck normally does not enforce
for performance reasons.

在檢查磁碟的時候同時加上這個參數,也算是磁碟重整吧! (笑...)
#10 回復: 請問Linux需要進行磁碟重組嗎?
hialan 2008/5/16 0:28
guest 寫到:
請問Linux需要進行磁碟重組嗎?


是否要重組是根據使用哪種檔案系統。

不同的檔案系統代表不同的演算法(資料存在硬碟的方式),如果你的檔案系統是使用 Linux 主要支援的幾種檔案系統 (ext2, ext3, zfs, etc...) ,這些檔案離散的程度影響資料存取的效率並不太大,所以不需要磁碟重組。

而因為 FAT/NTFS 這些檔案系統檔案離散的程度會大大降低存取效率,因此才會有磁碟重組程式的需要。

基本上一個理想的檔案系統,使用者應該不用顧慮檔案是怎麼樣儲存的(特殊需求例外)。
#9 回復: 請問Linux需要進行磁碟重組嗎?
魏藥 2008/5/15 22:58
不過預設 ubuntu 會定期做磁碟檢查:開機掛載分割區 30 次以後會檢查一次。
#8 回復: 請問Linux需要進行磁碟重組嗎?
Hapsburg 2008/5/15 22:34
呵呵,以前我剛開始接觸 Linux 的時候也是有這個疑問,其實就如同上面前輩所述,在 Linux 系統中的多種檔案系統大多都是以 i-node 型式儲存而不是像 FAT 16/32 一般使用類似於鏈結串列(Linked List)的方式,所以其實檔案的資料區段在硬碟中是否碎裂對於實際存取上的效率影響並不會太大。況且,檔案與檔案的資料之間多預留些零散空間,其實也可以供未來檔案體積成長時使用。所以整體上說起來要不要重組其實影響並不如 FAT 16/32 檔案系統那樣影響甚巨。
#7 回復: 請問Linux需要進行磁碟重組嗎?
米香寶 2008/5/15 21:54
guest 寫到:
那Windows server該怎麼辦?XD

對呀,有人可以解答嗎?還是windows和linux的思維不同,可以不必重組的系統跟需要重組的系統,好壞立即顯現。
#6 回復: 請問Linux需要進行磁碟重組嗎?
good Ident: 75878 66430 9b1e1 2165b 2008/5/15 21:46
基本上Linux上的系統工具很全面
如果預設安裝沒有裝,可以說那功能是沒有必要的


說得好!讚一個
#5 回復: 請問Linux需要進行磁碟重組嗎?
guest Ident: 75878 66430 9b1e1 2165b 2008/5/15 18:14
訪客 寫到:
沒有必要 它本來就設計成不需磁碟重組的
因為要當伺服器 不可能讓你停下所有程式進行磁碟重組

那Windows server該怎麼辦?XD

(1) 2 »

 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.