pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jwiencek3 <jwiencek3@comcast.net>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: RHEL-8 Kernel Settings
Date: Fri, 11 Jun 2021 04:07:51 -0500
Message-ID: <B1EFDEC8-07B5-4823-A404-15A7B90EAE30@comcast.net> (raw)
In-Reply-To: <a21a096321d234c1fd1a3cb9842df8b8002aae34.camel@cybertec.at>
References: <a21a096321d234c1fd1a3cb9842df8b8002aae34.camel@cybertec.at>

Other than HugePages are any other settings determined by the amount of memory on a server?

John 

Sent from my iPad

> On Jun 11, 2021, at 1:56 AM, Laurenz Albe <laurenz.albe@cybertec.at> wrote:
> 
> On Thu, 2021-06-10 at 13:06 -0500, John Wiencek wrote:
>> I’m looking for assistance in determining kernel setting for a VM RHEL-8 linux server running postgresql-13.
>> 
>> I have 3 server groupings
>> 
>> 1)   2 vcpu’s  8gb memory
>> 2)   4 cpu’s 16gb memory
>> 3)   8 cpu’s 32gb memory
>> 
>> I’ve read various articles and the PostgreSQL documentation .   Does anyone have practical experiences doing this kind of set up
>> 
>> Do kernel setting requirements change based on the number of cpu’s and amount of memory?    I’ve not read any mention of this.
> 
> I recommend setting
> 
>  vm.overcommit_memory = 2
>  vm.overcommit_ratio (the correct value depends on your swap)
>  vm.swappiness = 0
> 
> Also, disable Transparent Hugepages.
> 
> Yours,
> Laurenz Albe
> -- 
> Cybertec | https://www.cybertec-postgresql.com
> 






view thread (5+ messages)

Message-ID: <B1EFDEC8-07B5-4823-A404-15A7B90EAE30@comcast.net>
Permalink:  ../B1EFDEC8-07B5-4823-A404-15A7B90EAE30@comcast.net/
Also on:    postgresql.org/message-id/B1EFDEC8-07B5-4823-A404-15A7B90EAE30@comcast.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jwiencek3@comcast.net, laurenz.albe@cybertec.at, pgsql-admin@lists.postgresql.org
  Subject: Re: RHEL-8 Kernel Settings
  In-Reply-To: <B1EFDEC8-07B5-4823-A404-15A7B90EAE30@comcast.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox