Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
defragfs 0.8, Released under GPL by xucanhao@gmail.com
Analysis in progress...
NOTE: if the directory you specified contains too much files(e.g. tens of thousands), it could take you several minutes on analysis, you may disturb it by CTRL+C at anytime. And BTW: the program is CURRENTLY not accurate on Reiser4 due to its default tailing policy(you may see a high fragment rate before and even after)
Statistics for .
Total Files: 201
Fragmented Files: 198
File Fragmentation Rate: 98.5074626865672%
Avg File Fragments(1 is best): 385.845771144279
and after
Code:
You need AT LEAST 367249408 Bytes temporarily used for defragmentation(at the directory where you specified), continue(Y/N)?[N] Y
OK, please drink a cup of tea and wait...
#########################################################################################################################################################################################################Done!
Now lets see the results...
Statistics for .
Total Files: 201
Fragmented Files: 198
File Fragmentation Rate: 98.5074626865672%
Avg File Fragments(1 is best): 384.865671641791
can we please get a decent defrag program going, and please do not tell me the myth that linux doesnt suffer from file fragmentation.
If you aren't familiar with thread, and you don't feel like reading all c.150 posts, in a nutshell, the OP, who wrote the code you're using, was, for all intents and purposes, shown to be a tad "over-exuberant" in the self-promotion of his code. (imho)
At one point, Mr. Ts'o, who is considered an expert vis-a-vis filesystems, etc., questioned whether even defragging Windows filesystems was worthwhile.
Tools to defrag ext4 as in the way, and also an on-line defragmenter for it. But I haven't followed the issue lately so I don't know the current state of things in ext4. I use it without problems though, and it comes included since linux 2.6.28
can we please get a decent defrag program going, and please do not tell me the myth that linux doesnt suffer from file fragmentation.
Sorry, but it's not a myth, I believe it is your misunderstanding. ext2/ext3 is the most prone to fragmentation of all the filesystems available for Linux (because it doesn't support extents along with old reiserfs, try ext4 or reiser4, which do), but even so it will only happen if you keep the partition nearly completely (80 %) full, other than that case there will be no fragmentation.
indeed, your link is good, and it explains why files that are over 100 megs CAN fragment. if you go past (z,z) on the table, you can fragment. it also explains why fragmentation is not such a problem under nix, as your dealing with LARGE fragmented chunks instead of every single bit being a problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.