Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 64D5F9FA4DD for ; Tue, 8 May 2007 13:58:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 51601-04 for ; Tue, 8 May 2007 13:58:45 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.237]) by postgresql.org (Postfix) with ESMTP id 03C279FA4CB for ; Tue, 8 May 2007 13:58:51 -0300 (ADT) Received: by wr-out-0506.google.com with SMTP id 70so1926947wra for ; Tue, 08 May 2007 09:58:51 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:disposition-notification-to:date:from:user-agent:mime-version:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=c58NUG6V5ufafvwO2vaKlz7X6mgbDy8yvA0Ty7VRge83O+0APaioUxO2TXxURqKjHdVPgCtMPD79/VHOpC8FLRvV7BdcPxLIPTPq86NlKvzIXnDpcG+e36/1z3AoW/A3EyHBoIjvk5wTJQwkdtTW5bJx5JUnr6E6/0oRnB7UewQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:disposition-notification-to:date:from:user-agent:mime-version:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=mzv/Zi5N09Q822VZMyrYyoLgEcpOYsAzoF6MRpsVUmxZPcR3Hi9kkIy12t3/XjlXPWMz64mUDZDIstOjIS/hx2WafSYA8fsP3pL/ddIMuW5L/OPS/xzU0222k3UUPt+hHKptlSr+vP11kMKzpR6cTfbnjvmwWgeQh8xZ/flbEPI= Received: by 10.115.93.16 with SMTP id v16mr2661974wal.1178643530350; Tue, 08 May 2007 09:58:50 -0700 (PDT) Received: from ?222.71.188.109? ( [222.71.188.109]) by mx.google.com with ESMTP id n22sm782968pof.2007.05.08.09.58.40; Tue, 08 May 2007 09:58:42 -0700 (PDT) Message-ID: <4640AC33.8010207@gmail.com> Date: Wed, 09 May 2007 00:58:27 +0800 From: =?UTF-8?B?5p2O5b2mIElhbiBMaQ==?= User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 CC: PostgreSQL Performance Subject: Re: Best OS for Postgres 8.2 References: <1178574927.533849.90730@e51g2000hsg.googlegroups.com> <463FFF76.5070108@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/130 X-Sequence-Number: 24520 I am back with the chatlog and seem it's the Transparent compression that helps a lot, very interesting... here is the log of #postgresql on Apr. 21th around 13:20 GMT (snipped) : why is that, when hard disk i/o is my bottleneck ? well i have 10 disks in a raid1+0 config it's sata2 yes i run solaris express, whose kernel says SunOS running 'SunOS solatis2 5.11 snv_61 i86pc i386 i86pc well, the thing is, i'm using zfs yeah, it was the reason for me to install solaris in the first place and a benchmark for my system comparing debian linux with solaris express showed a +- 18% performance gain when switching to solaris so i'm happy (note: the benchmarking was not scientifically grounded at all, it was just around 50 million stored procedure calls which do select/update/inserts on my database which would simulate my specific case) but the killer thing was to enable compression on zfs that reduced the hard disk i/o with a factor 3, which was the probable cause of the performance increase oh, at the moment it's factor 2.23 still, it's funny to see that postgresql says that my database is using around 41GB's, while only taking up 18GB on the hard disk === end of log === david@lang.hm wrote: > On Tue, 8 May 2007, �~]~N彦 Ian Li wrote: > >> In #postgresql on freenode, somebody ever mentioned that ZFS from >> Solaris helps a lot to the performance of pgsql, so dose anyone have >> information about that? > > the filesystem you use will affect the performance of postgres > significantly. I've heard a lot of claims for ZFS, unfortunantly many of > them from people who have prooven that they didn't know what they were > talking about by the end of their first or second e-mails. > > much of the hype for ZFS is it's volume management capabilities and > admin tools. Linux has most (if not all) of the volume management > capabilities, it just seperates them from the filesystems so that any > filesystem can use them, and as a result you use one tool to setup your > RAID, one to setup snapshots, and a third to format your filesystems > where ZFS does this in one userspace tool. > > once you seperate the volume management piece out, the actual > performance question is a lot harder to answer. there are a lot of > people who say that it's far faster then the alternate filesystems on > Solaris, but I haven't seen any good comparisons between it and Linux > filesystems. > > On Linux you have the choice of several filesystems, and the perfomance > will vary wildly depending on your workload. I personally tend to favor > ext2 (for small filesystems where the application is ensuring data > integrity) or XFS (for large filesystems) > > I personally don't trust reiserfs, jfs seems to be a tools for > transitioning from AIX more then anything else, and ext3 seems to have > all the scaling issues of ext2 plus the overhead (and bottleneck) of > journaling. > > one issue with journaling filesystems, if you journal the data as well > as the metadata you end up with a very reliable setup, however it means > that all your data needs to be written twice, oncce to the journal, and > once to the final location. the write to the journal can be slightly > faster then a normal write to the final location (the journal is a > sequential write to an existing file), however the need to write twice > can effectivly cut your disk I/O bandwidth in half when doing heavy > writes. worse, when you end up writing mor ethen will fit in the journal > (128M is the max for ext3) the entire system then needs to stall while > the journal gets cleared to make space for the additional writes. > > if you don't journal your data then you avoid the problems above, but in > a crash you may find that you lost data, even though the filesystem is > 'intact' according to fsck. > > David Lang > Regards Ian