Re: Adding basic NUMA awareness

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: Adding basic NUMA awareness
Дата
Msg-id 5bc6d309-61fe-4d8b-9e1f-a2961564a559@vondra.me
обсуждение исходный текст
Ответ на Re: Adding basic NUMA awareness  (Tomas Vondra <tomas@vondra.me>)
Ответы Re: Adding basic NUMA awareness
Список pgsql-hackers
Hi,

Here's an updated version of the patch series.

It fixes a bunch of issues in pg_buffercache_pages.c - duplicate attnums
and a incorrect array length.

The main change is in 0006 - it sets the default allocation policy for
shmem to interleaving, before doing the explicit partitioning for shared
buffers. It does it by calling numa_set_membind before the mmap(), and
then numa_interleave_memory() on the allocated shmem. It does this to
allow using MAP_POPULATE - but that's commented out by default.

This does seem to solve the SIGBUS failures for me. I still think there
might be a small chance of hitting that, because of locating an extra
"boundary" page on one of the nodes. But it should be solvable by
reserving a couple more pages.

Jakub, what do you think?


regards

-- 
Tomas Vondra

Вложения

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