3 ms·
Dataset was 20x times larger than available RAM in that case, so it makes sense that OS cashing was useless and only induced overhead.. Another potential issue
by riku_iki 2y ago
Dataset was 20x times larger than available RAM in that case, so it makes sense that OS cashing was useless and only induced overhead..
Another potential issue was that they compared their mmap code to fio O_DIRECT code, which kinda not clean experiment, fio could be just much more optimized itself..
- slaymaker1907 2y agoBesides this point, I mostly mentioned it as an example of probably the simplest in-memory yet disk-backed database imaginable. For example, if you want to implement any sort of transactions, you don't want to actually do anything like fsync until you start trying to commit the data.