3 ms·
> Anonymous mappings are backed by swap and may be overcommitted, So is normal memory. Many allocators today even use mmap internally.
by gpderetta 8y ago
> Anonymous mappings are backed by swap and may be overcommitted,
So is normal memory. Many allocators today even use mmap internally.
- deleted 8y ago[deleted]
- quotemstr 8y agoAll* allocation is mmap, really. All mmap does is dedicate a region of address space to some kind of backing storage. The particular kind of backing storage makes all the difference. The problem is that people colloquially use "mmap" to mean "mmap of a conventional disk file" and don't mean all the other kinds of mmap out there, so discussions can become confusing. * Ther's sbrk too, but it's just a fancy legacy path that amounts to the same thing as anonymous mmap