Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...



Pro: 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.


Sounds nice, good find!

I dug up the commit: 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.


The merge window for 3.7 opened on September 30th, so it's not that old.


What journaling options did you use?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: