Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id BB3F59FB85B for ; Sat, 24 Feb 2007 23:32:34 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 91844-07 for ; Sat, 24 Feb 2007 23:32:31 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by postgresql.org (Postfix) with ESMTP id F1AA09FB7B0 for ; Sat, 24 Feb 2007 23:32:31 -0400 (AST) Received: from [207.253.108.13] by VL-MO-MR004.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0JE000GLT1U5M0F0@VL-MO-MR004.ip.videotron.ca> for pgsql-performance@postgresql.org; Sat, 24 Feb 2007 22:32:30 -0500 (EST) Date: Sat, 24 Feb 2007 22:39:09 -0500 From: Carlos Moreno Subject: Two hard drives --- what to do with them? In-reply-to: <45E0A500.1010707@commandprompt.com> To: pgsql-performance@postgresql.org Message-id: <45E104DD.3080600@mochima.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en References: <45DF3B15.1070609@3times25.net> <200702231330.57014.josh@agliodbs.com> <45DF5DA9.90002@commandprompt.com> <45DF6154.5090205@3times25.net> <1d4e0c10702231425ke37a732y36e241902fe0aa55@mail.gmail.com> <45DF94BF.6050904@3times25.net> <45E0A500.1010707@commandprompt.com> User-Agent: Mozilla Thunderbird 1.0.8-1.1.fc4 (X11/20060501) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=BAYES_50, SPF_HELO_PASS X-Spam-Level: X-Archive-Number: 200702/274 X-Sequence-Number: 23328 Say that I have a dual-core processor (AMD64), with, say, 2GB of memory to run PostgreSQL 8.2.3 on Fedora Core X. I have the option to put two hard disks (SATA2, most likely); I'm wondering what would be the optimal configuration from the point of view of performance. I do have the option to configure it in RAID-0, but I'm sort of reluctant; I think there's the possibility that having two filesystems that can be accessed truly simultaneously can be more beneficial. The question is: does PostgreSQL have separate, independent areas that require storage such that performance would be noticeably boosted if the multiple storage operations could be done simultaneously? Notice that even with RAID-0, the "twice the performance" may turn into an illusion --- if the system requires access from "distant" areas of the disk ("distant" as in many tracks apart), then the back-and-forth travelling of the heads would take precedence over the doubled access speed ... Though maybe it depends on whether accesses are in small chunks (in which case the cache of the hard disks could take precedence). Coming back to the option of two independent disks --- the thing is: if it turns out that two independent disks are a better option, how should I configure the system and the mount points? And how would I configure PostgreSQL to take advantage of that? Advice, anyone? Thanks, Carlos --