Re: POSIX question - Mailing list pgsql-hackers

From Florian Weimer
Subject Re: POSIX question
Date
Msg-id 82ei2oczyz.fsf@mid.bfk.de
Whole thread Raw
In response to Re: POSIX question  (Florian Pflug <fgp@phlo.org>)
List pgsql-hackers
* Florian Pflug:

> I think this breaks with strict overcommit settings
> (i.e. vm.overcommit_memory = 2 on linux). To fix that, you'd need a
> way to tell the kernel (or glibc) to simply reserve a chunk of virtual
> address space for further user. Not sure if there's a API for that...

mmap with PROT_NONE and subsequent update with mprotect does this on
Linux.

(It's not clear to me what this is trying to solve, though.)

--
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: pika buildfarm member failure on isolationCheck tests
Next
From: Florian Pflug
Date:
Subject: Re: POSIX question