Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 87C0B9FBE05 for ; Wed, 9 May 2007 21:29:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 36870-09 for ; Wed, 9 May 2007 21:29:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id C16449FBDD0 for ; Wed, 9 May 2007 21:29:36 -0300 (ADT) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l4A0TaxC014407; Wed, 9 May 2007 17:29:37 -0700 Message-ID: <4642677F.80209@commandprompt.com> Date: Wed, 09 May 2007 17:29:51 -0700 From: "Joshua D. Drake" User-Agent: Thunderbird 1.5.0.10 (X11/20070403) MIME-Version: 1.0 To: CAJ CAJ CC: Ralph Mason , pgsql-performance@postgresql.org Subject: Re: Performance Woes References: <5132236932388612597@unknownmsgid> <467669b30705091726j31fce52fp2f49649be675d811@mail.gmail.com> In-Reply-To: <467669b30705091726j31fce52fp2f49649be675d811@mail.gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Wed, 09 May 2007 17:29:37 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/212 X-Sequence-Number: 24602 > 2007-05-09 03:07:50.083 GMT 1146975740: LOCATION: BasicOpenFile, > fd.c:471 > > 2007-05-09 03:07:50.091 GMT 0: LOG: 00000: duration: 12.362 ms > > 2007-05-09 03:07:50.091 GMT 0: LOCATION: exec_simple_query, > postgres.c:1090 > > > > So we decreased the max_files_per_process to 800. This took care > of the error **BUT** about quadrupled the IO wait that is happening > on the machine. It went from a peek of about 50% to peeks of over > 200% (4 processor machines, 4 gigs ram, raid). The load on the > machine remained constant. > Sounds to me like you just need to up the total amount of open files allowed by the operating system. Joshua D. Drake -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate PostgreSQL Replication: http://www.commandprompt.com/products/