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 buffers which I don't even need in debugging (and can be zeroed later). However, since the dump is so big, it takes too much time for the application to finish crashing and begin recovery.
Can anyone think of a way to select in advance which segments will be in the core dump?
Thanks
相关问题
- What uses more memory in c++? An 2 ints or 2 funct
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Memory for python.exe on Windows 7 python 32 - Num
- Error building gcc 4.8.3 from source: libstdc++.so
I'm not sure if it is possible to set which part of the memory to dump.
From
man 5 core
As an option you can truncate core file using
setrlimit
with aRLIMIT_CORE
parameter.According to the
core(5)
manpage, you can set which mappings are written to the core file: