Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id F3AE89FB4E2 for ; Fri, 9 Mar 2007 07:49:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 43901-03 for ; Fri, 9 Mar 2007 07:49:07 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id 58ADA9FB4BD for ; Fri, 9 Mar 2007 07:49:11 -0400 (AST) Received: from server3.office.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 793E873A6D; Fri, 9 Mar 2007 11:42:39 +0000 (GMT) Received: from [192.168.1.36] (dell36.office.archonet.com [192.168.1.36]) by server3.office.archonet.com (Postfix) with ESMTP id 4CD7A27403D; Fri, 9 Mar 2007 11:42:39 +0000 (GMT) Message-ID: <45F1482F.8030901@archonet.com> Date: Fri, 09 Mar 2007 11:42:39 +0000 From: Richard Huxton User-Agent: IceDove 1.5.0.9 (X11/20061220) MIME-Version: 1.0 To: Axel Rau Cc: pgsql-performance@postgresql.org Subject: Re: configuring new server / many slow disks? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.111 tagged_above=0 required=5 tests=AWL, BAYES_40, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200703/190 X-Sequence-Number: 23595 Axel Rau wrote: > Hi performers, > > after following this list for a while, I try to configure a database > server with a limited budget. > Planned are 2 databases > - archiveopteryx - http://www.archiveopteryx.org/sql-schema.html > - ERDB - > https://www.chaos1.de/svn-public/repos/network-tools/ERDB/trunk/database/ERD.pdf > > In peak times I expect something like > - 50 inserts > - 20 updates > - 200 selects > per second. Presumably with multiple clients, not just one extremely busy one? How big do you expect the databases to get? That'll affect the next point. > Current configuration is: > - Tyan S3992G3NR > - 2 x Opteron 2212 (2GHz) > - 8 GB RAM (DDR2-667) Depending on the amount of data you've got to deal with, it might be worth trading disks/cpu for more RAM. > - ARC-1261ML with 1GB and BBU OK, so you can turn write-caching on. That should let you handle more updates than you need. You probably don't need so much RAM on board either, unless each update has a lot of data in it. > - 16 Seagate ST3250820NS (250GB, 7200 rpm, 8GB, with perpendicular > recording) > > 1 raid 1 for OS (FreeBSD) and WAL > 1 raid 0 with 7 raid 1 for tablespace > > Can I expect similar performance as 5 drives at 10k rpm (same costs)? The main question is whether you're going to need to hit the disks often. If you can get to the stage where the working-set of your DBs are all in RAM you could sacrifice some disks. If not, disk I/O dominates. > Should I revert to a single-CPU to prevent from oscillating cache > updates between CPUS? > Anybody experience about NUMA stuff with FreeBSD? Sorry - I know nothing about FreeBSD. That any use - I didn't bother to reply before because I couldn't help with the BSD stuff, and it's always guesswork with these sorts of questions. -- Richard Huxton Archonet Ltd