Received: from stine.vestdata.no (stine.vestdata.no [195.204.68.10]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3NGFj381882 for ; Mon, 23 Apr 2001 12:15:45 -0400 (EDT) (envelope-from ragnark@stine.vestdata.no) Received: (from ragnark@localhost) by stine.vestdata.no (8.9.3/8.9.3) id SAA06613; Mon, 23 Apr 2001 18:15:18 +0200 Date: Mon, 23 Apr 2001 18:15:17 +0200 From: =?iso-8859-1?Q?Ragnar_Kj=F8rstad?= To: xbdelacour@yahoo.com Cc: pgsql-admin@postgresql.org Subject: Re: Large database help Message-ID: <20010423181517.B4323@vestdata.no> References: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95.5i In-Reply-To: <5.0.2.1.0.20010422184417.01972e70@pop.mail.yahoo.com>; from xbdelacour@yahoo.com on Sun, Apr 22, 2001 at 06:52:26PM -0400 X-Archive-Number: 200104/109 X-Sequence-Number: 1246 On Sun, Apr 22, 2001 at 06:52:26PM -0400, xbdelacour@yahoo.com wrote: > I'm spawning 6 backends to query the data. top lists 6 postmaster processes > working, and therefore the idle time should hit 0% easily. Also, the hard > drive light goes nuts when I'm running this. > > Here is the pertinent information from top. To be clear, I'm NOT spawning a > new postmaster per chunk. These same six processes are alive and kicking > for over 4 minutes. > > I hope the formatting works ok. > > PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND > 2379 mg 13 0 14476 14M 12908 S 0 5.8 2.7 0:01 postmaster > 2380 mg 10 0 14436 14M 12868 S 0 2.9 2.7 0:01 postmaster > 2381 mg 10 0 13572 13M 12012 S 0 2.9 2.6 0:00 postmaster > 2377 mg 10 0 13640 13M 12072 S 0 2.4 2.6 0:01 postmaster > 2378 mg 11 0 14476 14M 12908 S 0 2.4 2.7 0:01 postmaster > 2376 mg 8 0 13556 13M 11984 S 0 1.9 2.6 0:00 postmaster The processes should have ~ 400M shared memory, not ~ 10M, right? stracing (or maybe just running with debugging enabled) should tell you what went wrong. My first guess is that the OS is not able to provide a single 400M block of memory, and postgres falls back to some lower setting. You could also verify this by writing a small program that just allocates different sizes of shared memory, and see what the biggest size you can allocate is. -- Ragnar Kjørstad