I am looking for a way to select the sections and memory regions included in a core dump. My application\'s core dump size is about 30GB, most of it is in preallocated buffe
I'm not sure if it is possible to set which part of the memory to dump.
From man 5 core
man 5 core
disk file containing an image of the process's memory at the time of termination
As an option you can truncate core file using setrlimit with a RLIMIT_CORE parameter.
setrlimit
RLIMIT_CORE