RE: Shared Memory: How to use SYSV rather than MMAP ?

Поиск
Список
Период
Сортировка
От REIX, Tony
Тема RE: Shared Memory: How to use SYSV rather than MMAP ?
Дата
Msg-id HE1PR0202MB281266E404A8F6847B9AB95F86DA0@HE1PR0202MB2812.eurprd02.prod.outlook.com
обсуждение исходный текст
Ответ на Re: Shared Memory: How to use SYSV rather than MMAP ?  (Thomas Munro <thomas.munro@enterprisedb.com>)
Ответы RE: Shared Memory: How to use SYSV rather than MMAP ?  ("REIX, Tony" <tony.reix@atos.net>)
Список pgsql-hackers

Hi Thomas, Andres,


I still have to reread/study in depth the discussion in this thread in order to understand all these information. However, we've already got a very good performance improvement of pgbench on AIX 7.2 / Power9 with that change: + ~38% in best case. See below for the details.


This +38% improvement has been measured by comparison with a PostgreSQL v11.1 code which was built with: XLC -O2 + power9-tuning, plus some changes about inlining for AIX and some fixes dealing with issues with XLC and PostgreSQL #ifdef. Maybe GCC provides better results, we'll know later.


Once we are done with this performance analysis campaign, I'll have to submit patches.

Meanwhile, if anyone has ideas about where the choices made for PostgreSQL on Linux may have an impact to the performance on AIX, I'm very interested!


Regards,


Tony



Changes in PostgreSQL11.1 sources for SYSV large pages (64K) support :
  • Main shared memory segment in sysv_shmem.c
removal of #define USE_ANONYMOUS_SHMEM
  • Dynamic shared memory implementations in src/include/storage/dsm_impl.h :
#define USE_DSM_POSIX
//      #define DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE              DSM_IMPL_POSIX

#define DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE              DSM_IMPL_SYSV
#endif
 
·         Changes in PostgreSQL11.1 XCOFF binary with ledit :
  • ldedit -btextpsize=64K -bdatapsize=64K -bstackpsize=64K /opt/freeware/bin/postgres_64
  • Env variable LDR_CNTRL=SHMPSIZE=64K


Cordialement,

Tony Reix

tony.reix@atos.net

ATOS / Bull SAS
ATOS Expert
IBM Coop Architect & Technical Leader
Office : +33 (0) 4 76 29 72 67
1 rue de Provence - 38432 Échirolles - France

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

Предыдущее
От: Christoph Berg
Дата:
Сообщение: Re: pgsql: Remove WITH OIDS support, change oid catalog columnvisibility.
Следующее
От: "Iwata, Aya"
Дата:
Сообщение: RE: libpq debug log