Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 4B5252E003A for ; Mon, 14 Apr 2008 06:12:49 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 81647-05 for ; Mon, 14 Apr 2008 06:12:46 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.186]) by developer.postgresql.org (Postfix) with ESMTP id 20E792E0031 for ; Mon, 14 Apr 2008 06:12:45 -0300 (ADT) Received: by fk-out-0910.google.com with SMTP id b27so1611501fka.3 for ; Mon, 14 Apr 2008 02:12:44 -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:subject:x-enigmail-version:content-type:content-transfer-encoding; bh=Abj5Y7fkbz5XIy+erUBopgwIlU6Zv6BXgQwULD8pHC0=; b=F0u54NPxi7HtIZkxW3JOiIJWA0U8kZPOlX4h9MQeBw3Yhq6qvqr9DSvDhhsHrlS7TGtGonhLQOm9hTBHcs9QGNbUFEo6cwFNymQH2rxHXLvo77KJerkoJgkQnbX7Bu4eDCiOAFVKmeZGkd8gZfLymH97pHF3+u0JrW0K/1UJIWk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:x-enigmail-version:content-type:content-transfer-encoding; b=WWDWx5EPaS0KgGEF7mkwzUWEIoLuvDHhrJAYLkCTZR/mpZaapZtArZDTGUKWPjH6NSamFSoeEeiN4GAbaqgO+5AYx3julnnqzsaLXu3h6a7q4aM2WHri+8oaUYG6B1aOM16vgSNNhWYfsNKUpR7mk4kUR7Bq+txf6BFUhv7VV6w= Received: by 10.82.166.9 with SMTP id o9mr2079979bue.72.1208164364478; Mon, 14 Apr 2008 02:12:44 -0700 (PDT) Received: from ?194.214.173.50? ( [194.214.173.50]) by mx.google.com with ESMTPS id g1sm20144945muf.5.2008.04.14.02.12.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Apr 2008 02:12:43 -0700 (PDT) Message-ID: <48032021.90704@gmail.com> Date: Mon, 14 Apr 2008 11:13:05 +0200 From: Gaetano Mendola User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: "pgsql-performance@postgresql.org" Subject: shared_buffers performance X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 200804/167 X-Sequence-Number: 29660 Hi all, I started to do some performance tests (using pgbench) in order to estimate the DRBD impact on our servers, my plan was to perform some benchmarks without DRBD in order to compare the same benchmark with DRBD. I didn't perform yet the benchmark with DRBD and I'm already facing something I can not explain (I performed at the moment only reads test). I'm using postgres 8.2.3 on Red Hat compiled with GCC 3.4.6. I'm using pgbench with scaling factor with a range [1:500], my server has 4 cores so I'm trying with 16 client and 4000 transaction per client: pgbench -t 4000 -c 16 -S db_perf. I did 3 session using 3 different values of shared_buffers: 64MB, 256MB, 512MB and my server has 2GB. The following graph reports the results: http://img84.imageshack.us/my.php?image=totalid7.png as you can see using 64MB as value for shared_buffers I'm obtaining better results. Is this something expected or I'm looking in the wrong direction? I'm going to perform same tests without using the -S option in pgbench but being a time expensive operation I would like to ear your opinion first. Regards Gaetano Mendola