Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 33BD664FCD5 for ; Thu, 11 Sep 2008 13:45:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 32218-01-5 for ; Thu, 11 Sep 2008 13:45:53 -0300 (ADT) X-Greylist: delayed 00:16:10.527819 by SQLgrey-1.7.6 Received: from viefep12-int.chello.at (viefep18-int.chello.at [213.46.255.22]) by postgresql.org (Postfix) with ESMTP id 09FFE64FF4F for ; Thu, 11 Sep 2008 13:45:52 -0300 (ADT) Received: from edge02.upc.biz ([192.168.13.237]) by viefep14-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20080911162938.DCDO18396.viefep14-int.chello.at@edge02.upc.biz> for ; Thu, 11 Sep 2008 18:29:38 +0200 Received: from [192.168.1.103] ([89.134.230.13]) by edge02.upc.biz with edge id DUVd1a00H0Hzgy102UVed5; Thu, 11 Sep 2008 18:29:38 +0200 X-SourceIP: 89.134.230.13 Message-ID: <48C94770.2090505@shopzeus.com> Date: Thu, 11 Sep 2008 18:29:36 +0200 From: Laszlo Nagy User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Choosing a filesystem 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=2.125 tagged_above=0 required=5 tests=DNS_FROM_RFC_BOGUSMX=2.125 X-Spam-Level: ** X-Archive-Number: 200809/134 X-Sequence-Number: 31447 I'm about to buy a new server. It will be a Xeon system with two processors (4 cores per processor) and 16GB RAM. Two RAID extenders will be attached to an Intel s5000 series motherboard, providing 12 SAS/Serial ATA connectors. The server will run FreeBSD 7.0, PostgreSQL 8, apache, PHP, mail server, dovecot IMAP server and background programs for database maintenance. On our current system, I/O performance for PostgreSQL is the biggest problem, but sometimes all CPUs are at 100%. Number of users using this system: PostgreSQL: 30 connections Apache: 30 connections IMAP server: 15 connections The databases are mostly OLTP, but the background programs are creating historical data and statistic data continuously, and sometimes web site visitors/serach engine robots run searches in bigger tables (with 3million+ records). There is an expert at the company who sells the server, and he recommended that I use SAS disks for the base system at least. I would like to use many SAS disks, but they are just too expensive. So the basic system will reside on a RAID 1 array, created from two SAS disks spinning at 15 000 rpm. I will buy 10 pieces of Seagate Barracuda 320GB SATA (ES 7200) disks for the rest. The expert told me to use RAID 5 but I'm hesitating. I think that RAID 1+0 would be much faster, and I/O performance is what I really need. I would like to put the WAL file on the SAS disks to improve performance, and create one big RAID 1+0 disk for the data directory. But maybe I'm completely wrong. Can you please advise how to create logical partitions? The hardware is capable of handling different types of RAID volumes on the same set of disks. For example, a smaller RAID 0 for indexes and a bigger RAID 5 etc. If you need more information about the database, please ask. :-) Thank you very much, Laszlo