pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Evgeny Shishkin <itparanoia@gmail.com>
To: Tomas Vondra <tv@fuzzy.cz>
Cc: pgsql-performance@postgresql.org
Subject: Re: Two identical systems, radically different performance
Date: Tue, 9 Oct 2012 03:30:31 +0400
Message-ID: <1294E917-64C5-4481-8C7F-F00370A96FA9@gmail.com> (raw)
In-Reply-To: <50736092.8080906@fuzzy.cz>
References: <CAFwQ8rcvw4mSoJ9q+ouONCeB9dg1T9gAUV5J27MpVZrehRHayQ@mail.gmail.com>
	<B5EA62D3-A446-4A1F-BC4E-4B8290FEE1C2@gmail.com>
	<50736092.8080906@fuzzy.cz>


On Oct 9, 2012, at 3:24 AM, Tomas Vondra <tv@fuzzy.cz> wrote:

> On 9.10.2012 00:33, Evgeny Shishkin wrote:
>>> 
>>> pgbench: Old server
>>> 
>>>    pgbench -i -s 100 -U test
>>>    pgbench -U test -c ... -t ...
>>> 
>>>    -c  -t      TPS
>>>     5  20000  3777
>>>    10  10000  2622
>>>    20  5000   3759
>>>    30  3333   5712
>>>    40  2500   5953
>>>    50  2000   6141
>>> 
>>> New server
>>>    -c  -t      TPS
>>>    5   20000  2733
>>>    10  10000  2783
>>>    20  5000   3241
>>>    30  3333   2987
>>>    40  2500   2739
>>>    50  2000   2119
>> 
>> On new server postgresql do not scale at all. Looks like contention. 
> 
> Why? The evidence we've seen so far IMHO suggests a poorly performing
> I/O subsystem. Post a few lines of "vmstat 1" / "iostat -x -k 1"
> collected when the pgbench is running, that might tell us more.
> 

Because 50 clients can push io even with small read ahead. And hear we see nice parabola. Just guessing anyway.

> Try a few very basic I/O tests that are easy to understand rather than
> running bonnie++ which is quite complex. For example try this:
> 
> time sh -c "dd if=/dev/zero of=myfile.tmp bs=8192 count=4194304 && sync"
> 
> dd if=myfile.tmp of=/dev/null bs=8192
> 
> The former measures sequential write speed, the latter measures
> sequential read speed in a very primitive way. Watch vmstat/iostat and
> don't bother running pgbench until you get a reasonable performance on
> both systems.
> 
> 
> Tomas
> 
> 
> -- 
> Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance





view thread (47+ messages)  latest in thread

Message-ID: <1294E917-64C5-4481-8C7F-F00370A96FA9@gmail.com>
Permalink:  ../1294E917-64C5-4481-8C7F-F00370A96FA9@gmail.com/
Also on:    postgresql.org/message-id/1294E917-64C5-4481-8C7F-F00370A96FA9@gmail.com

 · 

reply

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: itparanoia@gmail.com, tv@fuzzy.cz
  Subject: Re: Two identical systems, radically different performance
  In-Reply-To: <1294E917-64C5-4481-8C7F-F00370A96FA9@gmail.com>
  References: <CAFwQ8rcvw4mSoJ9q+ouONCeB9dg1T9gAUV5J27MpVZrehRHayQ@mail.gmail.com> <B5EA62D3-A446-4A1F-BC4E-4B8290FEE1C2@gmail.com> <50736092.8080906@fuzzy.cz> <1294E917-64C5-4481-8C7F-F00370A96FA9@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