Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkmop-0005E9-8E for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2019 09:53:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hkmon-0006w9-Jk for pgsql-general@arkaria.postgresql.org; Tue, 09 Jul 2019 09:53:49 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkmon-0006w2-AN for pgsql-general@lists.postgresql.org; Tue, 09 Jul 2019 09:53:49 +0000 Received: from stw1.rcdrun.com ([217.170.207.13]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkmol-0004fv-6E for pgsql-general@postgresql.org; Tue, 09 Jul 2019 09:53:48 +0000 Received: from protected.rcdrun.com (localhost [::1]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA; Tue, 09 Jul 2019 02:53:45 -0700 id 0000000000020355.000000005D246429.000061E4 Received: from localhost (protected.rcdrun.com [local]) by protected.rcdrun.com (OpenSMTPD) with ESMTPA id ca2a02a1; Tue, 9 Jul 2019 09:53:44 +0000 (UTC) Date: Tue, 9 Jul 2019 11:53:44 +0200 From: Jean Louis To: Konstantin Malanchev Cc: pgsql-general@postgresql.org Subject: Re: PGSQL 11.4: shared_buffers and /dev/shm size Message-ID: <20190709095344.GK7323@protected.rcdrun.com> References: <7E4D7DA4-E093-4F6A-AE8E-81A73B995A8D@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <7E4D7DA4-E093-4F6A-AE8E-81A73B995A8D@gmail.com> Organization: Thetabiz Corporation User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk * Konstantin Malanchev [2019-07-09 11:51]: > Hello, > > I'm running PostgreSQL 11.4 on Linux 4.12.14 and I see the following issue while executing single one query: > ERROR: could not resize shared > memory segment "/PostgreSQL.1596105766" to 536870912 bytes: No space left on device > > In my postgresql.conf I set sharred_buffers=256MB, I see that it is applied: > SHOW shared_buffers; > shared_buffers > ---------------- > 256MB > > At the same time during the query execution, I see a lot of files in /dev/shm with the total size more than 256MB > > ls -lh /dev/shm > > How can I configure limit for total shared memory size? The limit is mostly set by the memory, as /dev/shm is like virtual memory or RAM disk. Increase the RAM. Jean