pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Thuc Nguyen Canh <thucnguyencanh@gmail.com>
Cc: Forums postgresql <pgsql-general@postgresql.org>
Subject: Re: Query error: could not resize shared memory segment
Date: Wed, 03 Jan 2018 00:34:04 -0500
Message-ID: <15383.1514957644@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEepm=2wXSfmS601nUVCftJKRPF=PRX+DYZxMeT8M2WwLSanVQ@mail.gmail.com>
References: <CAG903PqpLHekJXmSOCf4e4vjKxrpnq8rOdmxcdKqWYfvrsw38Q@mail.gmail.com>
	<CAG903PrStVFsFbh02MrANe0M6wgFGwf_mzVcd+ZeL-D57QOggQ@mail.gmail.com>
	<CAEepm=3xyL+c4GnWpc-55gsfcD0iO5yimOLhXOJb11JDM-LRnQ@mail.gmail.com>
	<CAG903PqTWgfuizAxktPW3cRTF14KfSp2xdD_KpGYsONhY3Oftw@mail.gmail.com>
	<CAEepm=1t4zh3=-2LpirBcc3XQOfUVFwHmp+Z+AuV4T+xPyJttg@mail.gmail.com>
	<1108.1514954390@sss.pgh.pa.us>
	<CAEepm=2+rSCHjoY4bYD6taiSp-yUexJ6xHBLacCddH-Dk3sx=w@mail.gmail.com>
	<CAG903PrCxmFhBxaiBBrfAe8FL3EJP7oa4ruU1DDQbYrJJOc4Hw@mail.gmail.com>
	<CAEepm=2wXSfmS601nUVCftJKRPF=PRX+DYZxMeT8M2WwLSanVQ@mail.gmail.com>

Thomas Munro <thomas.munro@enterprisedb.com> writes:
> On Wed, Jan 3, 2018 at 6:13 PM, Thuc Nguyen Canh
> <thucnguyencanh@gmail.com> wrote:
>> mount | grep /dev/shm
>> => shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)

> Bingo.  Somehow your container tech is limiting shared memory.

If this is a common setup, maybe we're going to need a new section
under or near

https://www.postgresql.org/docs/current/static/kernel-resources.html#SYSVIPC

It's pretty annoying to have sweated blood to get out from under the
kernel's chosen-at-random SysV IPC limits, only to run into container
tmpfs limits that seem equally chosen with the aid of a dartboard.

			regards, tom lane




view thread (14+ messages)  latest in thread

Message-ID: <15383.1514957644@sss.pgh.pa.us>
Permalink:  ../15383.1514957644@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15383.1514957644@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@enterprisedb.com, thucnguyencanh@gmail.com
  Subject: Re: Query error: could not resize shared memory segment
  In-Reply-To: <15383.1514957644@sss.pgh.pa.us>
  References: <CAG903PqpLHekJXmSOCf4e4vjKxrpnq8rOdmxcdKqWYfvrsw38Q@mail.gmail.com> <CAG903PrStVFsFbh02MrANe0M6wgFGwf_mzVcd+ZeL-D57QOggQ@mail.gmail.com> <CAEepm=3xyL+c4GnWpc-55gsfcD0iO5yimOLhXOJb11JDM-LRnQ@mail.gmail.com> <CAG903PqTWgfuizAxktPW3cRTF14KfSp2xdD_KpGYsONhY3Oftw@mail.gmail.com> <CAEepm=1t4zh3=-2LpirBcc3XQOfUVFwHmp+Z+AuV4T+xPyJttg@mail.gmail.com> <1108.1514954390@sss.pgh.pa.us> <CAEepm=2+rSCHjoY4bYD6taiSp-yUexJ6xHBLacCddH-Dk3sx=w@mail.gmail.com> <CAG903PrCxmFhBxaiBBrfAe8FL3EJP7oa4ruU1DDQbYrJJOc4Hw@mail.gmail.com> <CAEepm=2wXSfmS601nUVCftJKRPF=PRX+DYZxMeT8M2WwLSanVQ@mail.gmail.com> <15383.1514957644@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox