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 1sCv2E-008xzl-UI for pgsql-sql@arkaria.postgresql.org; Fri, 31 May 2024 05:42:40 +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 1sCv2C-0091ch-8V for pgsql-sql@arkaria.postgresql.org; Fri, 31 May 2024 05:42:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sCv2B-0091cY-Ub for pgsql-sql@lists.postgresql.org; Fri, 31 May 2024 05:42:35 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sCv29-001d74-Bx for pgsql-sql@lists.postgresql.org; Fri, 31 May 2024 05:42:35 +0000 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2c1a99b75d8so1209954a91.3 for ; Thu, 30 May 2024 22:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717134151; x=1717738951; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ewjUhtVVlGoi0NKpNx+29xamp3nkpsCHAYlGZ0X+bpA=; b=SwkdwarUn3N9rt6dOS0MnLFPID7OYb34iGyqz4QiM3pQ9mEzUmQNmX6NogTN8yUGQh qdI1tO4Yn3X1W+yKvvJ0i19BpVBftYaiaRMsNHv5TYE6EzWtdUFv6GP0kgFAYo151DEx eHLZcy/w3hODsED4LMxkJTG8hmRkvQOurLCg4X6BcibZ4ZeK6BzKUSDvjLxGmDeh7yZ9 2C+Sh7yK1IQ7lhHHbrBEgNGY4n1S5W/SZexL7VHapQZ0Ei4qw7gwLGwtA/Pz+hm/tLhv c+zqHbKlRVeRJW/Flvbxqw9u/tJfL2HMF8cKBQuQCQ0mkqkaz2wav07rW3hpeNXHkUph YNOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717134151; x=1717738951; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ewjUhtVVlGoi0NKpNx+29xamp3nkpsCHAYlGZ0X+bpA=; b=tKBYDYGskPWcdjZeetlIWpI2KHHSTJ2baR37fdnVAOOPil50lu6IX4A2zTGjPe/jkh Npm7UjyKX/hP8zFnHh9CP9sl+W8WLdPTj1JnYhyWefArqHFiKE/7i3op8/AU7L07bP0d URQORS3Vk2wVySZpcba9/M4LXZEt04uSThc/rUo2kUn9orkFx4U91EaijqGGeqaiEEvi 8lBmHPPcU9McUiW2KnmY5KzAHMsqikdM+QhAqDvJEspyi31DHcUYc7QjxvCVFiCqE0OW AxTw+K9yJo4PqmRr24rpSdy5kmjC2fLpkFySoTuaJnyh+lBKJZjRn2PfHTCqPBYBSfO/ c9zQ== X-Gm-Message-State: AOJu0Yy6HfFyXB9CVce5RD5whR5oQLnynBAO2ZMDXFjabmlF7Bl88JLh K1TsZuE86JDFxzF16l3rky0nD7KsLUtqp8+9h0nmVq0gy/4DncpFy20po0R4937ONeywAADK7jP qK80dZF56uSHyoVRtIW8BMgaH2mE2Dopd X-Google-Smtp-Source: AGHT+IHUO6DbyZP10iRNMYZPUrNPyKfu90JSEoAdJNP4Ps7zGsaknI0hGTxSl4QRkKrpwosXJdpB8A9akD/7CRw8XsU= X-Received: by 2002:a17:90a:db09:b0:2ac:513b:b316 with SMTP id 98e67ed59e1d1-2c1dc566945mr882922a91.10.1717134150876; Thu, 30 May 2024 22:42:30 -0700 (PDT) MIME-Version: 1.0 From: Kanimozhi Manoharan Date: Fri, 31 May 2024 11:12:19 +0530 Message-ID: Subject: Postgres fine tuning To: pgsql-sql@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000001846a90619b97326" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001846a90619b97326 Content-Type: text/plain; charset="UTF-8" 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 huge pages to improve the performance. /etc/sysctl.conf vm.swappiness = 10 vm.dirty_expire_centisecs = 500 vm.dirty_writeback_centisecs = 250 vm.dirty_ratio = 15 vm.dirty_background_ratio = 3 Is this value recommended for all systems running postgres ? Please let me know if it is fine to update this. Regards, Kanimozhi. --0000000000001846a90619b97326 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Team,

Recently we migrated from the = OS from=C2=A0Cent 7 to RHEL=C2=A08 version. Post migration we are seeing hi= gh 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 perform= ance.

/etc/sysctl.conf
<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.
=
--0000000000001846a90619b97326--