Messages in this thread | | | Subject | Re: mmap'ed memory in core files ? | From | Andi Kleen <> | Date | Wed, 02 Jul 2008 13:07:22 +0200 |
| |
"Rob Mueller" <robm@fastmail.fm> writes: > > It's clearly sparse, but slightly unintuitive that the ulimit doesn't > actually limit the filesize, just the size of the data written to the > file.
It's the only sane semantic. Imagine ulimit would limit the address range as you seem to be asking for. This means if you set e.g. ulimit -c 1G then the kernel would never dump any address (mmap or not) above 1GB. Never dumping the process stack for example. Clearly doesn't make any sense. And mmap'ed files are not different from any other mappings in this regard.
-Andi
| |