-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excessive file fragmentation on parallel file creation #496
Comments
File fragmentation is not a concept known to POSIX, so what you’re seeing is caused by your specific file system. On which one are you running this test? |
Oh yes, sorry, I though I mentioned the filesystemt. It is Lustre. The fio benchmark does preallocate files as shown in the snippet below of an fio strace
In the IOR cases without preallocation, the files are written sequentially, although there is a SEEK to the same file offset that would have been appended anyway. Snippet of strace of an IOR process handling writing one file:
The offset+lengths are sequential with no gaps. |
Hi there,
It looks like parallel file creation with IOR (4.0.0) causes unnecessary file fragmentation.
Here is an example and a comparison with FIO (serialised and parallelised file creation).
Even with parallel file creation, FIO does a very good job of keeping fragmentation to a minimum.
Is there any chance of improving this?
The text was updated successfully, but these errors were encountered: