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 1lrd9F-00017h-JW for pgsql-admin@arkaria.postgresql.org; Fri, 11 Jun 2021 09:08:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lrd9D-0006XI-Id for pgsql-admin@arkaria.postgresql.org; Fri, 11 Jun 2021 09:08:15 +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 1lrd9C-0006XA-Uy for pgsql-admin@lists.postgresql.org; Fri, 11 Jun 2021 09:08:15 +0000 Received: from resqmta-ch2-05v.sys.comcast.net ([2001:558:fe21:29:69:252:207:37]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrd99-00042G-3k for pgsql-admin@lists.postgresql.org; Fri, 11 Jun 2021 09:08:14 +0000 Received: from resomta-ch2-14v.sys.comcast.net ([69.252.207.110]) by resqmta-ch2-05v.sys.comcast.net with ESMTP id rd8vl7w8dK3eXrd91llgxz; Fri, 11 Jun 2021 09:08:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1623402483; bh=WnxvlSbzjB5NFgkC1epcXbC7YhIZRk1i4mIhI5DHukY=; h=Received:Received:Content-Type:From:Mime-Version:Subject:Date: Message-Id:To; b=MxySx/JKytcwD6Dxnn+wUIld4VR2eu8h4bNZwpsrSXdMzZiwaYCmQLQ72zS13+zxs /ztIeuO0ga7h//SkeRyG1TpDwjc0eyw2LnxvuXV2ffZNjNq9aHRCxdXsV8nfyZXoKW ryluE/Pptp2REj5K/uTm7NfquaBrQtqLmnuU6GmFPHLpNIWxsqkd0rALw7xRFkdT13 9ZQRVEnKscK4gFbK/ShRrmOi+F1HeI7yIzat4XtZaXZatgxrn1gv/2JtcYdvRkV3rc G/qV/tzW1JiauAItbwKt0FM++X5hi7iy2ynwDvTmrDIxXm2WtRlp6538/94K///3sF ZGbOL333DvKzw== Received: from smtpclient.apple ([IPv6:2601:240:d081:59d0:8dc:153e:82b1:9a39]) by resomta-ch2-14v.sys.comcast.net with ESMTPA id rd8qlzvMXzqo2rd91lSxUi; Fri, 11 Jun 2021 09:08:03 +0000 X-Xfinity-VMeta: sc=-100.00;st=legit Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Jwiencek3 Mime-Version: 1.0 (1.0) Subject: Re: RHEL-8 Kernel Settings Date: Fri, 11 Jun 2021 04:07:51 -0500 Message-Id: References: Cc: Pgsql-admin In-Reply-To: To: Laurenz Albe X-Mailer: iPad Mail (18F72) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Other than HugePages are any other settings determined by the amount of memo= ry on a server? John=20 Sent from my iPad > On Jun 11, 2021, at 1:56 AM, Laurenz Albe wrote= : >=20 > =EF=BB=BFOn Thu, 2021-06-10 at 13:06 -0500, John Wiencek wrote: >> I=E2=80=99m looking for assistance in determining kernel setting for a VM= RHEL-8 linux server running postgresql-13. >>=20 >> I have 3 server groupings >>=20 >> 1) 2 vcpu=E2=80=99s 8gb memory >> 2) 4 cpu=E2=80=99s 16gb memory >> 3) 8 cpu=E2=80=99s 32gb memory >>=20 >> I=E2=80=99ve read various articles and the PostgreSQL documentation . D= oes anyone have practical experiences doing this kind of set up >>=20 >> Do kernel setting requirements change based on the number of cpu=E2=80=99= s and amount of memory? I=E2=80=99ve not read any mention of this. >=20 > I recommend setting >=20 > vm.overcommit_memory =3D 2 > vm.overcommit_ratio (the correct value depends on your swap) > vm.swappiness =3D 0 >=20 > Also, disable Transparent Hugepages. >=20 > Yours, > Laurenz Albe > --=20 > Cybertec | https://www.cybertec-postgresql.com >=20