Re: New PG14 server won't start with >2GB shared_buffers - Mailing list pgsql-admin
From | Tim |
---|---|
Subject | Re: New PG14 server won't start with >2GB shared_buffers |
Date | |
Msg-id | CAKhLO5jicJTN5B12v=zDA5+S7ycSiVtseHQyUdoqKDQ=Z+Ttaw@mail.gmail.com Whole thread Raw |
In response to | Re: New PG14 server won't start with >2GB shared_buffers (Carlos Martinez <camarti@gmail.com>) |
Responses |
Re: New PG14 server won't start with >2GB shared_buffers
|
List | pgsql-admin |
Do you have hugepages configured in the OS? Is the Postgres hugepages setting set to on or off?
On Sat, Feb 25, 2023 at 11:35 AM Carlos Martinez <camarti@gmail.com> wrote:
Hi.Just for ask dummy questions:What says the next commands?cat /etc/*release*uname -aulimit -a # run this as root and postres userBest regards.El sáb., 25 de feb. de 2023 10:17 a. m., Evan Rempel <erempel@uvic.ca> escribió:Bear in mind that if you are using systemd to start postgres, then these user limits may not apply.Th logged in user limits get set by the PAM subsystem, but when systemd starts a subsystem no actual login occurs and PAM is never invoked.The systemd unit file must have limits set within in.In the [service] section use one ofLimitCPU= Seconds
LimitFSIZE= Bytes
LimitSTACK= Bytes
LimitCORE= Bytes
LimitRSS= Bytes
LimitNOFILE= intenger
LimitAS= Bytes
LimitNPROC= intenger
LimitMEMLOCK= Bytes
LimitLOCKS= intenger
LimitSIGPENDING= intenger
LimitMSGQUEUE= Bytes
LimitNICE= Nice Level
LimitRTPRIO= Realtime Priority
LimitRTTIME= MicrosecondsOn 2023-02-25 06:55, Chris Hoover wrote:Ken,$ iduid=998(postgres) gid=1003(postgres) groups=1003(postgres),115(ssl-cert)$ ulimit -acore file size (blocks, -c) 0data seg size (kbytes, -d) unlimitedscheduling priority (-e) 0file size (blocks, -f) unlimitedpending signals (-i) 4128123max locked memory (kbytes, -l) 65536max memory size (kbytes, -m) unlimitedopen files (-n) 1024pipe size (512 bytes, -p) 8POSIX message queues (bytes, -q) 819200real-time priority (-r) 0stack size (kbytes, -s) 8192cpu time (seconds, -t) unlimitedmax user processes (-u) 4128123virtual memory (kbytes, -v) unlimitedfile locks (-x) unlimited$ sysctl -a | grep shmkernel.shm_next_id = -1kernel.shm_rmid_forced = 0kernel.shmall = 17179869184kernel.shmmax = 274877906944kernel.shmmni = 4096On Feb 25, 2023, at 9:49 AM, Kenneth Marshall <ktm@rice.edu> wrote:Chris Hoover wrote on 2/25/2023 8:07 AM:Ron,
Honestly, I grabbed 500MB to get the database up, by this time I
was very frustrated and just wanted it up. :) I think I was at
1500MB and it still would not start. So to save what was left of
my evening out, I just picked 500.
Here is shmall:
kernel.shmall = 17179869184
Thanks,
Chris Hoover
Senior DBA
AWeber.com
Cell: (803) 528-2269
Email: chrish@aweber.com
Hi Chris,
What are your limits set to for the account that the database runs as?
Regards,
Ken
-- Evan Rempel 250.721.7691 Senior Systems Administrator erempel@uvic.ca Data Centre Services, University Systems, University of Victoria
pgsql-admin by date: