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 1lAa9I-0008BX-3u for pgsql-general@arkaria.postgresql.org; Fri, 12 Feb 2021 15:14:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lAa9H-0007ZO-2A for pgsql-general@arkaria.postgresql.org; Fri, 12 Feb 2021 15:14:23 +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 1lAa9G-0007ZH-Qh for pgsql-general@lists.postgresql.org; Fri, 12 Feb 2021 15:14:22 +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 1lAa9E-0006h0-Br for pgsql-general@lists.postgresql.org; Fri, 12 Feb 2021 15:14:22 +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 11CFEHPl1551877; Fri, 12 Feb 2021 10:14:18 -0500 From: Tom Lane To: Matthias Apitz cc: pgsql-general@lists.postgresql.org Subject: Re: kernel.shmmax and kernel.shmall for Linux server In-reply-to: References: Comments: In-reply-to Matthias Apitz message dated "Fri, 12 Feb 2021 11:24:37 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1551875.1613142857.1@sss.pgh.pa.us> Date: Fri, 12 Feb 2021 10:14:17 -0500 Message-ID: <1551876.1613142857@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Matthias Apitz writes: > I've read the doc https://www.postgresql.org/docs/13/kernel-resources.html > but I'm still relatively clueless, what to set. For modern PG versions on Linux, you basically shouldn't ever have to touch those numbers. I'd only start to worry if I saw server startup failures. These values do *not* constrain what you can set for shared_buffers or the like; at most, they'd constrain how many PG instances you can run on one machine. regards, tom lane