Received: from sss.pgh.pa.us (sss.pgh.pa.us [216.151.103.158]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3O0OQ337672 for ; Mon, 23 Apr 2001 20:24:26 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.3/8.11.3) with ESMTP id f3O0OGR24504; Mon, 23 Apr 2001 20:24:16 -0400 (EDT) To: xbdelacour@yahoo.com cc: Ragnar =?iso-8859-1?Q?Kj=F8rstad?= , pgsql-admin@postgresql.org Subject: Re: Large database help 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> Comments: In-reply-to xbdelacour@yahoo.com message dated "Mon, 23 Apr 2001 18:13:38 -0400" Date: Mon, 23 Apr 2001 20:24:16 -0400 Message-ID: <24501.988071856@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200104/115 X-Sequence-Number: 1252 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