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

From: Vadim Goncharov <vadimnuclight_at_tpu.ru>
Date: Sat, 05 Jan 2008 00:32:04 +0600
04.01.08 _at_ 23:36 Tim Kientzle wrote:

> 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.)

What applications? How do they use this "feature"?

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

That's not a solution for end-user. Why just not have space reserving, as  
other operating systems can guarantee to their applications that stable  
availability of memory?

-- 
WBR, Vadim Goncharov
Received on Fri Jan 04 2008 - 17:32:41 UTC

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