[dpdk-dev] [PATCH v3 9/9] mem: support using memfd segments for in-memory mode
Maxime Coquelin
maxime.coquelin at redhat.com
Fri Sep 14 10:06:30 CEST 2018
On 09/04/2018 05:15 PM, Anatoly Burakov wrote:
> Enable using memfd-created segments if supported by the system.
>
> This will allow having real fd's for pages but without hugetlbfs
> mounts, which will enable in-memory mode to be used with virtio.
>
> The implementation is mostly piggy-backing on existing real-fd
> code, except that we no longer need to unlink any files or track
> per-page locks in single-file segments mode, because in-memory
> mode does not support secondary processes anyway.
>
> We move some checks from EAL command-line parsing code to memalloc
> because it is now possible to use single-file segments mode with
> in-memory mode, but only if memfd is supported.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
> lib/librte_eal/common/eal_common_options.c | 6 +-
> lib/librte_eal/linuxapp/eal/eal_memalloc.c | 265 ++++++++++++++++++---
> 2 files changed, 235 insertions(+), 36 deletions(-)
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list