Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id F00EC6361FD for ; Fri, 7 May 2010 16:23:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 77791-03 for ; Fri, 7 May 2010 19:22:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mx3.uci.cu (ns3.uci.cu [200.55.140.180]) by mail.postgresql.org (Postfix) with SMTP id 19AB66361FF for ; Fri, 7 May 2010 16:22:57 -0300 (ADT) Received: (qmail 16190 invoked by uid 507); 7 May 2010 19:22:52 -0000 Received: from 10.0.0.183 by ns3.uci.cu (envelope-from , uid 501) with qmail-scanner-2.01st (avp: 5.0.2.0. spamassassin: 3.0.6. perlscan: 2.01st. Clear:RC:1(10.0.0.183):. Processed in 0.023142 secs); 07 May 2010 19:22:52 -0000 Received: from unknown (HELO ucimail2.uci.cu) (10.0.0.183) by 0 with SMTP; 7 May 2010 19:22:52 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by ucimail2.uci.cu (Postfix) with ESMTP id AF12B3DC420; Fri, 7 May 2010 15:23:06 -0400 (CDT) X-Virus-Scanned: amavisd-new at uci.cu Received: from ucimail2.uci.cu ([127.0.0.1]) by localhost (ucimail2.uci.cu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xKxH4PlRBMpv; Fri, 7 May 2010 15:23:06 -0400 (CDT) Received: from [127.0.0.1] (unknown [10.34.17.16]) by ucimail2.uci.cu (Postfix) with ESMTP id 7AAAC3DC41D; Fri, 7 May 2010 15:23:06 -0400 (CDT) Message-ID: <4BE41432.5000203@uci.cu> Date: Fri, 07 May 2010 15:22:58 +0200 From: Marcos Ortiz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; es-ES; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Mark Stosberg CC: pgsql-performance@postgresql.org Subject: Re: debugging handle exhaustion and 15 min/ 5mil row delete References: <20100507093742.20c715b1@summersault.com> <4BE3C4C9.60601@uci.cu> <20100507101031.3442dd08@summersault.com> In-Reply-To: <20100507101031.3442dd08@summersault.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.318 tagged_above=-10 required=5 tests=BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/28 X-Sequence-Number: 38612 El 07/05/2010 16:10, Mark Stosberg escribió: > >> You can use TRUNCATE instead DELETE. TRUNCATE is more efficient and >> faster that DELETE. >> > Thanks for the suggestion. However, TRUNCATE is not compatible with > Slony, and we also have some rows which remain in table. > > >> Now, we need more information about your system to give you a certain >> solution: >> Are you using a RAID controller for you data? >> > Yes. > > >> Do you have separated the xlog directory from the data directory? >> > No. > > >> Which is your Operating System? >> > FreeBSD. > > >> Which is you architecture? >> > i386. > > Thanks for the feedback. I'm going to try batching the deletes for now, > which is approach was worked well for some of our other long-running > deletes. > > Mark > > Have you valorated to use a 64 bits version of FreeBSD for that? The 64 bits OS can help you very much on large databases because yo can use actually all available RAM that you have on the server. Many experts on this list recommende to separate the xlog directory on a RAID 1 configuration and the data directory on RAID 10 to obtain a better performance. The filesystems are very diverse, but I ´ve seen that ZFS is very useful on these cases. Which version of Slony-I are you using? Regards