pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeremy Buchmann <jeremy@wellsgaming.com>
To: Gill, Jeffrey L <jeffrey.l.gill@intel.com>
Cc: Pgsql Admin (E-mail) <pgsql-admin@postgresql.org>
Subject: Re: How much memory does postgresql require?
Date: Mon, 01 Apr 2002 13:16:38 -0800
Message-ID: <3CA8CE36.5020301@wellsgaming.com> (raw)
References: <01BDB7EEF8D4D3119D95009027AE999511DD2D2A@FMSMSX33>

Gill, Jeffrey L wrote:
> How much memory does postgresql itself require?  How is memory allocated?

Well, this is going to depend on what kind of queries you're doing, how much
data you need sift through, etc.  Databases of any useful size typically
suck a lot of memory.  I think the default shared memory size is 32MB.

> Is memory allocated when client connections are made to specific databases
> and is it released when the connection has ended?

When a connection is made, a process is created which uses memory.  When the
connection ends, the process ends and the memory is released.

> Is ps or top the best way to monitor memory usage?

Whatever you like better, they show the same thing.

> Are there any tuning recommendations for memory?  

Yes.  In the manual.  On the website.

http://www.postgresql.org/   (and then choose a local mirror)

--Jeremy




view thread (2+ messages)

Message-ID: <3CA8CE36.5020301@wellsgaming.com>
Permalink:  ../3CA8CE36.5020301@wellsgaming.com/
Also on:    postgresql.org/message-id/3CA8CE36.5020301@wellsgaming.com

 · 

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-admin@postgresql.org
  Cc: jeremy@wellsgaming.com, jeffrey.l.gill@intel.com
  Subject: Re: How much memory does postgresql require?
  In-Reply-To: <3CA8CE36.5020301@wellsgaming.com>
  References: <01BDB7EEF8D4D3119D95009027AE999511DD2D2A@FMSMSX33> <3CA8CE36.5020301@wellsgaming.com>

* 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