diff options
author | Thomas Munro <tmunro@postgresql.org> | 2022-07-14 22:52:13 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2022-07-14 23:56:28 +1200 |
commit | 7bae3bbf62d63cdd49ae4ca4a851cef0cdbe6ab5 (patch) | |
tree | 943579628b9baf14f82a468cf34c55e47d4891d6 /src/backend/storage/ipc | |
parent | 712704d3539e5ed6807e0b46fddaaf8ed47c2403 (diff) | |
download | postgresql-7bae3bbf62d63cdd49ae4ca4a851cef0cdbe6ab5.tar.gz postgresql-7bae3bbf62d63cdd49ae4ca4a851cef0cdbe6ab5.zip |
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
Diffstat (limited to 'src/backend/storage/ipc')
-rw-r--r-- | src/backend/storage/ipc/dsm_impl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/ipc/dsm_impl.c b/src/backend/storage/ipc/dsm_impl.c index 6f21a757758..258d47bcfac 100644 --- a/src/backend/storage/ipc/dsm_impl.c +++ b/src/backend/storage/ipc/dsm_impl.c @@ -364,7 +364,7 @@ dsm_impl_posix_resize(int fd, off_t size) */ PG_SETMASK(&BlockSig); - pgstat_report_wait_start(WAIT_EVENT_DSM_FILL_ZERO_WRITE); + pgstat_report_wait_start(WAIT_EVENT_DSM_ALLOCATE); #if defined(HAVE_POSIX_FALLOCATE) && defined(__linux__) /* * On Linux, a shm_open fd is backed by a tmpfs file. If we were to use |