Re:Async hazard: MMAP is blocking IO
by rbanffy on Sunday August 25, 2024 @02:16PM
(#41349724)
It would allow a memory read to yield to the async loop, but overall performance of the read itself would always be lower.
It’s the kind of thing that would be better implemented as a special “async buffer” where reads are guarded by a page fault handler that returns as soon as the read is scheduled and a read that yields on an unresolved page load.
It’s the kind of thing that would be better implemented as a special “async buffer” where reads are guarded by a page fault handler that returns as soon as the read is scheduled and a read that yields on an unresolved page load.