Re: sbrk(2), OOM-killer and malloc() overcommit

From: Tim Kientzle <kientzle_at_freebsd.org>
Date: Fri, 04 Jan 2008 09:36:55 -0800
Vadim Goncharov wrote:
> ... related "bug", in that of malloc overcommit,...

malloc overcommit is not a bug; it's an important
feature for many applications, for the same
reasons that sparse files are an important feature.
(Many applications can optimize performance by
using an addressable region much larger than the
actual data they need to store.)

If you really need a 4G block of memory, mmap()
it to a file on disk.

Tim Kientzle
Received on Fri Jan 04 2008 - 17:10:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:25 UTC