very slow file deletion on an SSD

Eric Sandeen sandeen at sandeen.net
Sun May 27 11:07:02 CDT 2012


On 5/27/12 9:59 AM, joe.landman at gmail.com wrote:
> This is going to be a very fragmented file.  I am guessing that this
> is the reason for the long duration delete.   I'll do some more
> measurements before going to 3.4.x as per Eric's note.

filefrag -v should also tell you how many fragments, and because it
uses fiemap it probably won't run into the same problems.

But it sounds like we can just assume very high fragmentation.

It's not addressing the exact issue, but why are the files so fragmented?
Are they very hole-y or is it just an issue with how they are written?
Perhaps preallocation would help you here?

-Eric



More information about the xfs mailing list