I have ext3 filesystem mounted with default options. On it I have some ~ 100GB files.
Removal of any of such files takes long time (8 minutes) and causes a lot of io traffic, which increases load on server.
Is there any way to make the rm not as disruptive?
Best Answer
The most interesting answer was originally buried in a comment on the question. Here it is as a first class answer to make it more visible:
That link is an incredibly thorough analysis of the exploration for and discovery of a workable solution.
Note also:
The article says:
which is true, but user TafT says if you want no disruption then
-c3
'idle' would be a better choice than-c2
'best-effort'. He has used-c3
to build in the background and has found it to work well without causing the build to wait for ever. If you really do have 100% io usage then-c3
will not let the delete ever complete but he doesn't expect that is what you have based on the worked test.