Report time spent in posix_fallocate() as a wait event.

Thomas Munro <tmunro@postgresql.org>

Commit: ef02fb15a35ab7bd74a79afebf35572ed82b5e9f
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2020-01-31T04:29:41Z
Releases: 13.0
Report time spent in posix_fallocate() as a wait event.

When allocating DSM segments with posix_fallocate() on Linux (see commit
899bd785), report this activity as a wait event exactly as we would if
we were using file-backed DSM rather than shm_open()-backed DSM.

Author: Thomas Munro
Discussion: https://postgr.es/m/CA%2BhUKGKCSh4GARZrJrQZwqs5SYp0xDMRr9Bvb%2BHQzJKvRgL6ZA%40mail.gmail.com

Files

PathChange+/−
src/backend/storage/ipc/dsm_impl.c modified +2 −0

Discussion