Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 9FC442E004E for ; Tue, 15 Apr 2008 12:07:45 -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 06333-02 for ; Tue, 15 Apr 2008 12:07:38 -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.184]) by developer.postgresql.org (Postfix) with ESMTP id 908752E004C for ; Tue, 15 Apr 2008 12:07:37 -0300 (ADT) Received: by fk-out-0910.google.com with SMTP id b27so2369778fka.3 for ; Tue, 15 Apr 2008 08:07:36 -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:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=KWHeE+mk6DRj/7La8A7e1rV8VQ1VisxefSBYYua49Q0=; b=GLcefH2PYOYEX60+YEw3ccLXD6di5LCiYYvsN77jy4qqIXNwfAVsYZBQgJ5j8J4ziXbOrDfHuE9UgdwqHvpDVeVNz5UE6O+C+qNs2t4mZxaijcP6mf2tee1nrqyhSSVWAksnMXfQ/V+AwhWuaRRG/0hsnHCOVoA/ygG4ghtJKR0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=CtD1jGePh2wFMTJNw926Y5FvVDt7z9afjAirrXiv89jYPTiQG2jIt8dmcIJopmDTrpmsCX0UDb6UJxxiKayqTCS9v4CpTQ02jfr1oudq+TWfkNe23dUobiptS5fUFvEe82khF6n3AyVg2f84nZjLd4yT3XZfkhlPQSr8tN4ubbE= Received: by 10.82.100.1 with SMTP id x1mr4926459bub.84.1208272055851; Tue, 15 Apr 2008 08:07:35 -0700 (PDT) Received: from ?194.214.173.50? ( [194.214.173.50]) by mx.google.com with ESMTPS id y2sm26498675mug.9.2008.04.15.08.07.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 15 Apr 2008 08:07:34 -0700 (PDT) Message-ID: <4804C4D2.5020603@gmail.com> Date: Tue, 15 Apr 2008 17:08:02 +0200 From: Gaetano Mendola User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: "pgsql-performance@postgresql.org" Subject: Re: shared_buffers performance References: <48032021.90704@gmail.com> In-Reply-To: <48032021.90704@gmail.com> 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/193 X-Sequence-Number: 29686 Gaetano Mendola wrote: > 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. I have complete today the other benchmarks using pgbench in write mode as well, and the following graph resumes the results: http://img440.imageshack.us/my.php?image=totalwbn0.png what I can say here the trend is the opposite seen on the read only mode as increasing the shared_buffers increases the TPS. I still didn't upgrade to 8.2.7 as suggested by Greg Smith because I would like to compare the results obtained till now with the new one (simulations running while I write) using postgres on a "DRBD partition"; sure as soon the current tests terminate I will upgrade postgres. If you have any suggestions on what you would like to see/know, just let me know. Regards Gaetano Mendola