Les systèmes de fichiers ext3 / ext4 etc. fragmentent. Peu, pas vite, mais au bout de 6 ans ça ralentit l’ordinateur. Il existe la commande
shake pour défragmenter.
Ext file systems are fragmenting. A little bit, slowly, but after a quite some years it slows down a computer. That’s why it exists the
shake command, to defrag old systems.
shake is a defragmenter that runs in userspace, without the need of patching the kernel and while the system is used (for now, on GNU/Linux only).
Using Arch Linux the
shake command is available as a PKGBBUILD. Using Debian there is a third-party repository (vleu.net/apt) or it’s easy to compile.
First, check that your partition is mounted with the
Then, you can check the fragmentation of a directory or a whole unmounted partition with :
# shake --pretend --verbose --verbose $my_dir (1)
|1||launched as root|
And reduce it via :
# shake $my_dir (1) # find -iname '*.mp3' | sort | shake (2)
|1||to defrag the
|2||to defrag all MP3 in a directory, puting together on the disk those close in lexical order|
Better avoid shaking :
|SSD storages are less affected (nearly not at all) by fragmentation, it’s their normal way of operation. Write me if you measured significant improvement on SSD.|
|More information of the official website of the project : http://vleu.net/shake/|