精華區beta Linux 關於我們 聯絡資訊
之前聽人家說linux不用做磁碟重組 請問原因是什麼呢? 感謝 那為什麼M$要做磁碟重組呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.57.74.47 > -------------------------------------------------------------------------- < 作者: zxvc (zxvc) 看板: Linux 標題: Re: [問題] 為什麼linux不用磁碟重組 時間: Wed Feb 15 21:39:35 2006 ※ 引述《Hangy (omn omn v ruy quc)》之銘言: : 之前聽人家說linux不用做磁碟重組 : 請問原因是什麼呢? : 感謝 : 那為什麼M$要做磁碟重組呢? http://en.wikipedia.org/wiki/Ext3 There is no ext3 defragmentation tool. An offline ext2 defragmenter, e2defrag, exists but requires that the ext3 filesystem be converted back to ext2 first. However, defragmentation has long been considered a non-issue for ext2/ext3, since they are much better at placing files on the disk versus old FAT-based filesystems. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.203.56 > -------------------------------------------------------------------------- < 作者: sandpaper (sandpaper) 看板: Linux 標題: Re: [問題] 為什麼linux不用磁碟重組 時間: Thu Feb 16 00:25:38 2006 ※ 引述《zxvc (zxvc)》之銘言: : ※ 引述《Hangy (omn omn v ruy quc)》之銘言: : : 之前聽人家說linux不用做磁碟重組 : : 請問原因是什麼呢? : : 感謝 : : 那為什麼M$要做磁碟重組呢? : http://en.wikipedia.org/wiki/Ext3 : There is no ext3 defragmentation tool. An offline ext2 defragmenter, : e2defrag, exists but requires that the ext3 filesystem be converted back to : ext2 first. However, defragmentation has long been considered a non-issue for : ext2/ext3, since they are much better at placing files on the disk versus old : FAT-based filesystems. 他只說排放檔案的效能比較好 但我想知道為何比較好呢? 逛了許久...一直都沒有找到較好的解答 因為照理說...fat32這麼差..M$應該會讓ntfs效能更佳 但事實上我在win下還是有需要重組的時候 如果有人知道敬請賜教...麻煩了...先謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.216.52.48 > -------------------------------------------------------------------------- < 發信人: gcin <gcin@gcin.org.tw>, 看板: Linux 標 題: Re: [問題] 為什麼linux不用磁碟重組 發信站: http://cle.linux.org.tw/gcin (Wed Feb 15 21:57:16 2006) 轉信站: ptt!ctu-reader!ctu-gate!news.nctu!news.ncu!news.csie.mcu!news.mcu!news omn omn v ruy quc <Hangy.bbs@ptt.cc> wrote: > 之前聽人家說linux不用做磁碟重組 > 請問原因是什麼呢? 因為 filesystem 本身就有減少 fragment 的方法, 像 ext3 的方法是預留一些 file 成長的空間, -- My Projects: http://www.csie.nctu.edu.tw/~cp76/gcin http://fftv.sf.net http://tcron.sf.net http://www.csie.nctu.edu.tw/~cp76/gcb > -------------------------------------------------------------------------- < 發信人: hying86.bbs@bbs.wretch.cc (青眼高歌俱未老), 看板: Linux 標 題: Re: [問題] 為什麼linux不用磁碟重組 發信站: 無名小站 (Thu Feb 16 10:25:47 2006) 轉信站: ptt!ctu-reader!ctu-gate!news.nctu!news.ncu!News.Math.NCTU!netnews.csie ※ 引述《sandpaper.bbs@ptt.cc (sandpaper)》之銘言: > ※ 引述《zxvc (zxvc)》之銘言: > : http://en.wikipedia.org/wiki/Ext3 > : There is no ext3 defragmentation tool. An offline ext2 defragmenter, > : e2defrag, exists but requires that the ext3 filesystem be converted back to > : ext2 first. However, defragmentation has long been considered a non-issue for > : ext2/ext3, since they are much better at placing files on the disk versus old > : FAT-based filesystems. > 他只說排放檔案的效能比較好 > 但我想知道為何比較好呢? > 逛了許久...一直都沒有找到較好的解答 > 因為照理說...fat32這麼差..M$應該會讓ntfs效能更佳 > 但事實上我在win下還是有需要重組的時候 > 如果有人知道敬請賜教...麻煩了...先謝謝 一個很老的資訊(或是傳說): DOS FAT file system 的 allocation 採用 first-fit algorithm, which is the most simple and most primitive algorithm for accomodating files into the storage. FAT32 或 NTFS 是否改採 較佳之方法?我就不知道了。這類資訊應該滿容易查的就是了。 -- disclaimer: 以上資訊不保證正確。 -- 夫兵者不祥之器物或惡之故有道者不處君子居則貴左用兵則貴右兵者不祥之器非君子 之器不得已而用之恬淡為上勝而不美而美之者是樂殺人夫樂殺人者則不可得志於天下 矣吉事尚左凶事尚右偏將軍居左上將軍居右言以喪禮處之殺人之眾以哀悲泣之戰勝以 喪禮處之道常無名樸雖小天下莫能臣侯王若能守之萬物將自賓天地相合以降甘露民莫 之令而自均始制有名名亦既有夫亦將 NK210-202-52-35.vdsl.static.apol.com.tw > -------------------------------------------------------------------------- < 作者: sonyu (Ace of Cups) 看板: Linux 標題: Re: [問題] 為什麼linux不用磁碟重組 時間: Thu Feb 16 11:23:21 2006 不需重組僅限於 ext2/ext3 reiser3.6/reiser4 可是會隨著時間急速惡化 0rz 我的 /usr/portage 就已經達到 30% fragments 了 -- 生即是死,死即是生,故實無生死也。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.222.248.244 > -------------------------------------------------------------------------- < 作者: sonyu (Ace of Cups) 看板: Linux 標題: Re: [問題] 為什麼linux不用磁碟重組 時間: Thu Feb 16 12:02:52 2006 ※ 引述《sonyu (Ace of Cups)》之銘言: : 不需重組僅限於 ext2/ext3 : reiser3.6/reiser4 可是會隨著時間急速惡化 0rz : 我的 /usr/portage 就已經達到 30% fragments 了 如果需要重組程式,或許可用看看這個 CK 寫的 script http://ck.kolivas.org/apps/defrag/defrag-0.06/defrag Psyche bin # pwd /usr/bin Psyche bin # /root/fragck.pl . 17.8117998506348% non contiguous files, 1.35997012696042 average fragments. Psyche bin # /root/defrag Psyche bin # /root/fragck.pl . 3.62210604929052% non contiguous files, 1.07617625093353 average fragments. -- 生即是死,死即是生,故實無生死也。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.222.248.244 > -------------------------------------------------------------------------- < 發信人: jinying@kkcity.com.tw (), 看板: Linux 標 題: Re: [問題] 為什麼linux不用磁碟重組 發信站: KKCITY (Thu Feb 16 13:13:34 2006) 轉信站: ptt!ctu-reader!Spring!news.nctu!news.ntu!news.au!zoonews.ee.ntu!news.k ※ 引述《Hangy.bbs@ptt.cc (omn omn v ruy quc)》之銘言: > 之前聽人家說linux不用做磁碟重組 > 請問原因是什麼呢? > 感謝 > 那為什麼M$要做磁碟重組呢? 很古老的問題了 n年前的bbs應該有答案 看得懂英文的話 http://www.tldp.org/LDP/tlk/fs/filesystem.html 關鍵在於他在block跟file的mapping上多加了一個block group這個資料結構 使得一個檔案的inode跟block能夠靠近一點而不用作重組 -- ┌─────KKCITY─────┐★☆ 數十萬首歌曲,22種音樂分類 ☆★ bbs.kkcity.com.tw □□ 與各大唱片行同步的音樂收藏 □□ └──From:69.226.208.94 ──┘快來~KKBOX http://www.kkbox.com.tw -- > -------------------------------------------------------------------------- < 作者: pokkys (Newbie) 看板: Linux 標題: Re: [問題] 為什麼linux不用磁碟重組 時間: Thu Feb 16 19:12:15 2006 ※ 引述《Hangy (omn omn v ruy quc)》之銘言: : 之前聽人家說linux不用做磁碟重組 : 請問原因是什麼呢? : 感謝 : 那為什麼M$要做磁碟重組呢? 1.ext3在寫入的時候已經有考慮到重組的問題。 2.雖然以上的調整不是最佳解,但是考慮到多人多工環境的存取,最佳化的意義不大。 比方說SQL,apache的服務存取,在一個系統load高的時候,最佳化過的檔案系統沒有 太大的優勢,因為存取位置還是會被多人多工的方式打散掉。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.132.243.103
antontw:推一下 02/16 22:28
> -------------------------------------------------------------------------- < 發信人: "網中人(netman)" <do.not@spam.me>, 看板: Linux 標 題: Re: [問題] 為什麼linux不用磁碟重組 發信站: SEEDNet News Service (Sat Feb 18 09:13:54 2006) 轉信站: ptt!ctu-reader!Spring!news.nctu!feeder.seed.net.tw!news.seed.net.tw!no omn omn v ruy quc 提到: > 之前聽人家說linux不用做磁碟重組 > > 請問原因是什麼呢? > > 感謝 > > 那為什麼M$要做磁碟重組呢? > 一些舊討論, 參考看看: http://phorum.study-area.org/viewtopic.php?t=10368 -- 風雨送春歸,飛雪迎春到。 已是懸崖百丈冰,猶有花枝俏。 俏也不爭春,只把春來報。 待到山花爛漫時,她在叢中笑。