Hide Forgot
with the current variable sized io-buf, we saw that the arena size for all the page sizes are constant (which is 8MB, given during the init time). instead it should be fixed number of pages. So, the 'iobuf_arean_init()' should take 'page-size' and 'page-count' as argument.
Had chat with this with Avati. We can't hardcode page-count of all the arena to a single value. (as in, for a 8MB buffer (may be required if we allow quick-read cache-size option to 8MB, and if we have hardcoded value of 64, it will be like 512MB for a single arena). We should have something like a configurable page-count for different sizes of the page. May be like 2k buffers can have 256 pages, where as 256k buffers can be just 16. etc etc.. Will come up with more proper design before solving this.
Planing to keep 3.4.x branch as "internal enhancements" release without any features. So moving these bugs to 3.4.0 target milestone.
CHANGE: http://review.gluster.com/543 (* so overall memory usage will be in limit.) merged in master by Anand Avati (avati)