X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9BDB89DCC70 for ; Wed, 30 Nov 2005 09:56:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18799-03 for ; Wed, 30 Nov 2005 09:56:50 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtpauth01.mail.atl.earthlink.net (smtpauth01.mail.atl.earthlink.net [209.86.89.61]) by postgresql.org (Postfix) with ESMTP id AD1BD9DCC3E for ; Wed, 30 Nov 2005 09:56:45 -0400 (AST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=CnMSTS2LnkEbMpI5cN+7igqKMCJXQGpzPzV7uWy5OLsDYfl1m09mjl/7PoS9J6u8; h=Received:Message-Id:X-Mailer:Date:To:From:Subject:In-Reply-To:References:Mime-Version:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP; Received: from [70.22.193.119] (helo=ron-6d52adff2a6.earthlink.net) by smtpauth01.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1EhSRx-0000Nh-78; Wed, 30 Nov 2005 08:56:45 -0500 Message-Id: <6.2.5.6.0.20051130081636.01da1d48@earthlink.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.5.6 Date: Wed, 30 Nov 2005 08:56:41 -0500 To: "Franklin Haut" , From: Ron Subject: Re: pg_dump slow In-Reply-To: <000201c5f5b2$e0dc87a0$8500a8c0@FRANKLIN> References: <000201c5f5b2$e0dc87a0$8500a8c0@FRANKLIN> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-ELNK-Trace: acd68a6551193be5d780f4a490ca69563f9fea00a6dd62bc48be752cdf4fcce139ec5dd9f6f6a343350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 70.22.193.119 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.359 required=5 tests=[AWL=-0.120, DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.359 X-Spam-Level: X-Archive-Number: 200511/554 X-Sequence-Number: 15811 At 08:35 AM 11/30/2005, Franklin Haut wrote: >Hi > >i=B4m using PostgreSQL on windows 2000, the pg_dump take around 50 minutes >to do backup of 200Mb data ( with no compression, and 15Mb with >compression), Compression is reducing the data to 15/200=3D 3/40=3D 7.5% of original size? >but in windows XP does not pass of 40 seconds... :( You mean that 40 secs in pg_dump under Win XP=20 crashes, and therefore you have a WinXP problem? Or do you mean that pg_dump takes 40 secs to=20 complete under WinXP and 50 minutes under W2K and=20 therefore you have a W2K problem? In fact, either 15MB/40secs=3D 375KBps or=20 200MB/40secs=3D 5MBps is _slow_, so there's a problem under either platform! >This happens with 8.1 and version 8.0, somebody=20 >passed for the same situation? > >It will be that a configuration in the priorities of the exists >processes ? in Windows XP the processing of schemes goes 70% and >constant accesses to the HardDisk, while that in windows 2000 it does >not pass of 3%. Assuming Win XP completes the dump, the first thing to do is *don't use W2K* M$ has stopped supporting it in anything but absolutely minimum fashion= anyway. _If_ you are going to use an M$ OS you should be using WinXP. (You want to pay licensing fees for your OS, but=20 you are using free DB SW? Huh? If you are=20 trying to save $$$, use Open Source SW like Linux=20 or *BSD. pg will perform better under it, and it's cheaper!) Assuming that for some reason you can't/won't=20 migrate to a non-M$ OS, the next problem is the=20 slow HD IO you are getting under WinXP. What is the HW involved here? Particularly the=20 HD subsystem and the IO bus(es) it is plugged into? For some perspective, Raw HD average IO rates for=20 even reasonably modern 7200rpm HD's is in the=20 ~50MBps per HD range. Top of the line 15Krpm=20 SCSI and FC HD's have raw average IO rates of=20 just under 80MBps per HD as of this post. Given that most DB's are not on 1 HD (if you DB=20 _is_ on only 1 HD, change that ASAP before you=20 lose data...), for anything other than a 2 HD=20 RAID 1 set I'd expect raw HD average IO rates to be at least 100MBps. If you are getting >=3D 100MBps of average HD IO,=20 you should be getting > 5MBps during pg_dump, and certainly > 375MBps! Ron