Re: [PATCH] test/mbuf: fix the forked process segment fault

2023-06-12 Thread Thomas Monjalon
v@dpdk.org; sta...@dpdk.org; tho...@monjalon.net; > >> step...@networkplumber.org; Justin > >> He ; Honnappa Nagarahalli > >> ; nd > >> > >> Subject: Re: [PATCH] test/mbuf: fix the forked process segment fault > >> > >> On 5/22/2023 10:55 AM, R

Re: [PATCH] test/mbuf: fix the forked process segment fault

2023-05-23 Thread Burakov, Anatoly
Subject: Re: [PATCH] test/mbuf: fix the forked process segment fault On 5/22/2023 10:55 AM, Ruifeng Wang wrote: -Original Message- From: Burakov, Anatoly Sent: Monday, May 22, 2023 5:24 PM To: Ruifeng Wang ; olivier.m...@6wind.com Cc: dev@dpdk.org; sta...@dpdk.org; tho...@monjalon.net; step

RE: [PATCH] test/mbuf: fix the forked process segment fault

2023-05-22 Thread Ruifeng Wang
..@6wind.com > >> Cc: dev@dpdk.org; sta...@dpdk.org; tho...@monjalon.net; > >> step...@networkplumber.org; Justin He ; Honnappa > >> Nagarahalli ; nd > >> Subject: Re: [PATCH] test/mbuf: fix the forked process segment fault > >> > >> On 5

Re: [PATCH] test/mbuf: fix the forked process segment fault

2023-05-22 Thread Burakov, Anatoly
On 5/22/2023 4:21 PM, Stephen Hemminger wrote: On Mon, 22 May 2023 11:19:24 +0100 "Burakov, Anatoly" wrote: This case validates mbuf. IMO there is no need to do validation in a secondary process. Unit test for rte_panic() also uses fork() and could have the same issue. In that case, rt

Re: [PATCH] test/mbuf: fix the forked process segment fault

2023-05-22 Thread Stephen Hemminger
On Mon, 22 May 2023 11:19:24 +0100 "Burakov, Anatoly" wrote: > > > > This case validates mbuf. IMO there is no need to do validation in a > > secondary process. > > Unit test for rte_panic() also uses fork() and could have the same issue. > > > > In that case, rte_panic() test should be fix

Re: [PATCH] test/mbuf: fix the forked process segment fault

2023-05-22 Thread Burakov, Anatoly
Subject: Re: [PATCH] test/mbuf: fix the forked process segment fault On 5/22/2023 7:01 AM, Ruifeng Wang wrote: Access of any memory in the hugepage shared file-backed area will trigger an unexpected forked child process segment fault. The root cause is DPDK doesn't support fork model [1] (ca

RE: [PATCH] test/mbuf: fix the forked process segment fault

2023-05-22 Thread Ruifeng Wang
> Subject: Re: [PATCH] test/mbuf: fix the forked process segment fault > > On 5/22/2023 7:01 AM, Ruifeng Wang wrote: > > Access of any memory in the hugepage shared file-backed area will > > trigger an unexpected forked child process segment fault. The root > >

Re: [PATCH] test/mbuf: fix the forked process segment fault

2023-05-22 Thread Burakov, Anatoly
On 5/22/2023 7:01 AM, Ruifeng Wang wrote: Access of any memory in the hugepage shared file-backed area will trigger an unexpected forked child process segment fault. The root cause is DPDK doesn't support fork model [1] (calling rte_eal_init() before fork()). Forked child process can't be treated

[PATCH] test/mbuf: fix the forked process segment fault

2023-05-21 Thread Ruifeng Wang
Access of any memory in the hugepage shared file-backed area will trigger an unexpected forked child process segment fault. The root cause is DPDK doesn't support fork model [1] (calling rte_eal_init() before fork()). Forked child process can't be treated as a secondary process. Hence fix it by av