X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6EE1E52C52 for ; Mon, 25 Jul 2005 19:49:00 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17584-01 for ; Mon, 25 Jul 2005 22:48:49 +0000 (GMT) Received: from mail.Mi8.com (d01gw01.mi8.com [63.240.6.47]) by svr1.postgresql.org (Postfix) with ESMTP id DA85652C4F for ; Mon, 25 Jul 2005 19:48:47 -0300 (ADT) Received: from 172.16.1.110 by mail.Mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D1)); Mon, 25 Jul 2005 18:48:42 -0400 X-Server-Uuid: 241911D6-425B-44B9-A073-E3FE0F8FC774 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.175]) by D01SMTP01.Mi8.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 25 Jul 2005 18:48:42 -0400 Received: from 67.103.45.218 ([67.103.45.218]) by MI8NYCMAIL06.Mi8.com ( [172.16.1.219]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.104]) with Microsoft Exchange Server HTTP-DAV ; Mon, 25 Jul 2005 18:48:41 -0500 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Mon, 25 Jul 2005 15:48:39 -0700 Subject: Re: "Vacuum Full Analyze" taking so long From: "Luke Lonergan" To: "Tomeh, Husam" , pgsql-performance@postgresql.org Message-ID: In-Reply-To: MIME-Version: 1.0 X-OriginalArrivalTime: 25 Jul 2005 22:48:42.0462 (UTC) FILETIME=[019E7FE0:01C5916B] X-WSS-ID: 6EFBB3C02B46200164-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.574 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, RCVD_NUMERIC_HELO X-Spam-Level: * X-Archive-Number: 200507/376 X-Sequence-Number: 13617 Vacuum full takes an exclusive lock on the tables it runs against, so if you have anything else reading the table while you are trying to run it, the vacuum full will wait, possibly forever until it can get the lock. What does the system load look like while you are running this? What does vmstat 1 show you? Is there load on the system other than the database? Do you really need to run vacuum full instead of vacuum? - Luke On 7/25/05 2:30 PM, "Tomeh, Husam" wrote: > > I have an 8.02 postgresql database with about 180 GB in size, running on > 2.6 RedHat kernel with 32 GB of RAM and 2 CPUs. I'm running the vacuum > full analyze command, and has been running for at least two consecutive > days with no other processes running (it's an offline loading server). I > tweaked the maintenanace_mem to its max (2 GB) with work_mem of 8M. I > have no issues with my checkpoints. I can still I/O activities against > the physical files of the "property" table and its two indexes (primary > key and r index). The property files are about 128GB and indexes are > about 15 GB. I have run the same maintenance job on a different box > (staging) with identical hardware config (except with 64 GB instead of > 32) and took less than 12 hours. Any clue or tip is really > appreciated. > > Also read a comment by Tom Lane, that terminating the process should be > crash-safe if I had to. > > Thanks, >