pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Konstantin Malanchev <hombit@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: PGSQL 11.4: shared_buffers and /dev/shm size
Date: Tue, 9 Jul 2019 11:53:44 +0200
Message-ID: <20190709095344.GK7323@protected.rcdrun.com> (raw)
In-Reply-To: <7E4D7DA4-E093-4F6A-AE8E-81A73B995A8D@gmail.com>
References: <7E4D7DA4-E093-4F6A-AE8E-81A73B995A8D@gmail.com>

* Konstantin Malanchev <hombit@gmail.com> [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





view thread (10+ messages)  latest in thread

Message-ID: <20190709095344.GK7323@protected.rcdrun.com>
Permalink:  ../20190709095344.GK7323@protected.rcdrun.com/
Also on:    postgresql.org/message-id/20190709095344.GK7323@protected.rcdrun.com

 · 

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: bugs@gnu.support, hombit@gmail.com
  Subject: Re: PGSQL 11.4: shared_buffers and /dev/shm size
  In-Reply-To: <20190709095344.GK7323@protected.rcdrun.com>
  References: <7E4D7DA4-E093-4F6A-AE8E-81A73B995A8D@gmail.com> <20190709095344.GK7323@protected.rcdrun.com>

* 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