Re: Posix Shared Mem patch
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org, Robert Haas <robertmhaas@gmail.com>, Josh Berkus <josh@agliodbs.com>
Date: 2012-07-03T15:41:09Z
Lists: pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes: > Btw, RhodiumToad/Andrew Gierth on irc talked about a reason why sysv shared > memory might be advantageous on some platforms. E.g. on freebsd there is the > kern.ipc.shm_use_phys setting which prevents paging out shared memory and also > seems to make tlb translation cheaper. There does not seem to exist an > alternative for anonymous mmap. Isn't that mlock()? > So maybe we should make that a config option? I'd really rather not. If we're going to go in this direction, we should just go there. regards, tom lane