Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 84C9364FCE5 for ; Sun, 14 Sep 2008 23:49:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 83539-03 for ; Sun, 14 Sep 2008 23:49:17 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.182]) by postgresql.org (Postfix) with ESMTP id 1C75A64FCE4 for ; Sun, 14 Sep 2008 23:49:16 -0300 (ADT) Received: by el-out-1112.google.com with SMTP id p32so708190elf.10 for ; Sun, 14 Sep 2008 19:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=UJ/BWoCNeHmz/rfn1GFTxqBs/MwInSQxWtGt5kd/DZE=; b=RRjjnup3HcRkgTsJ5T4SemEITEuFMSNP6WMIMhmimOX9aXEEg4ifyRlqQjqpUvCaU2 xjiA90cOXQhCvwzPL3k7BrDOmsMnbcsfxXX8FlaQF0miAOW0PgXBHpW6ht2VCknulJx9 qN91QvzY0JiF3tG2DomYhybMiKCbZMpVu/KQk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ezANP9GMwu+s0pbtU/IpSYHohc61YUlOtTGj0LdPuFI7oLyTaXHRlHU1gsXM8nMjx5 xALUR7rm8uRGH9fhEV6Fy3G+1m+9HS57Xxy6aOOiGFmfhlXywZwWdg9bCJ/NMjTZPlFx YpA0a+BE+fUd95AqpRn/oeOVR/eiUFMhSu/54= Received: by 10.102.247.4 with SMTP id u4mr5037945muh.94.1221446954497; Sun, 14 Sep 2008 19:49:14 -0700 (PDT) Received: by 10.102.247.18 with HTTP; Sun, 14 Sep 2008 19:49:14 -0700 (PDT) Message-ID: Date: Sun, 14 Sep 2008 22:49:14 -0400 From: "Merlin Moncure" To: david@lang.hm Subject: Re: Choosing a filesystem Cc: "Greg Smith" , "Guillaume Cottenceau" , pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48C94770.2090505@shopzeus.com> <20080911172332.GP6714@it.is.rice.edu> <48C90F58.EE98.0025.0@wicourts.gov> <48C959BD.80307@shopzeus.com> <48C97740.9040404@emolecules.com> <873ak5iwru.fsf@mnc.ch> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/169 X-Sequence-Number: 31482 On Sat, Sep 13, 2008 at 5:26 PM, wrote: > On Fri, 12 Sep 2008, Merlin Moncure wrote: >> >> While this is correct, if heavy writing is sustained, especially on >> large databases, you will eventually outrun the write cache on the >> controller and things will start to degrade towards the slow case. So >> it's fairer to say that caching raid controllers burst up to several >> thousand per second, with a sustained write rate somewhat better than >> write-through but much worse than the burst rate. >> >> How fast things degrade from the burst rate depends on certain >> factors...how big the database is relative to the o/s read cache in >> the controller write cache, and how random the i/o is generally. One >> thing raid controllers are great at is smoothing bursty i/o during >> checkpoints for example. >> >> Unfortunately when you outrun cache on raid controllers the behavior >> is not always very pleasant...in at least one case I've experienced >> (perc 5/i) when the cache fills up the card decides to clear it before >> continuing. This means that if fsync is on, you get unpredictable >> random freezing pauses while the cache is clearing. > > although for postgres the thing that you are doing the fsync on is the WAL > log file. that is a single (usually) contiguous file. As such it is very > efficiant to write large chunks of it. so while you will degrade from the > battery-only mode, the fact that the controller can flush many requests > worth of writes out to the WAL log at once while you fill the cache with > them one at a time is still a significant win. The heap files have to be synced as well during checkpoints, etc. merlin