Re: shm

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: shm
Date: 2020-03-06 15:34:41
Message-ID: 23559.1583508881@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Scott Ribe <scott_ribe(at)elevated-dev(dot)com> writes:
>> On Mar 5, 2020, at 7:51 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> We still allocate a small shm block as a means of counting live backends
>> (since the SysV spec includes an "nattch" count but mmap'd segments do
>> not provide that info). Should only be ~50 bytes though.

> I recreated the error so I could post it here:
> ERROR 53100 (disk_full) could not resize shared memory segment "/PostgreSQL.935653392" to 1048576 bytes: No space left on device

Oh, if it's trying to resize then this is dynamic shared memory, not
the small static block. On most platforms we use POSIX shm_open() for
that purpose, not SysV-style shm ... what have you got
dynamic_shared_memory_type set to?

It could be that the space limit applies to both APIs anyway, in which
case your choices are to raise the limit or disable parallel query.

regards, tom lane

In response to

  • Re: shm at 2020-03-06 14:06:50 from Scott Ribe

Responses

  • Re: shm at 2020-03-06 16:32:55 from Scott Ribe

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Ribe 2020-03-06 16:32:55 Re: shm
Previous Message Scott Ribe 2020-03-06 14:06:50 Re: shm