Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 34BE5633274 for ; Tue, 3 Aug 2010 12:35:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 23323-05 for ; Tue, 3 Aug 2010 15:35:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ey0-f174.google.com (mail-ey0-f174.google.com [209.85.215.174]) by mail.postgresql.org (Postfix) with ESMTP id D1189632DFF for ; Tue, 3 Aug 2010 12:35:49 -0300 (ADT) Received: by eya25 with SMTP id 25so1666443eya.19 for ; Tue, 03 Aug 2010 08:35:48 -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 :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=eKiclEYnS+uZDmYJaW84iQhjghiD5dLCwA5SheDptJ4=; b=oQKS5k/N2PeyOwrahFDf8rn/ydcba+Yip8Y1WLLYtxzMOCeANTQLqA2xYwVTcZ2Ks8 gyMZThhIOtdR5Htl99xL2zxzLZ5rFJ5kRlqqXiqMmNu9WIc8EcEM1ceLgMQJb80daBas LVocH1AiOSp9tsVoiDhFKYAHMYav3QzPMY6ac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=kSTjX8y1A9JLtwEt6NNOXV/31TbuVSMyFmy9s1EsNNBQEhvzB4W6yJe2bQMtCGW+wd xx0AFmnj9rL5YzdNe74tRsKUvdKp9AOyK2sa3Bd6IArvvIB7RqRuDvM/qZzsFi6e/nPP yxOnYhdEytcDJ1z6W1cUNfDnkiaOobbpu6Ngw= Received: by 10.213.33.72 with SMTP id g8mr3759430ebd.10.1280849748899; Tue, 03 Aug 2010 08:35:48 -0700 (PDT) Received: from [0.0.0.0] (5357DA75.cable.casema.nl [83.87.218.117]) by mx.google.com with ESMTPS id v8sm10969046eeh.8.2010.08.03.08.35.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 03 Aug 2010 08:35:47 -0700 (PDT) Message-ID: <4C5837C0.6060704@gmail.com> Date: Tue, 03 Aug 2010 17:37:36 +0200 From: Yeb Havinga User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Hannu Krosing CC: Scott Marlowe , Greg Smith , Josh Berkus , pgsql-performance@postgresql.org Subject: Re: Testing Sandforce SSD References: <4C4A9452.9070100@gmail.com> <4C4B1F84.5030306@2ndquadrant.com> <4C4B4B41.7000800@2ndquadrant.com> <4C52E957.8020304@gmail.com> <4C56DD8B.6050303@gmail.com> <4C5744F5.3020805@agliodbs.com> <4C575DCF.3050700@2ndquadrant.com> <4C57D5FD.9040306@gmail.com> <1280826522.14579.66.camel@hvost> <4C57FB5D.1020006@gmail.com> In-Reply-To: <4C57FB5D.1020006@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201008/30 X-Sequence-Number: 39873 Yeb Havinga wrote: > Hannu Krosing wrote: >> Did it fit in shared_buffers, or system cache ? >> > Database was ~5GB, server has 16GB, shared buffers was set to 1920MB. >> I first noticed this several years ago, when doing a COPY to a large >> table with indexes took noticably longer (2-3 times longer) when the >> indexes were in system cache than when they were in shared_buffers. >> > I read this as a hint: try increasing shared_buffers. I'll redo the > pgbench run with increased shared_buffers. Shared buffers raised from 1920MB to 3520MB: pgbench -v -l -c 20 -M prepared -T 1800 test starting vacuum...end. starting vacuum pgbench_accounts...end. transaction type: TPC-B (sort of) scaling factor: 300 query mode: prepared number of clients: 20 duration: 1800 s number of transactions actually processed: 12971714 tps = 7206.244065 (including connections establishing) tps = 7206.349947 (excluding connections establishing) :-)