mempool: add flags arg in xmem size and usage