On Fri May 17 08:36:29 2024 +0000, Jinoh Kang wrote:
If we map in chunks, we should ensure that objects do not cross chunk boundaries. An object spanning two chunks will appear discontiguous in client's virtual memory. If every object is smaller than a page, the simplest fix is to ensure each object fits inside one page. This doesn't work for objects larger than a page, though.
I don't see why this is necessary, in the commit above we just pass the object size when looking for a mmaped block (right now it's fixed but could be variable later), and look a block containing [offset, offset + size), or mmap a new one which will include the range.