Re: [dpdk-dev] [PATCH] eal/freebsd: lock memory device to prevent conflicts

2021-10-02 Thread David Marchand
On Mon, Sep 13, 2021 at 4:40 PM Burakov, Anatoly wrote: > >> I'm a bit uneasy with --in-memory mode pretending to work on > >> FreeBSD and Windows, but that's a separate problem :) > > > > Yes, it is, though one that does belong is the same area as this one. The > > "fix" is probably to just print

Re: [dpdk-dev] [PATCH] eal/freebsd: lock memory device to prevent conflicts

2021-10-02 Thread David Marchand
On Mon, Sep 13, 2021 at 3:15 PM Burakov, Anatoly wrote: > On 13-Sep-21 12:06 PM, Bruce Richardson wrote: > > Only a single DPDK process on the system can be using the /dev/contigmem > > mappings at a time, but this was never explicitly enforced, e.g. when > > using --in-memory flag on two processe

Re: [dpdk-dev] [PATCH] eal/freebsd: lock memory device to prevent conflicts

2021-09-13 Thread Burakov, Anatoly
On 13-Sep-21 2:36 PM, Bruce Richardson wrote: On Mon, Sep 13, 2021 at 02:14:55PM +0100, Burakov, Anatoly wrote: On 13-Sep-21 12:06 PM, Bruce Richardson wrote: Only a single DPDK process on the system can be using the /dev/contigmem mappings at a time, but this was never explicitly enforced, e.g

Re: [dpdk-dev] [PATCH] eal/freebsd: lock memory device to prevent conflicts

2021-09-13 Thread Dmitry Kozlyuk
2021-09-13 14:14 (UTC+0100), Burakov, Anatoly: > [...] > I'm a bit uneasy with --in-memory mode pretending > to work on FreeBSD and Windows, but that's a separate problem :) On Windows, --in-memory does not pretend to work, just the opposite, it is enabled implicitly as it's the only working mode

Re: [dpdk-dev] [PATCH] eal/freebsd: lock memory device to prevent conflicts

2021-09-13 Thread Bruce Richardson
On Mon, Sep 13, 2021 at 02:14:55PM +0100, Burakov, Anatoly wrote: > On 13-Sep-21 12:06 PM, Bruce Richardson wrote: > > Only a single DPDK process on the system can be using the /dev/contigmem > > mappings at a time, but this was never explicitly enforced, e.g. when > > using --in-memory flag on two

Re: [dpdk-dev] [PATCH] eal/freebsd: lock memory device to prevent conflicts

2021-09-13 Thread Burakov, Anatoly
On 13-Sep-21 12:06 PM, Bruce Richardson wrote: Only a single DPDK process on the system can be using the /dev/contigmem mappings at a time, but this was never explicitly enforced, e.g. when using --in-memory flag on two processes. To prevent possible conflict issues, we lock the dev node when it'

[dpdk-dev] [PATCH] eal/freebsd: lock memory device to prevent conflicts

2021-09-13 Thread Bruce Richardson
Only a single DPDK process on the system can be using the /dev/contigmem mappings at a time, but this was never explicitly enforced, e.g. when using --in-memory flag on two processes. To prevent possible conflict issues, we lock the dev node when it's in use, preventing other DPDK processes from st