From owner-freebsd-database@FreeBSD.ORG Sat Aug 9 14:01:53 2008 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1D501065679 for ; Sat, 9 Aug 2008 14:01:53 +0000 (UTC) (envelope-from Axel.Rau@chaos1.de) Received: from mail1.chaos1.de (Mail1.Chaos1.DE [213.160.12.53]) by mx1.freebsd.org (Postfix) with ESMTP id 6F61F8FC2B for ; Sat, 9 Aug 2008 14:01:53 +0000 (UTC) (envelope-from Axel.Rau@chaos1.de) Received: from mail3.chaos1.de ([213.160.12.56]) by mail1.chaos1.de with esmtp (Exim 4.44) id 1KRp0x-00023v-4z; Sat, 09 Aug 2008 16:01:51 +0200 Received: from 192.168.220.106 (HELO claudius6.in.chaos1.de) by mail3.chaos1.de with esmtp id 1218290509-74140-11; Sat, 9 Aug 2008 14:01:49 +0000 Message-Id: <3B2D25A1-5A0D-4163-A248-E709ADD54CC5@Chaos1.DE> From: Axel Rau To: Ivan Voras In-Reply-To: Content-Type: text/plain; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v926) Date: Sat, 9 Aug 2008 16:01:40 +0200 References: <8A4CC87D-8B69-4120-BB89-F794E4FFD871@Chaos1.DE> X-Mailer: Apple Mail (2.926) Cc: freebsd-database@freebsd.org Subject: Re: PostgreSQL 3.3 on gjournaled fs X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2008 14:01:53 -0000 Am 09.08.2008 um 11:03 schrieb Ivan Voras: > The question is - why do you need gjournal? PostgreSQL (and other > decent databases) does its own journaling (search for WAL), so using > it on a journaled file system doesn't do much. I want to prevent from fsck on large filesystems after outage. > > > If you really want it, it won't hurt you. Journal size needs to be > scaled based on your load. If you have constant writes you need a > larger journal. You need it to hold 20*(write_rate in MB/s) > megabytes. E.g. if your array does 100 MB/s, you need a 2000 MB > journal. This calculation is for default gjournal settings. This is usefull info. > > > You could put the journal on another drive or array for best > performance. (Of course, you could skip gjournal and put the WAL on > the other drive). I have the latter, but intent to put this on gjournal too. Axel ---