Received: from smtp017.mail.yahoo.com (smtp017.mail.yahoo.com [216.136.174.114]) by postgresql.org (8.11.3/8.11.1) with SMTP id f3MMME308612 for ; Sun, 22 Apr 2001 18:22:14 -0400 (EDT) (envelope-from xbdelacour@yahoo.com) Received: from adsl-151-203-18-126.bostma.adsl.bellatlantic.net (HELO slim.yahoo.com) (151.203.18.126) by smtp.mail.vip.sc5.yahoo.com with SMTP; 22 Apr 2001 22:22:12 -0000 X-Apparently-From: Message-Id: <5.0.2.1.0.20010422181303.02b1e9b0@pop.mail.yahoo.com> X-Sender: xbdelacour@pop.mail.yahoo.com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Sun, 22 Apr 2001 18:17:56 -0400 To: Tom Lane From: xbdelacour@yahoo.com Subject: Re: Large database help Cc: pgsql-admin@postgresql.org In-Reply-To: <6598.987977323@sss.pgh.pa.us> References: <5.0.2.1.0.20010422165107.02b46ec0@209.61.155.192> <5.0.2.1.0.20010422165107.02b46ec0@209.61.155.192> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200104/99 X-Sequence-Number: 1236 pgsql/PG_VERSION says "7.0". postmaster --version and psql --version don't tell me anything. If the machine is completely dedicated to this database, under what conditions would the kernel make such decisions? Where can I find more information on this? Are there other users with similar requirements? Thanks for your reply. -Xavier At 06:08 PM 4/22/01 -0400, Tom Lane wrote: >xbdelacour@yahoo.com writes: > > Hi everyone, I'm more or less new to PostgreSQL and am trying to setup a > > rather large database for a data analysis application. Data is collected > > and dropped into a single table, which will become ~20GB. Analysis happens > > on a Windows client (over a network) that queries the data in chunks > across > > parallel connections. I'm running the DB on a dual gig p3 w/ 512 memory > > under Redhat 6 (.0 I think). > > > I am setting 'echo 402653184 >/proc/sys/kernel/shmmax', which is being > > reflected in top. I also specify '-B 48000' when starting postmaster. > >Hm. 384M shared memory request on a 512M machine. I'll bet that the >kernel is deciding you don't need all that stuff in RAM, and is swapping >out chunks of the shared memory region to make room for processes and >its own disk buffering activity. Try a more reasonable -B setting, like >maybe a quarter of your physical RAM, max. There's no percentage in -B >large enough to risk getting swapped. Moreover, any physical RAM that >does happen to be free will be exploited by the kernel for disk >buffering at its level, so you aren't really saving any I/O by >increasing Postgres' internal buffering. > >BTW, what Postgres version are you using? > > regards, tom lane > >---------------------------(end of broadcast)--------------------------- >TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com