Ask HN: Any good resource on writing your own mmap allocator?

6 points by cplat ↗ HN
I've been experimenting with using mmapped files as storage. One thing that I'm trying out is writing variable sized records to an mmapped file. However, I'll also be supporting deletions and updates, so fragmentation can become a big problem. Moreover, there could be records written at different times that need to be physically "colocated" for efficiency.

My question is, are there good resources to get started on working on on-disk allocators? I don't want to get there in a day, but need a solid direction. Thanks!

2 comments

[ 3.2 ms ] story [ 14.7 ms ] thread