Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C01AF63369B for ; Thu, 14 Jan 2010 14:15:43 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 43155-02 for ; Thu, 14 Jan 2010 18:15:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from marajade.localdomain (vcs5.camavision.com [63.228.164.252]) by mail.postgresql.org (Postfix) with ESMTP id 1A51D632601 for ; Thu, 14 Jan 2010 14:15:33 -0400 (AST) Received: from [192.168.10.85] (unknown [192.168.10.85]) (Authenticated sender: andy) by marajade.localdomain (Postfix) with ESMTPA id B708982454; Thu, 14 Jan 2010 12:15:31 -0600 (CST) Message-ID: <4B4F5F45.105@squeakycode.net> Date: Thu, 14 Jan 2010 12:15:33 -0600 From: Andy Colson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: Greg Smith CC: Craig Ringer , pgsql-performance@postgresql.org Subject: Re: a heavy duty operation on an "unused" table kills my server References: <4B4D5698.8040808@emolecules.com> <4B4D61DA.7080008@postnewspapers.com.au> <603c8f071001130823l69804fe3m5c6fbb081c55c265@mail.gmail.com> <4B4EAD76.9030305@postnewspapers.com.au> <4B4F2F00.7070401@squeakycode.net> <4B4F5D70.4020103@2ndquadrant.com> In-Reply-To: <4B4F5D70.4020103@2ndquadrant.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.61 tagged_above=-10 required=5 tests=AWL=-0.611, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201001/295 X-Sequence-Number: 37175 On 1/14/2010 12:07 PM, Greg Smith wrote: > Andy Colson wrote: >> On 1/13/2010 11:36 PM, Craig Ringer wrote: >>> Yes. My 3ware 8500-8 on a Debian Sarge box was so awful that launching a >>> terminal would go from a 1/4 second operation to a 5 minute operation >>> under heavy write load by one writer. I landed up having to modify the >>> driver to partially mitigate the issue, but a single user on the >>> terminal server performing any sort of heavy writing would still >>> absolutely nuke performance. >> >> On a side note, on linux, would using the deadline scheduler resolve >> that? > > I've never seen the deadline scheduler resolve anything. If you're out > of I/O capacity and that's blocking other work, performance is dominated > by the policies of the underlying controller/device caches. Think about > it a minute: disks nowadays can easily have 32MB of buffer in them, > right? And random read/write operations are lucky to clear 2MB/s on > cheap drivers. So once the drive is filled with requests, you can easily > sit there for ten seconds before the scheduler even has any input on > resolving the situation. That's even more true if you've got a larger > controller cache in the mix. > That makes sense. So if there is very little io, or if there is way way too much, then the scheduler really doesn't matter. So there is a slim middle ground where the io is within a small percent of the HD capacity where the scheduler might make a difference? -Andy