Re: pgbench duration option

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgbench duration option
Дата
Msg-id 7796.1218596413@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgbench duration option  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Ответы Re: pgbench duration option  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Re: pgbench duration option  (Greg Smith <gsmith@gregsmith.com>)
Список pgsql-hackers
ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> writes:
> Here is a patch to add duration option (-T) to pgbench instead of
> number of transactions (-t). -t and -T are mutually exclusive.

This seems like a fairly bad idea, because it introduces a
gettimeofday() call per transaction.  On lots of (admittedly mostly
low-end) hardware, that will impose enough overhead to seriously
affect the results.  Worse, the overhead is imposed on the client
side, which is already the bottleneck for pgbench tests.

If this were worth doing (which IMHO it isn't) the appropriate
implementation would be to set up a timer signal handler that would set
a flag to shut down the test after the appropriate amount of time.
        regards, tom lane


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

Предыдущее
От: Euler Taveira de Oliveira
Дата:
Сообщение: Re: temporary statistics option at initdb time
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Planner question