3 ms·
Optimization of file deletion in ext4 gives nice results (from a commit message): > X86 before (linux 3.6-rc4): > # time rm -f test1 > real 0m2.710s > us
by aartur 14y ago
Optimization of file deletion in ext4 gives nice results (from a commit message):
> X86 before (linux 3.6-rc4):
> # time rm -f test1
> real 0m2.710s
> user 0m0.000s
> sys 0m1.530s
> X86 after:
> # time rm -f test1
> real 0m0.644s
> user 0m0.003s
> sys 0m0.060s
The commit affects 5 lines only.
EDIT. Not sure if this optimization applies to filesystems mounted with standard journaling options...
- unwind 14y agoSounds nice, good find! I dug up the commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=18888cf0883c286f238d44ee565530fe82752f06 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git... which seems to be a bit older than I would have expected. Of course, this being Linux, "old" means it's from September 19th.
- caf 14y agoThe merge window for 3.7 opened on September 30th, so it's not that old.
- devastor 14y agoWhat journaling options did you use?
- georgemcbay 14y agoPro: Eliminates the sinking feeling I get when an rm with wildcards is "taking too long". Con: All my files are gone before I can frantically ctrl-c to save some of them.