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: Tue, 02 Jan 2018 23:39:50 -0500
Message-ID: <1108.1514954390@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEepm=1t4zh3=-2LpirBcc3XQOfUVFwHmp+Z+AuV4T+xPyJttg@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>

Thomas Munro <thomas.munro@enterprisedb.com> writes:
> So you have 16GB of RAM and here we're failing to posix_fallocate()
> 50MB (actually we can't tell if it's the ftruncate() or
> posix_fallocate() call that failed, but the latter seems more likely
> since the former just creates a big hole in the underlying tmpfs
> file).  Can you share the query plan (EXPLAIN SELECT ...)?

I wonder if OP is running with a tmpfs size setting that's less than
the traditional Linux default of half of physical RAM size.

			regards, tom lane




view thread (14+ messages)  latest in thread

Message-ID: <1108.1514954390@sss.pgh.pa.us>
Permalink:  ../1108.1514954390@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1108.1514954390@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: <1108.1514954390@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>

* 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