Re: [dpdk-dev] [RFC 4/4] mempool: prevent objects from being across pages

2019-10-29 Thread Andrew Rybchenko
On 10/28/19 5:07 PM, Olivier Matz wrote: On Wed, Aug 07, 2019 at 06:21:58PM +0300, Andrew Rybchenko wrote: On 7/19/19 4:38 PM, Olivier Matz wrote: When using iova contiguous memory and objets smaller than page size, ensure that objects are not located across several pages. It looks like as an

Re: [dpdk-dev] [RFC 4/4] mempool: prevent objects from being across pages

2019-10-28 Thread Olivier Matz
Hi Anatoly, On Fri, Jul 19, 2019 at 03:03:29PM +0100, Burakov, Anatoly wrote: > On 19-Jul-19 2:38 PM, Olivier Matz wrote: > > When using iova contiguous memory and objets smaller than page size, > > ensure that objects are not located across several pages. > > > > Signed-off-by: Vamsi Krishna Att

Re: [dpdk-dev] [RFC 4/4] mempool: prevent objects from being across pages

2019-10-28 Thread Olivier Matz
On Wed, Aug 07, 2019 at 06:21:58PM +0300, Andrew Rybchenko wrote: > On 7/19/19 4:38 PM, Olivier Matz wrote: > > When using iova contiguous memory and objets smaller than page size, > > ensure that objects are not located across several pages. > > It looks like as an attempt to make exception a gen

Re: [dpdk-dev] [RFC 4/4] mempool: prevent objects from being across pages

2019-08-07 Thread Andrew Rybchenko
On 7/19/19 4:38 PM, Olivier Matz wrote: When using iova contiguous memory and objets smaller than page size, ensure that objects are not located across several pages. It looks like as an attempt to make exception a generic rule and I think it is not a good idea. mempool has a notion of IOVA co

Re: [dpdk-dev] [RFC 4/4] mempool: prevent objects from being across pages

2019-07-19 Thread Burakov, Anatoly
On 19-Jul-19 2:38 PM, Olivier Matz wrote: When using iova contiguous memory and objets smaller than page size, ensure that objects are not located across several pages. Signed-off-by: Vamsi Krishna Attunuru Signed-off-by: Olivier Matz --- total_elt_sz = mp->header_size + mp->elt_s

Re: [dpdk-dev] [RFC 4/4] mempool: prevent objects from being across pages

2019-07-19 Thread Burakov, Anatoly
On 19-Jul-19 2:38 PM, Olivier Matz wrote: When using iova contiguous memory and objets smaller than page size, ensure that objects are not located across several pages. Signed-off-by: Vamsi Krishna Attunuru Signed-off-by: Olivier Matz --- lib/librte_mempool/rte_mempool_ops_default.c | 39 +++

[dpdk-dev] [RFC 4/4] mempool: prevent objects from being across pages

2019-07-19 Thread Olivier Matz
When using iova contiguous memory and objets smaller than page size, ensure that objects are not located across several pages. Signed-off-by: Vamsi Krishna Attunuru Signed-off-by: Olivier Matz --- lib/librte_mempool/rte_mempool_ops_default.c | 39 ++-- 1 file changed, 37