Re: Batching page logging during B-tree build

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Batching page logging during B-tree build
Дата
Msg-id CAH2-WzksjeT2CbCTzeCE5iU5sL9bE8_xcQnmNO4Wn9vYOp=THw@mail.gmail.com
обсуждение исходный текст
Ответ на Batching page logging during B-tree build  ("Andrey M. Borodin" <x4mmm@yandex-team.ru>)
Ответы Re: Batching page logging during B-tree build
Re: Batching page logging during B-tree build
Список pgsql-hackers
On Fri, Sep 18, 2020 at 8:39 AM Andrey M. Borodin <x4mmm@yandex-team.ru> wrote:
> Here is PoC with porting that same routine to B-tree. It allows to build B-trees ~10% faster on my machine.

It doesn't seem to make any difference on my machine, which has an
NVME SSD (a Samsung 970 Pro). This is quite a fast SSD, though the
sync time isn't exceptional. My test case is "reindex index
pgbench_accounts_pkey", with pgbench scale 500. I thought that this
would be a sympathetic case, since it's bottlenecked on writing the
index, with relatively little time spent scanning and sorting in
parallel workers.

Can you provide a test case that is sympathetic towards the patch?

BTW, I noticed that the index build is absurdly bottlenecked on
compressing WAL with wal_compression=on. It's almost 3x slower with
compression turned on!

-- 
Peter Geoghegan



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

Предыдущее
От: Takashi Menjo
Дата:
Сообщение: Re: [PoC] Non-volatile WAL buffer
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Batching page logging during B-tree build