pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc Rechté <marc4@rechte.fr>
To: pgsql-performance@lists.postgresql.org
Subject: NUMA settings
Date: Wed, 29 Apr 2020 08:54:08 +0200
Message-ID: <2d10f8ab-5fc6-a0a5-facf-68f35de95ea9@rechte.fr> (raw)

Hello,

I am trying to figure out the recommended settings for a PG dedicated 
machine regarding NUMA.

I assume that the shared buffers are using Huge Phages only. Please 
correct if I am wrong:

1) postgres is started with numactl --interleave=all, in order to spread 
memory pages evenly on nodes.
2) wm.swappiness is left to the default 60 value, because Huge Pages 
never swap, and we wish the idle backend to be swapped out if necessary.
3) vm.zone_reclaim_mode = 0. I am not sure it is the right choice.
4) kernel.numa_balancing = 1. Only if it is confirmed that it will not 
affect postgres, because started with the interleave policy.

Thanks






view thread (7+ messages)  latest in thread

Message-ID: <2d10f8ab-5fc6-a0a5-facf-68f35de95ea9@rechte.fr>
Permalink:  ../2d10f8ab-5fc6-a0a5-facf-68f35de95ea9@rechte.fr/
Also on:    postgresql.org/message-id/2d10f8ab-5fc6-a0a5-facf-68f35de95ea9@rechte.fr

 · 

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-performance@postgresql.org
  Cc: marc4@rechte.fr, pgsql-performance@lists.postgresql.org
  Subject: Re: NUMA settings
  In-Reply-To: <2d10f8ab-5fc6-a0a5-facf-68f35de95ea9@rechte.fr>

* 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