Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWaqL-00027V-IM for pgsql-general@arkaria.postgresql.org; Wed, 03 Jan 2018 04:39:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWaqK-00024z-Fx for pgsql-general@arkaria.postgresql.org; Wed, 03 Jan 2018 04:39:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eWaqK-00024o-8r for pgsql-general@lists.postgresql.org; Wed, 03 Jan 2018 04:39:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eWaqH-0003Wg-O5 for pgsql-general@postgresql.org; Wed, 03 Jan 2018 04:39:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w034dod1001109; Tue, 2 Jan 2018 23:39:50 -0500 From: Tom Lane To: Thomas Munro cc: Thuc Nguyen Canh , Forums postgresql Subject: Re: Query error: could not resize shared memory segment In-reply-to: References: Comments: In-reply-to Thomas Munro message dated "Wed, 03 Jan 2018 17:13:37 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1107.1514954390.1@sss.pgh.pa.us> Date: Tue, 02 Jan 2018 23:39:50 -0500 Message-ID: <1108.1514954390@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro 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