[dpdk-dev] [PATCH] mempool: avoid memory waste with large pagesize

2016-03-09 Thread Olivier MATZ
On 03/09/2016 03:29 AM, Stephen Hemminger wrote: > If page size is large (like 64K on ARM) and object size is small > then don't waste lots of memory by rounding up to page size. > Instead, round up so that 1 or more objects all fit in a page. > > This preserves the requirement that an object must

[dpdk-dev] [PATCH] mempool: avoid memory waste with large pagesize

2016-03-08 Thread Stephen Hemminger
If page size is large (like 64K on ARM) and object size is small then don't waste lots of memory by rounding up to page size. Instead, round up so that 1 or more objects all fit in a page. This preserves the requirement that an object must not a page or virt2phys would break, and makes sure 62K is