4 ms·
It sounds like a lot of the performance issues are TLB-related. Am I right in thinking huge-pages would help here? If so, it's a bit unfortunate they didn't tes
by kwohlfahrt 3y ago
It sounds like a lot of the performance issues are TLB-related. Am I right in thinking huge-pages would help here? If so, it's a bit unfortunate they didn't test this in the paper.
Edit: Hm, it might not be possible to mmap files with huge-pages. This LWN article[1] from 5 years ago talks about the work that would be required, but I haven't seen any follow-ups.
[1]: https://lwn.net/Articles/718102/ https://lwn.net/Articles/718102/
- ori_b 3y agoNo, huge pages wouldn't help. They would change when the TLB gets flushed, but the flushes would still be there.
- hyc_symas 3y agoHuge pages aren't pageable, so they wouldn't be particularly advantageous for a mmap DB anyway, you'd have to do traditional I/O & buffer management for everything.