On Mon, 9 Dec 2019 at 14:03, Ibrar Ahmed <ibrar.ah...@gmail.com> wrote: > I'd > actually argue that the segment size should be substantially smaller > than 1 GB, like say 64MB; there are still some people running systems > which are small enough that allocating 1 GB when we may need only 6 > bytes can drive the system into OOM."
I don't even see why you would allocated as much as 64MB. I would think something around 1MB would be more sensible. So you might need an array of segment pointers as long as a few thousand pointers, big deal. We can handle repalloc on 8kB arrays pretty easily. -- greg