mempool: create internal ring in a specific function