News for hackers. Stuff that matters.
Re:Are You Sure You Want to Use MMAP in Your Database Manage... by RaisingSpear on Monday July 03, 2023 @08:15AM (#36571822)
> for reading any uncached data, the I/O stalls are unavoidable.

Excuse me for a silly question, but whilst an I/O stall may be unavoidable, wouldn't a thread stall be avoidable if you're not using mmap?

Assuming that you're not swapping, you'll generally know if you've loaded something into memory or not, whilst mmap doesn't help you know if the relevant page is cached. If the data isn't in memory, you can send the I/O request to a thread to retrieve it, and the initiating thread can then move onto the next connection. I suspect this isn't doable under mmap based access?

There are no comments on this comment yet.