Re: POSIX question

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: POSIX question
Date: 2011-06-20 15:36:42
Message-ID: 201106201736.42585.andres@anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Monday, June 20, 2011 17:11:14 Greg Stark wrote:
> On Mon, Jun 20, 2011 at 4:01 PM, Florian Pflug <fgp(at)phlo(dot)org> wrote:
> > Are you sure? Isn't mmap()ing /dev/null a way to *allocate* memory?
> >
> > Or at least this is what I always thought glibc does when you malloc()
>
> It mmaps /dev/zero actually.
As the nitpicking has already started: Afair its just passing -1 as fd and
uses the MAP_ANONYMOUS flag argument ;)

Andres

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2011-06-20 16:14:17 Re: [WIP] cache estimates, cache access cost
Previous Message Pavel Stehule 2011-06-20 15:35:55 Re: Fwd: Keywords in pg_hba.conf should be field-specific