阅读背景:

为什么linux转储干净的MAP_ANONYMOUS内存页到核心转储?

来源:互联网 

I would like to use mmap to map LARGE contiguous memory regions into my process. This is just a large pre-allocated buffer, most of which is unlikely to every be used. I can actually create Terabytes of such memory regions even though that exceeds my physical memory + hard disk size. Linux will map in pages as I access addresses in my mapped region. Unfortunately, if I generate a core dump after calling mmap, but before touching the new memory region, the core dump will include that LARGE memory region. Why? Linux would have to page in a new page of zero bulked filled memory just to write it out to the core file.I would like to use mmap to map LARGE contiguou




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: