Shawn Pearce [off-list ref] writes:
However what do we do about the case where we mmap over 1 GiB worth
of pack data (because the mmap succeeds and we have at least that
much in .pack and .idx files) and then the application starts to
demand a lot of memory via malloc?...
The other configuration option is the size of the mmap window.
...
Earlier this summer we discussed this exact issue and said this
value probably needs to be configurable if only to facilitate the
unit tests.
I see. So you are allowing users to control individual window
size and total mmap memory. That makes sense.