The calculation of DEFAULT_NUM_DIRECT_ARENA includes the following comment:
// Assuming each arena has 3 chunks, the pool should not consume more than 50% of max memory.
Is it considered an error for a PoolArena to have more than 3 PoolChunks? I have a fairly simple reproducer for PoolArena greater than 3 chunks, leading to Direct Memory OOM errors. I'm not entirely sure if that's my misconfiguration, or a bug.
Derek