From: Guillaume Smet <guillaume.smet@gmail.com>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Cc: Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Subject: Re: More shared buffers causes lower performances
Date: Wed, 26 Dec 2007 18:20:15 +0100
Message-ID: <1d4e0c10712260920g7a440fam4363a886f60fa700@mail.gmail.com> (raw)
In-Reply-To: <1d4e0c10712260741w1f141fd6x2f482143d526ad48@mail.gmail.com>
References: <1d4e0c10712251606q6f9503deye3da4b68c51bf5e@mail.gmail.com>
<1198668065.4221.288.camel@ebony.site>
<1d4e0c10712260741w1f141fd6x2f482143d526ad48@mail.gmail.com>
On Dec 26, 2007 4:41 PM, Guillaume Smet <guillaume.smet@gmail.com> wrote:
> Then I decided to perform read-only tests using -S option (pgbench -S
> -s 100 -c 16 -t 30000 -U postgres bench). And still the same
> behaviour:
> shared_buffers=64MB : 20k tps
> shared_buffers=1024MB : 8k tps
Some more information. If I strace the backends during the test, the
test is faster with shared_buffers=1024MB and I have less system calls
(less read and less lseek).
A quick cut | uniq | sort gives me:
With 64MB:
12548 semop
160039 sendto
160056 recvfrom
294289 read
613338 lseek
With 1024MB:
11396 semop
129947 read
160039 sendto
160056 recvfrom
449584 lseek
--
Guillaume
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: guillaume.smet@gmail.com, simon@2ndquadrant.com, stefan@kaltenbrunner.cc
Subject: Re: More shared buffers causes lower performances
In-Reply-To: <1d4e0c10712260920g7a440fam4363a886f60fa700@mail.gmail.com>
References: <1d4e0c10712251606q6f9503deye3da4b68c51bf5e@mail.gmail.com> <1198668065.4221.288.camel@ebony.site> <1d4e0c10712260741w1f141fd6x2f482143d526ad48@mail.gmail.com> <1d4e0c10712260920g7a440fam4363a886f60fa700@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox