Received: from ns1.airdata.de (ns1.airdata.de [212.107.160.2]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9VA3IP04001 for ; Wed, 31 Oct 2001 05:03:23 -0500 (EST) (envelope-from wiecha@airdata.ag) Received: from stgsrv03.airdata.de (fwuser@mail.airdata.de [212.107.160.5]) by ns1.airdata.de (8.9.3/8.9.3) with ESMTP id KAA25571 for ; Wed, 31 Oct 2001 10:57:02 -0500 Received: by STGSRV03 with Internet Mail Service (5.5.2653.19) id ; Wed, 31 Oct 2001 10:57:12 +0100 Message-ID: <65E2B280271ED51183740002B32F229A3F040C@STGSRV03> From: "Wiecha, Martin" To: "'pgsql-admin@postgresql.org'" Subject: performnce problem Date: Wed, 31 Oct 2001 10:57:05 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Archive-Number: 200110/268 X-Sequence-Number: 2512 Hi everybody, I'm having a serious performance problem. We're using PostgreSQL (7.1.3) for data collection (appr. 3 000 000 new records per day). Every night all records older than 3 days are deleted, after that a vacuumdb is done. The table has about 7-8 M records and is about 2,5GB size on the file-system. I noticed that the time consumed by vaccum increases from about 5 mins to 11 mins now within the last 5 weeks which I thought this happens because of increased tables over the last weeks on the system. The whole system worked well for several weeks now. Starting this night everything slowed down. Simple SQL commands (Select date(dt),sum(bytes) from table where source between 'xxx.xxx.xxx.xxx' and 'xxx.xxx.xxx.xxx' and dt >= '10-30-2001' and dt < '10-31-2001 00:00:00' group by date(dt)) which are done within a few seconds before take minutes now to compute... There were no changes on the system the last times. The file-system has no errors. PostgreSQL is installed on a RedHat 7.1 with Kernel 2.4.2-2. The hardware is a PIII-500 with 256MB RAM and 10GB HD (IDE). Does anyone has a idea what the reason could be and how it could be fixed? Thanks in advance! Martin