Re: New PG14 server won't start with >2GB shared_buffers - Mailing list pgsql-admin

From Tom Lane
Subject Re: New PG14 server won't start with >2GB shared_buffers
Date
Msg-id 1177969.1677342917@sss.pgh.pa.us
Whole thread Raw
In response to Re: New PG14 server won't start with >2GB shared_buffers  (Evan Rempel <erempel@uvic.ca>)
Responses Re: New PG14 server won't start with >2GB shared_buffers  (Chris Hoover <chrish@aweber.com>)
List pgsql-admin
Evan Rempel <erempel@uvic.ca> writes:
> Bear in mind that if you are using systemd to start postgres, then these 
> user limits may not apply.

Yeah, it seems likely that the PG server is being started under
more-restrictive limits than what these manual reports suggest.
It would be useful to try logging in as the Postgres OS user and
manually starting the server -- just do "postgres &" and see what
happens.  (If it does start, "pg_ctl stop" can be used to shut it
down again, or you can manually send SIGTERM to the postmaster
process.)

I tried to reproduce the problem by intentionally setting
"ulimit -v" too small for my PG settings, and I got error messages
that were similar but not identical to what Chris reported.
(I think the sysv case failed at shmat() not shmget().)  So it's
probably not ulimit per se that's responsible.  But if the
server is being started under systemd, then I can entirely
believe that systemd has some poorly-documented feature that
sets additional limits for daemon processes.

I'm still wondering about cgroups, too.

            regards, tom lane



pgsql-admin by date:

Previous
From: Carlos Martinez
Date:
Subject: Re: New PG14 server won't start with >2GB shared_buffers
Next
From: Tim
Date:
Subject: Re: New PG14 server won't start with >2GB shared_buffers