pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: scott.marlowe <scott.marlowe@ihs.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Greg Copeland <greg@CopelandConsulting.Net>
Cc: PostgresSQL Hackers Mailing List <pgsql-hackers@postgresql.org>
Subject: Re: Changing the default configuration (was Re:
Date: Wed, 12 Feb 2003 21:36:45 -0500 (EST)
Message-ID: <200302130236.h1D2ajh17527@candle.pha.pa.us> (raw)
In-Reply-To: <GNELIHDDFBOCMGBFGEFOIEIGCFAA.chriskl@familyhealth.com.au>

Christopher Kings-Lynne wrote:
> > Seriously, I know Linux can change these on the fly, and I'm pretty sure 
> > Solaris can too.  I haven't played with BSD for a while so can't speak 
> > about that.  Anyone else know?
> 
> You cannot change SHMMAX on the fly on FreeBSD.

And part of the reason is because some/most BSD's map the page tables
into physical RAM (kernel space) rather than use some shared page table
mechanism.  This is good because it prevents the shared memory from
being swapped out (performance disaster).

It doesn't actually allocate RAM unless someone needs it, but it does
lock the shared memory into a specific fixed location for all processes.

The more flexible approach is to make shared memory act just like the
memory of a user process, and have other user processes share those page
tables, but that adds extra overhead and can cause the memory to behave
just like user memory (swapable).

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (65+ messages)  latest in thread

Message-ID: <200302130236.h1D2ajh17527@candle.pha.pa.us>
Permalink:  ../200302130236.h1D2ajh17527@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200302130236.h1D2ajh17527@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: pgman@candle.pha.pa.us, chriskl@familyhealth.com.au, scott.marlowe@ihs.com, tgl@sss.pgh.pa.us, greg@CopelandConsulting.Net, pgsql-hackers@postgresql.org
  Subject: Re: Changing the default configuration (was Re:
  In-Reply-To: <200302130236.h1D2ajh17527@candle.pha.pa.us>
  References: <GNELIHDDFBOCMGBFGEFOIEIGCFAA.chriskl@familyhealth.com.au> <200302130236.h1D2ajh17527@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox