Re: write barrier question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/8/19 Samuel Gendler <sgendler@xxxxxxxxxxxxxxxx>:
> On Wed, Aug 18, 2010 at 1:25 PM, Yeb Havinga <yebhavinga@xxxxxxxxx> wrote:
>> Samuel Gendler wrote:
>>>
>>> When running pgbench on a db which fits easily into RAM (10% of RAM =
>>> -s 380), I see transaction counts a little less than 5K.  When I go to
>>> 90% of RAM (-s 3420), transaction rate dropped to around 1000 ( at a
>>> fairly wide range of concurrencies).  At that point, I decided to
>>> investigate the performance impact of write barriers.

I have just tested a similar hardware (32GB RAM), I have around 15k
tps with a database wich fit in RAM (around 22GB DB).
The request and schema are very simple.

My advice is too use a pgbouncer on a separate server as well as any
benchmark. For very heavy bench I use 'tsung' benchmark tool.
Also some of your postgresql.conf params looks strange : shared_buffer
>8GB is probably working less well.

You may want to fine tune OS for Dirty cache (and dirty write) and/or
increase bgwriter agressivity.

It may happen that your overall performance are better with a mount -o
sync option ! (depend of your write usage, see iostat -x 2, especially
the Wtps, during checkpoints) Perc6i handle well the write cache and
you can use 'nobarrier' mount option too but mounting the filesystem
'sync' is not that bad (because the perc6 will buffer).

>>
>> At 90% of RAM you're probable reading data as well, not only writing.
>> Watching iostat -xk 1 or vmstat 1 during a test should confirm this. To find
>> the maximum database size that fits comfortably in RAM you could try out
>> http://github.com/gregs1104/pgbench-tools - my experience with it is that it
>> takes less than 10 minutes to setup and run and after some time you get
>> rewarded with nice pictures! :-)
>
> Yes.  I've intentionally sized it at 90% precisely so that I am
> reading as well as writing, which is what an actual production
> environment will resemble.
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
>



-- 
Cédric Villemain               2ndQuadrant
http://2ndQuadrant.fr/ ;    PostgreSQL : Expertise, Formation et Support

-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux