X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3CFE39FB380 for ; Fri, 8 Sep 2006 11:43:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 02912-03 for ; Fri, 8 Sep 2006 11:43:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id BF0439FB359 for ; Fri, 8 Sep 2006 11:43:19 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from gamma.datatechlabs.com (unknown [83.223.156.5]) by svr4.postgresql.org (Postfix) with ESMTP id EF19E5AF8BD for ; Fri, 8 Sep 2006 14:43:16 +0000 (GMT) Received: from [10.1.1.205] (unknown [83.223.156.4]) by gamma.datatechlabs.com (Postfix) with ESMTP id 62FED1CC11; Fri, 8 Sep 2006 14:34:30 +0000 (UTC) Message-ID: <4501AC5F.5080103@datatechlabs.com> Date: Fri, 08 Sep 2006 17:46:07 +0000 From: alvis User-Agent: Thunderbird 1.5.0.5 (X11/20060831) MIME-Version: 1.0 To: Brian Wipf Cc: pgsql-performance@postgresql.org Subject: Re: Configuring System for Speed References: <8FE8AE4A-43AD-4AE5-82B7-6C77BC4A0248@clickspace.com> In-Reply-To: <8FE8AE4A-43AD-4AE5-82B7-6C77BC4A0248@clickspace.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.103 tagged_above=0 required=5 tests=DATE_IN_FUTURE_03_06, SPF_FAIL X-Spam-Level: *** X-Archive-Number: 200609/48 X-Sequence-Number: 20734 Brian Wipf wrote: > I am in the process of speccing out a new box for a highly utilized > (updates, inserts, selects) 40GB+ database. I'm trying to maximize > performance on a budget, and I would appreciate any feedback on any of > the following. > Perhaps this is off topic, but here is bit from my experience. Using single server for both read (select) and write (insert, update, delete) operations is the way to slow things down. Consider to split query workload into OLTP and OLAP queries . Set up Slony replication and use slave server for read operations only . Buy 1 cheap box (slave) and another more expensive one for master. Keep in mind that DB schema optimization for particular query workload is essential . You just can not get good performance for selects if schema is optimized for inserts and vice versa. > > OS: > The consensus in the list seems to be as long as you have the 2.6 > Linux Kernel, it's really a matter of personal preference. However, > it's hard to have a preference when you're new to the Linux world, > like I am. Red Hat, Fedora Core, Slackware, Suse, Gentoo? I guess my > primary goal is speed, stability, and ease of use. Any advice here, no > matter how minimal, would be appreciated. My answer is FreeBSD6.1. > > Thanks, > > Brian Wipf > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend -- Best Regards, Alvis