madvise
allows a userspace programm to tell the kernel, how it intends to access mapped memory.
Currently we only load mapped files lazily one page at a time, when said page is accessed, which slows down serial IO intensive workloads like multimedia decoders.
For such applications it might be useful to support MADV_SEQUENTIAL
to increase the loaded pages at a time, or even MADV_WILLNEED
to start an early (asynchronous) load of the mapped data
Also linux' MADV_FREE
might be helpful to allow the kernel to for example reclaim parts of the heap that are no longer needed
Additionally MADV_SEQUENTIAL
can be used as a hint to the kernel during memory pressure to prefer early pages of mapped files during eviction
Similar goes for the more posixy posix_fadvise
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too