Re: [HACKERS] pgbench: faster version of tpcb-like transaction

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] pgbench: faster version of tpcb-like transaction
Дата
Msg-id 24631.1503803762@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HACKERS] pgbench: faster version of tpcb-like transaction  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: [HACKERS] pgbench: faster version of tpcb-like transaction  (Fabien COELHO <coelho@cri.ensmp.fr>)
Re: [HACKERS] pgbench: faster version of tpcb-like transaction  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Re: [HACKERS] pgbench: faster version of tpcb-like transaction  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
Jeff Janes <jeff.janes@gmail.com> writes:
> If all the data is in memory and you have a system with fast fsyncs (or are
> running with fsync off, or unlogged tables, or synchronous_commit off),
> then the big bottleneck in pgbench is the amount of back and forth between
> the pgbench program and the backend.  There are 7 commands per transaction.

Yeah ...

> It is easy to package 5 of those commands into a single PL/pgSQL function,
> with the other two being implicit via the standard auto-commit behavior
> when explicit transactions are not opened.  The attached patch does that,
> under the name tpcb-func.  I first named it tpcb-like-func, but one builtin
> name can't be a prefix or another so that won't work.

I dunno, it seems like this proposal involves jacking up the test case
and driving a completely different one underneath.  There is no reason
to consider that you've improved the benchmark results --- you've just
substituted a different benchmark, one with no historical basis, and
not a lot of field justification either.

> Wanting to measure IPC overhead is a valid thing to do, but
> certainly isn't the most common thing people want to do with pgbench.

I think that's nonsense.  Measuring how fast PG can do client interactions
is EXACTLY what this is about.  Certainly, pushing SQL operations into
server-side functions is a great way to reduce network overhead, but it
has nothing to do with what we choose as a benchmark.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] More replication race conditions
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: [HACKERS] pgbench: faster version of tpcb-like transaction