Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sE0DD-00GaoN-3O for pgsql-sql@arkaria.postgresql.org; Mon, 03 Jun 2024 05:26:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sE0DA-0095cu-4k for pgsql-sql@arkaria.postgresql.org; Mon, 03 Jun 2024 05:26:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sE0D9-0095cm-PC for pgsql-sql@lists.postgresql.org; Mon, 03 Jun 2024 05:26:23 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sE0D7-003CfR-7n for pgsql-sql@lists.postgresql.org; Mon, 03 Jun 2024 05:26:22 +0000 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-6f6a045d476so3067964b3a.1 for ; Sun, 02 Jun 2024 22:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717392380; x=1717997180; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=vBERlu0rxnhQLMA7UrVpbo7sj62XaUR0N5QroRRsVp0=; b=es6Tr5RIlpSy0h200N62oR7uwO/lrMlMx9EJmCu8PcBNVMsguDt5mXuqAqDA/tsK+E ADP61SBgPxvnYgMm754d1VerAVNc/jzAz8tQUBwDjfQqdJF/xgXaIVjeQUfcTWZqpIlD 5nByeQsNOxqiEQ1b9Cgok/9UpMiM+LBMetPGSZCwB8C1TaB/Y0XmFtq/dxP1CrWaEwES 5hssQLy3pAfgxVf99SqMsgvybgDdiV8H+Qrw7ZDnoIuxNWJKtPOAaaVmCY207xb5X/Pv 01ERWJZ5+1A9qsiKsYHQO3eF+K+LPFCGd1oUZrE0QlvuyZYoeTFN6dwkyWjDwKCQ7ki2 PcZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717392380; x=1717997180; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vBERlu0rxnhQLMA7UrVpbo7sj62XaUR0N5QroRRsVp0=; b=jNrC9wro40DiHrTZFh3aLiWpn6POxPJV6WNSIpkWMHy2C4Y2b8r8D15khrWIBKtYyk XbiJWLzyJrCCzMyRYvLELeWT+dC4rxJSMqu2oc5gSrHbPEy4nhAvaaM+MtvhFgRC1uog ZEPu16icT/hSD1Svr1TlCDkSvjP7h6HRe1mLXR33co3S/puNYeUv/EKDSmhuZBHefvEo U5cHQm4z0U5mrSszx2KactQtS9kQatX35xSamcoF+P3a9nEnvFp+YrgxTw6hbbmO7qbr Vlpsc8kjJ9hhPxNMmGqar5ropmzuncogBFoWg82a3/8ZsagM7rwhK5tqVzqRKqs6GjCU xnmw== X-Gm-Message-State: AOJu0Yw/vUPhT14yIUliUCzlf/qwo/xtDAX7yYwMHvHwFT6NQ++ZOtvr oq1dN208vppmRSpcoJP7bonZJ/4TEZ+77rjHGtC3j+3Y/fjIyBFdSCbz+JdEbxYIoHWh7e2lp55 gUBqX48gENwhANkDI+PYiboJqo3bFDQ== X-Google-Smtp-Source: AGHT+IHIc9e7BkV+32Lg7Ur+RKjpBAFbfxPp6/cF/0PbEylU2OkuGHe5BUFX26suo1XksjvdyVch0+xrhAS5cvdrCLg= X-Received: by 2002:a05:6a20:9189:b0:1ac:d96a:4fd6 with SMTP id adf61e73a8af0-1b26f137810mr9149689637.23.1717392379489; Sun, 02 Jun 2024 22:26:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kanimozhi Manoharan Date: Mon, 3 Jun 2024 10:56:07 +0530 Message-ID: Subject: Re: Postgres fine tuning To: pgsql-sql@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000b8340d0619f59207" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000b8340d0619f59207 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Team, please share your thoughts. Regards, Kanimozhi. On Fri, May 31, 2024 at 11:12=E2=80=AFAM Kanimozhi Manoharan wrote: > Hi Team, > > Recently we migrated from the OS from Cent 7 to RHEL 8 version. Post > migration we are seeing high memory usage. Upon checking with RHEL team, > they are asking to fine tune the system for postgres and to configure hug= e > pages to improve the performance. > > /etc/sysctl.conf > > vm.swappiness =3D 10 > vm.dirty_expire_centisecs =3D 500 > vm.dirty_writeback_centisecs =3D 250 > vm.dirty_ratio =3D 15 > vm.dirty_background_ratio =3D 3 > > Is this value recommended for all systems running postgres ? Please let m= e > know if it is fine to update this. > > Regards, > Kanimozhi. > --000000000000b8340d0619f59207 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Team, please share your thoughts.

Regar= ds,
Kanimozhi.

On Fri, May 31, 2024 at 11:12=E2=80=AFAM Kani= mozhi Manoharan <kanithilak@gmai= l.com> wrote:
Hi Team,

Recently we migrated from= the OS from=C2=A0Cent 7 to RHEL=C2=A08 version. Post migration we are seei= ng high memory usage. Upon checking with RHEL team, they are asking to fine= tune the system for postgres and to configure huge pages to improve the pe= rformance.

=
/etc/sysctl.co=
nf
<snip>
vm.swappiness =3D 10
vm.dirty_expire_centisecs =3D 500
vm.dirty_writeback_centisecs =3D 250
vm.dirty_ratio =3D 15
vm.dirty_background_ratio =3D 3
Is this value recomm= ended for all systems running postgres ? Please let me know if it is fine t= o update this.

Regards,
Kanimozhi.
=
--000000000000b8340d0619f59207--