Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id 38F53475A93 for ; Fri, 1 Mar 2002 15:48:58 -0500 (EST) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id PAA11354 for ; Fri, 1 Mar 2002 15:48:58 -0500 X-Authentication-Warning: shire.ontko.com: Host bilbo.ontko.com [199.164.165.101] claimed to be nick Reply-To: From: "Nick Fankhauser" To: "pgsql-admin" Subject: Database is slow, vacuum hangs Date: Fri, 1 Mar 2002 15:44:39 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Archive-Number: 200203/16 X-Sequence-Number: 3551 Hi- This morning, my database suddenly got very slow. I had been testing an import process, so I had loaded, deleted, and reloaded about 140MB of data several times. After the last reload, I noticed that the database was very slow. Queries that normally executed in seconds didn't return after several minutes. I don't know if they ever would have returned results, as I cancelled after about 5 minutes, so the database might have been completely locked. I decided to delete all of the data, do a vacuum, and then reload one more time. The deletes were slow, but worked, so the tables are all empty now. I started the vacuum and let it run for 4 hours while I did other work & it never came back. During this time, I noticed that two postmaster processes were constantly running- each taking up almost exactly half of the CPU time. There was no disk activity. After I canceled the vacuum, the two postmaster processes remained and continued to use all of the CPU time. (they're still there.) postgres.log doesn't contain any new messages. I guess the obvious next step is to restart postgres, but I don't want to blow away any evidence. Can anyone suggest tests I should do to learn what happened before trying a restart? I'm running PGSQL 7.1.3 on Debian Linux 2.4.14 Thanks- -Nick -------------------------------------------------------------------------- Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/