Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4C5A947594C for ; Fri, 16 Aug 2002 21:22:38 -0400 (EDT) Received: from www.cdrbill.com (unknown [68.101.90.90]) by postgresql.org (Postfix) with ESMTP id A8905475932 for ; Fri, 16 Aug 2002 21:22:37 -0400 (EDT) Received: from jaguar.cdrbill.com (lynx [192.168.0.6]) by www.cdrbill.com (8.11.6/8.11.6) with ESMTP id g7H1MRq02011; Fri, 16 Aug 2002 21:22:28 -0400 Content-Type: text/plain; charset="iso-8859-1" From: Chris Ruprecht To: Curt Sampson Subject: Re: ProstGreSQL on RAID Question Date: Fri, 16 Aug 2002 21:31:10 -0400 User-Agent: KMail/1.4.1 References: In-Reply-To: Cc: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200208162131.10504.chrup@earthlink.net> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/202 X-Sequence-Number: 5317 Thanks Curt - yes, I have the log files on a different drive all together. I was thinking more along the lines of OS block size (4 KB) vs. Postgres bl= ock=20 size (8 KB by default) vs. RAID block size (32 KB). Is there anything I=20 should change? I would like to experiment but a 20 GB DB takes some time to backup and=20 restore, so I'd like to tap into other's experiences. Best regards, Chris On Sun August 11 2002 23:30, you wrote: > On Mon, 12 Aug 2002, Chris Ruprecht wrote: > > I have set up a RAID-5 (soft RAID) arrray on my Linux machine, > > consisting of 5 18 GB UltraSCSI-2 (80 MB/sec) drives. Everythinng is > > working but I would like to know, where I can tweak this for optimum > > performance. > > If you do a lot of inserts, move the log file ($PGDATA/pg_xlog) > off the RAID-5 and on to a separate RAID-1 (mirrored) pair. This will > separate the buffered random writes to the data files and the unbuffered, > sequential writes to the log. > > cjs