pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: xbdelacour@yahoo.com
Cc: Ragnar Kjørstad <postgres@ragnark.vestdata.no>
Cc: pgsql-admin@postgresql.org
Subject: Re: Large database help
Date: Mon, 23 Apr 2001 20:24:16 -0400
Message-ID: <24501.988071856@sss.pgh.pa.us> (raw)
In-Reply-To: <5.0.2.1.0.20010423180546.02ad3a40@pop.mail.yahoo.com>
References: <5.0.2.1.0.20010422184417.01972e70@pop.mail.yahoo.com>
	<5.0.2.1.0.20010422165107.02b46ec0@209.61.155.192>
	<5.0.2.1.0.20010422165107.02b46ec0@209.61.155.192>
	<20010423004646.A4724@vestdata.no>
	<5.0.2.1.0.20010422184417.01972e70@pop.mail.yahoo.com>
	<5.0.2.1.0.20010423180546.02ad3a40@pop.mail.yahoo.com>

xbdelacour@yahoo.com writes:
> I'm no Unix expert, but this would seem to indicate that shmget is 
> successfully allocating 400385024/1024/1024=381MB of shared memory. I don't 
> know enough about how the postgres parent/child/shmem scheme works to know 
> why this is working yet the children only register 12MB of shared memory 
> under top.

On most of the systems I've worked on, top does not seem to count shmem
blocks that a process is attached to in the process' memory usage.  So
that doesn't prove much one way or the other.

I am wondering if your version of 'top' fails to count swapped-out shmem
segments against swap space, or something like that.  That'd be a tad
weird, but it seems very improbable that your machine is not swapping;
I just do not believe top's claim that no swapping is happening.

Anyway, the most direct experiment would be to reduce your -B request to
100MB or so and see how things change...

			regards, tom lane



view thread (17+ messages)  latest in thread

Message-ID: <24501.988071856@sss.pgh.pa.us>
Permalink:  ../24501.988071856@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24501.988071856@sss.pgh.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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, xbdelacour@yahoo.com, postgres@ragnark.vestdata.no
  Subject: Re: Large database help
  In-Reply-To: <24501.988071856@sss.pgh.pa.us>
  References: <5.0.2.1.0.20010422184417.01972e70@pop.mail.yahoo.com> <5.0.2.1.0.20010422165107.02b46ec0@209.61.155.192> <20010423004646.A4724@vestdata.no> <5.0.2.1.0.20010423180546.02ad3a40@pop.mail.yahoo.com> <24501.988071856@sss.pgh.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