Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 83C7A6329E4 for ; Thu, 19 Mar 2009 18:45:25 -0300 (ADT) 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 50626-04 for ; Thu, 19 Mar 2009 18:45:18 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mail.postgresql.org (Postfix) with ESMTP id 3CD97634528 for ; Thu, 19 Mar 2009 18:45:22 -0300 (ADT) Received: by yx-out-2324.google.com with SMTP id 8so491661yxm.73 for ; Thu, 19 Mar 2009 14:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=6BI/6HdhLga3QWLm92ZLb9wC2B3G7BWVuptv9XBJQU0=; b=sRFG5YUkhdZMIicIvufsj6hHWK131lu6XSZonuvneRc2RZCbEDpBYvNfLMYSaCvArN +I//XbaGN5MGDqnlbB+HFksUAHhofp6utqFs6C0WopegbyyhBpwsCCQ9N0FwomL0eRlr rWN2XUUHkaoILyOBNc1+Ek2UfJ9TjxUYdzYJk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=DstY5Q6a0ewNGDvzRVe7LXYahmJ59lLCvljWgpWlfDw/hBsDryIyY1fJBryb7U+vPh 0HAk8TAYmurMETWrIdqdtCITvgMu7tBVz+qZNx++TDIl3M9TqSNW/Yg2IYFpgXQTB6F5 ql/k8aJW5zVEubLjk0LCoIIEzIkWxwqQn08K4= MIME-Version: 1.0 Received: by 10.100.110.16 with SMTP id i16mr2899270anc.58.1237499121842; Thu, 19 Mar 2009 14:45:21 -0700 (PDT) In-Reply-To: <49C2B854.4080303@bortal.de> References: <49BE2E84.2040506@bortal.de> <49C2B854.4080303@bortal.de> Date: Thu, 19 Mar 2009 15:45:21 -0600 Message-ID: Subject: Re: Postgres benchmarking with pgbench From: Scott Marlowe To: "ml@bortal.de" Cc: Greg Smith , pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 200903/276 X-Sequence-Number: 33198 On Thu, Mar 19, 2009 at 3:25 PM, ml@bortal.de wrote: > Hi Greg, > > thanks a lot for your hints. I changed my config and changed raid6 to > raid10, but whatever i do, the benchmark breaks down at a scaling factor = 75 > where the database is "only" 1126MB big. > > Here are my benchmark Results (scaling factor, DB size in MB, TPS) using: > =A0pgbench -S -c =A0X =A0-t 1000 -U pgsql -d benchmark -h MYHOST -t 1000 is WAY too short to judge, you'll be seeing a lot of caching effects and no WAL flushing. Try a setting that gets you a run of at least 5 or 10 minutes, preferably a half an hour for more realistic results. Also what is -c X ??? Are you following the -c with the same scaling factor that you used to create the test db? And why the select only (-S)??? > 1 19 8600 > 5 79 8743 > 10 154 8774 > 20 303 8479 > 30 453 8775 > 40 602 8093 > 50 752 6334 > 75 1126 3881 > 150 2247 2297 > 200 2994 701 > 250 3742 656 > 300 4489 596 > 400 5984 552 > 500 7479 513 > > I have no idea if this is any good for a QuardCore Intel(R) Xeon(R) CPU > =A0E5320 =A0@ 1.86GHz with 4GB Ram and 6 SATA disk (7200rpm) in raid 10. > > Here is my config (maybe with some odd setting): > http://pastebin.com/m5d7f5717 > > I played around with: > - max_connections > - shared_buffers You've got this set to 1/2 your memory (2G). I've found that for transactional work it's almost always better to set this much lower and let the OS do the caching, especially once your db is too big to fit in memory. Try setting lowering it and see what happens to your performance envelope. > - work_mem > - maintenance_work_mem > - checkpoint_segments > - effective_cache_size This is set to 3G, but with shared_mem set to 2G, you can't cache more than 2G, because the OS will just be caching the same stuff as pgsql, or less. No biggie. Just not realistic > ..but whatever i do, the graph looks the same. Any hints or tips what my > config should look like? Or are these results even okay? Maybe i am drivi= ng > myself crazy for nothing? Could be. What do top and vmstat say during your test run?