X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0474F3A3E5A for ; Mon, 8 Nov 2004 17:45:06 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61008-08 for ; Mon, 8 Nov 2004 17:44:52 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id 389FE3A3F4D for ; Mon, 8 Nov 2004 17:44:53 +0000 (GMT) Received: from [63.195.55.98] (account josh@agliodbs.com HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6631340; Mon, 08 Nov 2004 09:46:19 -0800 From: Josh Berkus Organization: Aglio Database Solutions To: pgsql-performance@postgresql.org Subject: Re: Question regarding the file system Date: Mon, 8 Nov 2004 09:44:33 -0800 User-Agent: KMail/1.6.2 Cc: Gabriele Bartolini References: <6.1.2.0.2.20041105220007.03401ec0@box.tin.it> In-Reply-To: <6.1.2.0.2.20041105220007.03401ec0@box.tin.it> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200411080944.33311.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/144 X-Sequence-Number: 9098 Gabriele, > I have been given a dual PIII with 768MB RAM and I am going to install > PostgreSQL on it, for data warehousing reasons. I have also been given four > 160 Ultra SCSI disks (36MB each) with a RAID controller (Adaptec 2100). I > am going to use a RAID5 architecture (this gives me approximately 103 GB of > data) and install a Debian Linux on it: this machine will be dedicated > exclusively to PostgreSQL. FWIW, RAID5 with < 5 disks is probably the worst-performing disk setup for PG with most kinds of DB applications. However, with 4 disks you don't have a lot of other geometries available. If the database will fit on one disk, I might suggest doing RAID 1 for 2 of the disks, and having two single disks, one with the OS and swap, and one with the database log. If you're doing Debian, make sure to get a current version of PG from Debian Unstable. > I was wondering which file system you suggest me: ext3 or reiserfs? These seem to be equivalent in data=writeback mode for most database applications. Use whichever you find easier to install & maintain. > Also, I was thinking of using the 2.6.x kernel which offers a faster thread > support: will PostgreSQL gain anything from it or should I stick with > 2.4.x? PostgreSQL won't gain anything from the thread support (unless you're using a threaded front-end app with thread-safe ecpg). But it will gain from several other improvements in 2.6, especially better scheduling and VM support. Use 2.6. -- Josh Berkus Aglio Database Solutions San Francisco