Re: [dpdk-dev] [PATCH v2] eal: use madvise to exclude unmapped memory from being dumped

2020-04-24 Thread Li Feng
Thanks, Feng Li Burakov, Anatoly 于2020年4月24日周五 下午7:23写道: > > On 24-Apr-20 11:50 AM, Li Feng wrote: > > Currently, even though memory is mapped with PROT_NONE, this does not > > cause it to be excluded from core dumps. This is counter-productive, > > because in a lot of cases, this memory will go

Re: [dpdk-dev] [PATCH v2] eal: use madvise to exclude unmapped memory from being dumped

2020-04-24 Thread Burakov, Anatoly
On 24-Apr-20 12:36 PM, Bruce Richardson wrote: On Fri, Apr 24, 2020 at 12:23:44PM +0100, Burakov, Anatoly wrote: On 24-Apr-20 11:50 AM, Li Feng wrote: Currently, even though memory is mapped with PROT_NONE, this does not cause it to be excluded from core dumps. This is counter-productive, becau

Re: [dpdk-dev] [PATCH v2] eal: use madvise to exclude unmapped memory from being dumped

2020-04-24 Thread Bruce Richardson
On Fri, Apr 24, 2020 at 12:23:44PM +0100, Burakov, Anatoly wrote: > On 24-Apr-20 11:50 AM, Li Feng wrote: > > Currently, even though memory is mapped with PROT_NONE, this does not > > cause it to be excluded from core dumps. This is counter-productive, > > because in a lot of cases, this memory wil

Re: [dpdk-dev] [PATCH v2] eal: use madvise to exclude unmapped memory from being dumped

2020-04-24 Thread Burakov, Anatoly
On 24-Apr-20 11:50 AM, Li Feng wrote: Currently, even though memory is mapped with PROT_NONE, this does not cause it to be excluded from core dumps. This is counter-productive, because in a lot of cases, this memory will go unused (e.g. when the memory subsystem preallocates VA space but hasn't y

[dpdk-dev] [PATCH v2] eal: use madvise to exclude unmapped memory from being dumped

2020-04-24 Thread Li Feng
Currently, even though memory is mapped with PROT_NONE, this does not cause it to be excluded from core dumps. This is counter-productive, because in a lot of cases, this memory will go unused (e.g. when the memory subsystem preallocates VA space but hasn't yet mapped physical pages into it). Use