Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVkAJ-0005ua-6N for pgsql-admin@arkaria.postgresql.org; Sat, 25 Feb 2023 02:19:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pVkAH-0007qP-Vm for pgsql-admin@arkaria.postgresql.org; Sat, 25 Feb 2023 02:19:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVkAH-0007qG-Kr for pgsql-admin@lists.postgresql.org; Sat, 25 Feb 2023 02:19:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVkAF-0000kN-7i for pgsql-admin@lists.postgresql.org; Sat, 25 Feb 2023 02:19:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 31P2Jq4c1088616; Fri, 24 Feb 2023 21:19:52 -0500 From: Tom Lane To: Chris Hoover cc: pgsql-admin@lists.postgresql.org Subject: Re: New PG14 server won't start with >2GB shared_buffers In-reply-to: References: Comments: In-reply-to Chris Hoover message dated "Fri, 24 Feb 2023 21:08:58 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1088614.1677291592.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 24 Feb 2023 21:19:52 -0500 Message-ID: <1088615.1677291592@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Chris Hoover writes: > I have a new server that has 1TB ram (not a typo). I have been fighting= with this evening to start up with a shared_buffer setting over 2GB. Whe= n the memory allocation breaks 2GB, the database won=E2=80=99t start. I=E2= =80=99ve dropped it down to 500M to get the database online. We=E2=80=99v= e tried both SysV memory and mmap memory. Are you running inside a VM, or cgroup, or something else that might be imposing a memory limit? regards, tom lane