X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8ED20D1D25F for ; Wed, 4 Feb 2004 16:39:20 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 46640-09 for ; Wed, 4 Feb 2004 12:39:17 -0400 (AST) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 3AD96D1D201 for ; Wed, 4 Feb 2004 12:39:18 -0400 (AST) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id i14GaE3F003026; Wed, 4 Feb 2004 09:36:15 -0700 (MST) Date: Wed, 4 Feb 2004 09:32:11 -0700 (MST) From: "scott.marlowe" To: Iain Cc: Shane Wright , Subject: Re: hanging for 30sec when checkpointing In-Reply-To: <004101c3eabf$dfe9f210$7201a8c0@mst1x5r347kymb> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/41 X-Sequence-Number: 12215 On Wed, 4 Feb 2004, Iain wrote: > If I understand checkpoints correctly, data that is already written to the > WAL (and flushed to disk) is being written to the DB (flushing to disk). > Meanwhile, other writer transactions are continuing to busily write to the > WAL. In which case a disk bandwidth problem (other than kernal config > issues) may be helped by placing the WAL files on a disk (and maybe even > controller) seperate from the DB. Also, running on SCSI drives will be much faster than running on IDE drives if the IDE drives have their caches disabled like they should, since they lie otherwise. Since SCSI disks don't usually lie, and are designed to handle multiple requests in parallel, they are much faster as parallel load increases. If you're writing a lot, you should either have a great number of IDE drives with the write cache turned off, like some of the newer storage devices made of ~100 IDE drives, or you should have SCSI. SCSI's advantage won't be as great as the number of drives approaches infinity. But for 1 to 10 drives my guess is that SCSI is gonna be a clear winner under parallel load.