Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by postgresql.org (8.11.3/8.11.1) with SMTP id f3MLHT391507 for ; Sun, 22 Apr 2001 17:17:29 -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 21:17:23 -0000 X-Apparently-From: Message-Id: <5.0.2.1.0.20010422165107.02b46ec0@209.61.155.192> X-Sender: xbdelacour@pop.mail.yahoo.com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Sun, 22 Apr 2001 17:12:20 -0400 To: pgsql-admin@postgresql.org From: xbdelacour@yahoo.com Subject: Large database help Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200104/97 X-Sequence-Number: 1234 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). A single index exists that gives the best case for lookups, and the table is clustered against this index. My problem is this: during the query process the hard drive is being tagged excessively, while the cpu's are idling at 50% (numbers from Linux command: top), and this is bringing down the speed pretty dramatically since the process is waiting on the hard disk. How do I get the database to be completely resident in memory such that selects don't cause hdd activity? How do I pin how exactly why the hard disk is being accessed? I am setting 'echo 402653184 >/proc/sys/kernel/shmmax', which is being reflected in top. I also specify '-B 48000' when starting postmaster. My test DB is only 86MB, so in theory the disk has no business being active once the data is read into memory unless I perform a write operation.. What am I missing? I appreciate any help anyone could give me. -Xavier _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com