Received: from relayer.zd.com (relayer.zd.com [155.40.130.200]) by hub.org (8.9.3/8.9.3) with ESMTP id BAA71580 for ; Sun, 30 Jan 2000 01:03:23 -0500 (EST) (envelope-from Timothy_Dyck@zd.com) Received: from mailer.zd.com ([155.40.32.223]) by relayer.zd.com (PMDF V5.2-32 #37280) with SMTP id <0FP400CL3WSOY5@relayer.zd.com> for pgsql-admin@postgresql.org; Sun, 30 Jan 2000 01:02:48 -0500 (EST) Received: by mailer.zd.com(Lotus SMTP MTA v4.6.2 (693.3 8-11-1998)) id 85256876.00214A08 ; Sun, 30 Jan 2000 01:03:36 -0500 Date: Sun, 30 Jan 2000 00:56:39 -0500 From: Timothy Dyck Subject: request for tuning suggestions from PC Week Labs To: pgsql-admin@postgresql.org Message-id: <85256876.00214826.00@mailer.zd.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline X-Lotus-FromDomain: ZIFF-DAVIS@INET Hi all, I'm the database analyst for PC Week Labs and am comparing PostgreSQL with Inprise's InterBase (which will be open sourced later this year). As part of this project, I'm running a benchmark with a mix of OLTP and DSS queries in a set of various mixes and at a variety of user loads (up to 100 concurrent users). I'd like to get your tuning suggestions on the engine to make sure I am not missing anything. My test server is a departmental-type machine with two Pentium III 450MHz CPUs with 512MB of RAM running RedHat Linux 6.1. PGDATA is pointing to a RAID 5 array and the database is ~40 MB of data before indexing, and so will fit entirely into the db cache. The OS swapfile is not used at all. I will be using ODBC to query the database. 1. The biggest performance item I've seen in looking through the mailing lists is the fsync option. I want to leave this enabled as I don't think a transactional database should ever lose data. My understanding is that with it on PG checkpoints after every commit. Is there a way to let the log grow to a certain size before checkpointing? When fsync is off, how is data loss possible? 2. How do I move the log to a different spindle from the disks the database data is on? 3. Any other suggestions are much appreciated. Regards, Tim Dyck Senior Analyst, PC Week Labs timothy_dyck@zd.com