Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by postgresql.org (8.11.3/8.11.1) with SMTP id f3O0ac340970 for ; Mon, 23 Apr 2001 20:36:38 -0400 (EDT) (envelope-from xbdelacour@yahoo.com) Received: from adsl-151-203-9-200.bostma.adsl.bellatlantic.net (HELO slim.yahoo.com) (151.203.9.200) by smtp.mail.vip.sc5.yahoo.com with SMTP; 24 Apr 2001 00:36:34 -0000 X-Apparently-From: Message-Id: <5.0.2.1.0.20010423202641.019e1d90@pop.mail.yahoo.com> X-Sender: xbdelacour@pop.mail.yahoo.com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Mon, 23 Apr 2001 20:32:40 -0400 To: pgsql-admin@postgresql.org From: xbdelacour@yahoo.com Subject: Re: Large database help In-Reply-To: <24501.988071856@sss.pgh.pa.us> References: <5.0.2.1.0.20010423180546.02ad3a40@pop.mail.yahoo.com> <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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200104/116 X-Sequence-Number: 1253 By my reading, the machine is definitely swapping, and not writing to a log file (unless its writing obscene amounts of data to the log, which presumably the default settings won't do). postmaster -i -D /home/mg/pgsql -B 100 produces almost identical results in terms of performance and disk activity. top shows that each child only has 2.2MB shared instead of 12MB. What other program/means do I have to tell if the machine is swapping? Can I get a reading as to the amount of data that is actually in physical memory within a process? -Xavier At 08:24 PM 4/23/01 -0400, Tom Lane wrote: >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 _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com