5 ms·
Is there an advantage of using fallocate over say, dd to pipe random or zeroes to a file?
by NeutronBoy 11y ago
Is there an advantage of using fallocate over say, dd to pipe random or zeroes to a file?
- asimilator 11y agofallocate doesn't do any IO; it's much faster. From the fallocate man page: > For filesystems which support the fallocate system call, preallocation is done quickly by allocating blocks and marking them as uninitialized, requiring no IO to the data blocks. This is much faster than creating a file by filling it with zeros.