]> granicus.if.org Git - postgresql/commit
Use mmap MAP_NOSYNC option to limit shared memory writes
authorBruce Momjian <bruce@momjian.us>
Sun, 22 Mar 2015 02:06:19 +0000 (22:06 -0400)
committerBruce Momjian <bruce@momjian.us>
Sun, 22 Mar 2015 02:06:19 +0000 (22:06 -0400)
commit34afbba84e8fd12bbf905d68d1112f51ed584df9
treea4e66fb4b46745b5996190dc467bdb1b36cc3318
parent9d61b9953c1489cbb458ca70013cf5fca1bb7710
Use mmap MAP_NOSYNC option to limit shared memory writes

mmap() is rarely used for shared memory, but when it is, this option is
useful, particularly on the BSDs.

Patch by Sean Chittenden
src/backend/storage/ipc/dsm_impl.c
src/include/portability/mem.h