mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user