]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Create a distinct wait event for POSIX DSM allocation.
authorThomas Munro <tmunro@postgresql.org>
Thu, 14 Jul 2022 10:52:13 +0000 (22:52 +1200)
committerThomas Munro <tmunro@postgresql.org>
Thu, 14 Jul 2022 11:56:28 +0000 (23:56 +1200)
commit7bae3bbf62d63cdd49ae4ca4a851cef0cdbe6ab5
tree943579628b9baf14f82a468cf34c55e47d4891d6
parent712704d3539e5ed6807e0b46fddaaf8ed47c2403
Create a distinct wait event for POSIX DSM allocation.

Previously we displayed "DSMFillZeroWrite" while in posix_fallocate(),
because we shared the same wait event for "mmap" and "posix" DSM types.
Let's introduce a new wait event "DSMAllocate", to be more accurate.

Reported-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20220711174518.yldckniicknsxgzl%40awork3.anarazel.de
doc/src/sgml/monitoring.sgml
src/backend/storage/ipc/dsm_impl.c
src/backend/utils/activity/wait_event.c
src/include/utils/wait_event.h