Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 29A5A63464F for ; Thu, 19 Mar 2009 20:28:34 -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 75624-06 for ; Thu, 19 Mar 2009 20:28:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from brmea-mail-4.sun.com (brmea-mail-4.Sun.COM [192.18.98.36]) by mail.postgresql.org (Postfix) with ESMTP id 50A9563299E for ; Thu, 19 Mar 2009 20:28:32 -0300 (ADT) Received: from fe-amer-10.sun.com ([192.18.109.80]) by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n2JNSV8L020621 for ; Thu, 19 Mar 2009 23:28:31 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; format=flowed; charset=ISO-8859-1 Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7.0-5.01 64bit (built Feb 19 2009)) id <0KGS004000G1QT00@mail-amer.sun.com> for pgsql-performance@postgresql.org; Thu, 19 Mar 2009 17:28:31 -0600 (MDT) Received: from [192.168.1.3] ([unknown] [96.237.55.23]) by mail-amer.sun.com (Sun Java(tm) System Messaging Server 7.0-5.01 64bit (built Feb 19 2009)) with ESMTPSA id <0KGS00H0Q17IYK20@mail-amer.sun.com>; Thu, 19 Mar 2009 17:28:30 -0600 (MDT) Date: Thu, 19 Mar 2009 19:28:19 -0400 From: "Jignesh K. Shah" Subject: Re: Postgres benchmarking with pgbench In-reply-to: <49C2B854.4080303@bortal.de> To: "ml@bortal.de" Cc: Greg Smith , pgsql-performance@postgresql.org Message-id: <49C2D513.6090002@sun.com> References: <49BE2E84.2040506@bortal.de> <49C2B854.4080303@bortal.de> User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200903/280 X-Sequence-Number: 33202 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: > pgbench -S -c X -t 1000 -U pgsql -d benchmark -h MYHOST > > 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 E5320 @ 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 > - work_mem > - maintenance_work_mem > - checkpoint_segments > - effective_cache_size > > ..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 > driving myself crazy for nothing? > Are you running the pgbench client from a different system? Did you check if the pgbench client itself is bottlenecked or not. I have seen before the client of pgbench is severely limited on the load it can drive and process. -Jignesh