Re: GIN predicate locking slows down valgrind isolationtests tremendously

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема Re: GIN predicate locking slows down valgrind isolationtests tremendously
Дата
Msg-id CAPpHfdsvqs7mjYGWdBzXPBhZdo0Xe07b+p6_L6bS+xEbN2WvNg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: GIN predicate locking slows down valgrind isolationtests tremendously  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Список pgsql-hackers
On Tue, Dec 25, 2018 at 1:25 AM Alexander Korotkov
<a.korotkov@postgrespro.ru> wrote:
> On Fri, Dec 21, 2018 at 1:50 AM Alexander Korotkov
> <a.korotkov@postgrespro.ru> wrote:
> > чт, 20 дек. 2018 г., 2:22 Andres Freund andres@anarazel.de:
> >> On 2018-12-03 16:07:40 -0800, Andres Freund wrote:
> >> > As far as I can tell that increase comes laregely from the new GIN
> >> > tests.  Could one of you please look at keeping the test time increase
> >> > to something more reasonable?
> >>
> >> Ping?
> >>
> >> It's also one of the slowest tests outside of valgrind...
> >
> > I'm going to take a look on that.
>
> BTW, patch for reducing isolation testing for gin predicate locking is
> attached.  Could anybody check its execution time with valgrind (and
> compare with execution time of previous test suite)?

I've managed to run it myself.  I've added following lines to
src/test/isolation/Makefile to make it handy running these tests under
valgrind.

ifdef VALGRIND
override with_temp_install += PGCTLTIMEOUT=600 \
    valgrind --leak-check=no --gen-suppressions=all \
    --suppressions=../../tools/valgrind.supp --time-stamp=yes \
    --log-file=pid-%p.log --trace-children=yes \
    --trace-children-skip=*/initdb
endif

With only predicate-gin in isolation_schedule patched version takes
less than minute.

real 0m53.866s
user 0m9.472s
sys 0m1.706s

I also run unpatched version of predicate-gin test, but cancel that
after 30 minutes of waiting.  So, it appears that patch solves the
problem.  I'm going to commit it if no objections.

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Allow CLUSTER, VACUUM FULL and REINDEX to change tablespace onthe fly
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: random() (was Re: New GUC to sample log queries)