Performance problems reading files with holes
Performance problems reading files with holes
Posted Apr 6, 2017 12:16 UTC (Thu) by fishface60 (subscriber, #88700)Parent article: Performance problems reading files with holes
It's a whence value for lseek isn't it, or is it some kernel jargon that SEEK_HOLE gets implemented as an ioctl call that gets called by the lseek call.
Posted Apr 7, 2017 12:18 UTC (Fri)
by koverstreet (✭ supporter ✭, #4296)
[Link]
(This might not be true for other filesystems depending on how they implement delayed allocation, but I suspect btrfs is roughly in the same boat as bcachefs here).
There's likely room for someone to improve things by creating some better VFS helpers, if they were interested in such a thing.
If anyone's interested, here's the code for SEEK_DATA/SEEK_HOLE in bcachefs - though I'm still not really happy with it:
https://evilpiepirate.org/git/bcachefs.git/tree/fs/bcache...
Performance problems reading files with holes