Re: Pre-allocation of shared memory ...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
Cc: "Kurt Roeckx" <Q(at)ping(dot)be>, "Matthew Kirkwood" <matthew(at)hairy(dot)beasts(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Pre-allocation of shared memory ...
Date: 2003-06-14 21:16:56
Message-ID: 9343.1055625416@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Andrew Dunstan" <andrew(at)dunslane(dot)net> writes:
> I *know* the latest RH kernel docs *say* they have paranoid mode that
> supposedly guarantees against OOM - it was me that pointed that out
> originally :-). I just checked on the latest sources (today it's RH8, kernel
> 2.4.20-18.8) to be doubly sure, and can't see the patches.

I think you must be looking in the wrong place. Red Hat's kernels have
included the mode 2/3 overcommit logic since RHL 7.3, according to
what I can find. (Don't forget Alan Cox works for Red Hat ;-).)

But it is true that it's not in Linus' tree yet. This may be because
there are still some loose ends. The copy of the overcommit document
in my RHL 8.0 system lists some ToDo items down at the bottom:

To Do
-----
o Account ptrace pages (this is hard)
o Disable MAP_NORESERVE in mode 2/3
o Account for shared anonymous mappings properly
- right now we account them per instance

I have not installed RHL 9 yet --- is the ToDo list any shorter there?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-06-14 21:38:29 Re: Pre-allocation of shared memory ...
Previous Message Andrew Dunstan 2003-06-14 20:49:10 enumeration type?