rdedup
rdedup copied to clipboard
Can disk IO be improved any more?
-
writev
- doesn't seem to make a difference -
fallocate
- maybe? blocked on https://github.com/nix-rust/nix/issues/596 -
O_DIRECT
- to prevent cache pollution? orfadvise
?
Especially on spinning disks and if you know the order you will be traversing files it can help to run a mmap(..., MADV_WILLNEED)
on files before the input stage reads them the first time.
The trick is figuring out how far ahead of the main process to run. This can backfire if you are memory limited.
Good tip.
Right now I'm not planing to look into it, but if anyone benefits, please give it a try.