borgbackup / borgbackup/borgstore
posixfs: investigate preadv2/pwritev2 flag RWF_UNCACHED
Open
- Dominant language
- Python
- Stars
- 25
- Forks
- 8
- Avg merge
- 16m
- Merged PRs (30d)
- 8
Description
There are patches in flight for the linux kernel to add an additional mechanism to allow file IO without affecting file caches. The proposal uses a new flag RWF_UNCACHED for the preadv2 and pwritev2 system calls to activate this mode. Possibly this could be interesting for borg to use instead of POSIX_FADV_DONTNEED.
Points to consider: Does using this for reading make sense even if this disables read-ahead? If missing read ahead is a problem would a reader thread help?
See https://lwn.net/Articles/806980/ for details about the inflight patches.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.