Re: [dpdk-dev] [PATCH v6 2/3] eal: add memory pre-allocation from existing files

2021-11-08 Thread David Marchand
On Mon, Nov 8, 2021 at 3:27 PM Dmitry Kozlyuk wrote: > > Hi David, > > > -Original Message- > > From: David Marchand > [...] > > > > - finegrained control of hugepage files, but it has the drawback of > > > > imposing primary/secondary run with the same options. > > > > The second part

Re: [dpdk-dev] [PATCH v6 2/3] eal: add memory pre-allocation from existing files

2021-10-13 Thread David Marchand
On Tue, Oct 12, 2021 at 11:09 PM Dmitry Kozlyuk wrote: > > From this, I see two parts in this patch: > > - faster restart, reusing hugepage files as is (combination of not calling > > unlink() and doing "clear on alloc"), > > This part is interesting, and I think a single knob for this would be

Re: [dpdk-dev] [PATCH v6 2/3] eal: add memory pre-allocation from existing files

2021-10-12 Thread Dmitry Kozlyuk
> -Original Message- > From: David Marchand > Sent: 12 октября 2021 г. 20:33 > To: Dmitry Kozlyuk > Cc: dev ; Slava Ovsiienko ; Anatoly > Burakov ; NBU-Contact-Thomas Monjalon > > Subject: Re: [dpdk-dev] [PATCH v6 2/3] eal: add memory pre-allocation from > e

Re: [dpdk-dev] [PATCH v6 2/3] eal: add memory pre-allocation from existing files

2021-10-12 Thread David Marchand
On Tue, Oct 12, 2021 at 5:55 PM Dmitry Kozlyuk wrote: > > I have some trouble figuring the need for the list of files. > > Why not use a global knob --mem-clear-on-alloc for this behavior change? > > Moving memset() doesn't speed anything up, it's a forced step for the reasons > below. > Currentl

Re: [dpdk-dev] [PATCH v6 2/3] eal: add memory pre-allocation from existing files

2021-10-12 Thread Dmitry Kozlyuk
Hello David, > I have some trouble figuring the need for the list of files. > Why not use a global knob --mem-clear-on-alloc for this behavior change? Moving memset() doesn't speed anything up, it's a forced step for the reasons below. Currently, memory is cleared by the kernel when a page is ma

Re: [dpdk-dev] [PATCH v6 2/3] eal: add memory pre-allocation from existing files

2021-10-12 Thread David Marchand
Hello Dmitry, Slava, On Mon, Oct 11, 2021 at 10:57 AM Dmitry Kozlyuk wrote: > > From: Viacheslav Ovsiienko > > The primary DPDK process launch might take a long time if initially > allocated memory is large. From practice allocation of 1 TB of memory > over 1 GB hugepages on Linux takes tens of

[dpdk-dev] [PATCH v6 2/3] eal: add memory pre-allocation from existing files

2021-10-11 Thread Dmitry Kozlyuk
From: Viacheslav Ovsiienko The primary DPDK process launch might take a long time if initially allocated memory is large. From practice allocation of 1 TB of memory over 1 GB hugepages on Linux takes tens of seconds. Fast restart is highly desired for some applications and launch delay presents a