Linux: proc: pid: coredump_filter
https://access.redhat.com/solutions/6988051
How to estimate coredump size of a process?
这里用到了这个参数,来确定,coredump文件的大小。
pmap 3282|egrep ‘[ (anon|stack|shmid)’|awk ‘BEGIN{sum=0}{sum=sum+$2;}END{print sum;}’
这个还是比较重要的一个参数:
3.4 /proc//coredump_filter - Core dump filtering settings
When a process is dumped, all anonymous memory is written to a core file as long as the size of the core file isn’t limited. But sometimes we don’t want to dump some memory segments, for example, huge shared memory or DAX. Conversely, sometimes we want to save file-backed memory segments into a core file, not only the individual files.
/proc//coredump_filter allows you to customize which memory segments will be dumped when the process is dumped. coredump_filter is a bitmas