Re: [dpdk-dev] [RFC PATCH] app/testpmd: only lock text pages

2020-03-10 Thread David Marchand
On Tue, Mar 10, 2020 at 4:08 PM Ferruh Yigit wrote: > >> +1 to the idea, testpmd initialization was taking too lock without > >> '--no-mlockall', but this code looks complex for the application level. > >> > >> We can do this for testpmd but does all applications need to do something > >> similar?

Re: [dpdk-dev] [RFC PATCH] app/testpmd: only lock text pages

2020-03-10 Thread Ferruh Yigit
On 3/10/2020 2:55 PM, David Marchand wrote: > On Tue, Mar 10, 2020 at 3:49 PM Ferruh Yigit wrote: >> >> On 3/6/2020 2:48 PM, David Marchand wrote: >>> Since 18.05 and the memory subsystem rework, EAL reserves some big >>> (unused) mappings. >>> >>> In testpmd, we have been locking all pages to avo

Re: [dpdk-dev] [RFC PATCH] app/testpmd: only lock text pages

2020-03-10 Thread David Marchand
On Tue, Mar 10, 2020 at 3:49 PM Ferruh Yigit wrote: > > On 3/6/2020 2:48 PM, David Marchand wrote: > > Since 18.05 and the memory subsystem rework, EAL reserves some big > > (unused) mappings. > > > > In testpmd, we have been locking all pages to avoid page faults during > > benchmark/performance

Re: [dpdk-dev] [RFC PATCH] app/testpmd: only lock text pages

2020-03-10 Thread Ferruh Yigit
On 3/6/2020 2:48 PM, David Marchand wrote: > Since 18.05 and the memory subsystem rework, EAL reserves some big > (unused) mappings. > > In testpmd, we have been locking all pages to avoid page faults during > benchmark/performance regression tests [1]. > However, asking for locking all the pages

[dpdk-dev] [RFC PATCH] app/testpmd: only lock text pages

2020-03-06 Thread David Marchand
Since 18.05 and the memory subsystem rework, EAL reserves some big (unused) mappings. In testpmd, we have been locking all pages to avoid page faults during benchmark/performance regression tests [1]. However, asking for locking all the pages triggers issues on FreeBSD [2] and becomes really heavy