Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3FC24474E53 for ; Fri, 1 Nov 2002 13:51:21 -0500 (EST) Received: from local.iboats.com (local.iboats.com [204.246.129.200]) by postgresql.org (Postfix) with SMTP id 855E2474E44 for ; Fri, 1 Nov 2002 13:51:20 -0500 (EST) Received: (qmail 13644 invoked by uid 82); 1 Nov 2002 11:56:05 -0700 Received: from nw@codon.com by local.iboats.com by uid 81 with qmail-scanner-1.14 ( Clear:. Processed in 0.027832 secs); 01 Nov 2002 18:56:05 -0000 Received: from unknown (HELO WEASEL) (204.246.129.210) by 0 with SMTP; 1 Nov 2002 11:56:05 -0700 Message-ID: <002901c281d8$09faddf0$d281f6cc@WEASEL> From: "Steve Wolfe" To: References: <01CBBBF9E9B9D511A11300065B1D23E8E6C411@EXCHTEMP> Subject: Re: DB Performance Date: Fri, 1 Nov 2002 11:53:57 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/27 X-Sequence-Number: 6215 > I need to find a way to increase performance on my server. > We are running apache, mod-perl, sendmail, and postgres on our server. The > machine is a dual 900Mhz processor with 2 gigs of ram, and fast 10k raid > drives. > What else can I do to help performance? > Will a beowulf cluster help to increase performance? Moving the web serving off of the DB machine will probably help, but there's a chance you'll need more horsepower still. There are several things that could be your bottleneck - CPU power, I/O, etc.. When your DB machine is under heavy load, is the CPU utilized completely? If not, then you may very well be running into I/O problems between the memory and the bus. Remember that in a dual P3 setup (this is a P3, right?), you've got a 133 MHz memory and front-side bus, but both processers are fighting for that, giving each one an effective 66 MHz. That's not very much. Moving to an architecture with more bandwidth would probably improve things significantly. In our case, moving from a quad Xeon 700 to a dual Athlon MP2000+ dropped our system loads in *half*. That's attributable not only to the increase in CPU power, but also to the doubling of the FSB/memory bandwidth. I've often wondered how a P4 system, with the 400 MHz or 566 MHz FSB would work as a database server, but haven't had the chance to play with any. After all of the hardware advice, you could also do some profiling of your queries, and try and optimize them better. I've seen very simple optimizations drop query costs by a factor of nearly 100 before - and if those types of queries are being executed very often, that can add up to a very large increase in performance. You could also look into connection pooling. In our environment, which may be similar to yours, we make a very large number of database connections throughout the day. Some are for big, nasty reporting-type queries, many are for small, fairly trivial queries. In rudimentary tests, connection pooling increased our throughput by anywhere from 50% to 600%. steve