Re: [dpdk-dev] [PATCH v2 4/5] mem: use memfd for no-huge mode

2018-12-13 Thread Burakov, Anatoly
On 13-Dec-18 4:59 AM, Tiwei Bie wrote: On Tue, Dec 11, 2018 at 04:43:31PM +, Anatoly Burakov wrote: When running in no-huge mode, we anonymously allocate our memory. While this works for regular NICs and vdev's, it's not suitable for memory sharing scenarios such as virtio with vhost_user ba

Re: [dpdk-dev] [PATCH v2 4/5] mem: use memfd for no-huge mode

2018-12-12 Thread Tiwei Bie
On Tue, Dec 11, 2018 at 04:43:31PM +, Anatoly Burakov wrote: > When running in no-huge mode, we anonymously allocate our memory. > While this works for regular NICs and vdev's, it's not suitable > for memory sharing scenarios such as virtio with vhost_user > backend. > > To fix this, allocate

[dpdk-dev] [PATCH v2 4/5] mem: use memfd for no-huge mode

2018-12-11 Thread Anatoly Burakov
When running in no-huge mode, we anonymously allocate our memory. While this works for regular NICs and vdev's, it's not suitable for memory sharing scenarios such as virtio with vhost_user backend. To fix this, allocate no-huge memory using memfd, and register it with memalloc just like any other