Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191020 - [boot] disk defragmentation on boot
Summary: [boot] disk defragmentation on boot
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-09-02 00:31 UTC by Jerome
Modified: 2007-09-16 18:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Jerome 2007-09-02 00:31:22 UTC

Even by using ext3, e2fsck tells me 6% is fragmented on boot check
when the max mount count has been reached.

Why not defragmenting in this case.

I don't think it will slowdown the boot time a lot
since everybody knows linux filesystems are never fragmented ;).

Maybe an incremental processing could be more efficient:
defragment at each boot.

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-02 01:37:30 UTC
Yeah, feel free to defragment all you want. You'll need some non-broken tool first though, happy searching.
Comment 2 Jerome 2007-09-16 17:55:12 UTC
why not using memory/swap for each fragmented ${file} like this:
{ gzip --to-stdout ${file} > /dev/shm/unfrag.tmp } &&
mv ${file} ${file}.defrag-save &&
{ gunzip --to-stdout /dev/shm/unfrag.tmp > ${file} } &&
rm ${file}.defrag-save
if [[ -e ${file}.defrag-save ]]; then mv ${file}.defrag-save ${file}; fi
Comment 3 Jerome 2007-09-16 18:00:41 UTC
cp ${file} ${file}.defragmented && mv ${file} ${file}.defrag-save &&
mv ${file}.defragmented ${file} && rm ${file}.defrag-save
if [[ -e ${file}.defrag-save ]]; then mv ${file}.defrag-save ${file}; fi