[dpdk-dev] [dpdk-stable] [PATCH] mem: mark pages as not accessed when reserving VA

David Marchand david.marchand at redhat.com
Fri Mar 13 10:59:29 CET 2020


On Mon, Mar 9, 2020 at 3:55 PM David Marchand <david.marchand at redhat.com> wrote:
>
> When the memory allocator reserves virtual addresses, it still does not
> know what they will be used for.
> Besides, huge areas are reserved for memory hotplug in multiprocess
> setups. But most of the pages are unused in the whole life of the
> processes.
>
> Change protection mode to PROT_NONE when only reserving VA.
> The memory allocator already switches to the right mode when making use
> of it.
>
> It also has the nice effect of getting those pages skipped by the kernel
> when calling mlockall() or when a coredump gets generated.
>
> Cc: stable at dpdk.org
>
> Suggested-by: Andrea Arcangeli <aarcange at redhat.com>
> Signed-off-by: David Marchand <david.marchand at redhat.com>

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Acked-by: Aaron Conole <aconole at redhat.com>
Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>


Applied.

-- 
David Marchand



More information about the dev mailing list