Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id E831DB5DBD6 for ; Wed, 17 Aug 2011 16:44:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 37041-05 for ; Wed, 17 Aug 2011 19:44:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from elizabeth.gransy.com (elizabeth.gransy.com [89.187.132.199]) by mail.postgresql.org (Postfix) with ESMTP id 84DDFB5D803 for ; Wed, 17 Aug 2011 16:44:12 -0300 (ADT) Received: from sq.gransy.com (localhost [127.0.0.1]) by elizabeth.gransy.com (Postfix) with ESMTP id BB25A15E40C4; Wed, 17 Aug 2011 21:44:10 +0200 (CEST) Received: from 78.45.133.255 (SquirrelMail authenticated user tv@fuzzy.cz) by sq.gransy.com with HTTP; Wed, 17 Aug 2011 21:44:10 +0200 Message-ID: <25ef8274681f922758ff3462b30d9be0.squirrel@sq.gransy.com> In-Reply-To: References: <959BD2FA-0312-458B-BD5F-ED358D2C47ED@darkstatic.com> <01b1e09ae6df37cd32543df0dee95bfa.squirrel@sq.gransy.com> Date: Wed, 17 Aug 2011 21:44:10 +0200 Subject: Re: Tuning Tips for a new Server From: "Tomas Vondra" To: "Ogden" Cc: "Scott Marlowe" , "Tomas Vondra" , pgsql-performance@postgresql.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201108/202 X-Sequence-Number: 44649 On 17 Srpen 2011, 21:22, Ogden wrote: >> This is a very important point. I've found on most machines with >> hardware caching RAID and 8 or fewer 15k SCSI drives it's just as >> fast to put it all on one big RAID-10 and if necessary partition it to >> put the pg_xlog on its own file system. After that depending on the >> workload you might need a LOT of drives in the pg_xlog dir or just a >> pair. Under normal ops many dbs will use only a tiny % of a >> dedicated pg_xlog. Then something like a site indexer starts to run, >> and writing heavily to the db, and the usage shoots to 100% and it's >> the bottleneck. > > I suppose this is my confusion. Or rather I am curious about this. On my > current production database the pg_xlog directory is 8Gb (our total > database is 200Gb). Does this warrant a totally separate setup (and > hardware) than PGDATA? This is not about database size, it's about the workload - the way you're using your database. Even a small database may produce a lot of WAL segments, if the workload is write-heavy. So it's impossible to recommend something except to try that on your own. Tomas