On Fri, Aug 12, 2016 at 1:55 PM, amul sul <sul_a...@yahoo.co.in> wrote: > No segfault during dsm_create, mmap returns the memory address which is > inaccessible. > > Let me see how can I disable kernel overcommit behaviour, but IMHO, we > should prevent ourselves from crashing, shouldn't we?
Overcommit can be caught at dsm_create time with an mlock call (note, that MAP_LOCKED isn't the same). Even a transient lock (mlock + munlock) could prevent sigbus due to overcommit. -- Sent via pgsql-hackers mailing list (email@example.com) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers