Li Feng d72e4042c5 mem: exclude unused memory from core dump
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 `madvise()` call with MADV_DONTDUMP/MADV_NOCORE to exclude the
unused memory from being dumped.

Signed-off-by: Li Feng <fengli@smartx.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
2020-04-24 19:36:17 +02:00
..
2019-04-03 18:34:59 +02:00
2019-11-19 22:03:27 +01:00
2019-11-19 22:03:38 +01:00
2020-04-23 15:39:48 +02:00
2020-04-16 18:30:58 +02:00
2020-04-24 19:29:06 +02:00
2019-10-27 10:39:56 +01:00
2019-07-06 10:32:34 +02:00
2020-04-23 15:39:42 +02:00
2018-01-25 23:25:57 +01:00
2020-04-23 15:39:48 +02:00
2020-03-31 13:08:55 +02:00