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 1jVsUz-00038R-0Y for pgsql-performance@arkaria.postgresql.org; Tue, 05 May 2020 08:00: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 1jVsUv-0007cB-OD for pgsql-performance@arkaria.postgresql.org; Tue, 05 May 2020 08:00:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVsUv-0007bU-D6 for pgsql-performance@lists.postgresql.org; Tue, 05 May 2020 08:00:13 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jVsUo-0003kd-9C for pgsql-performance@lists.postgresql.org; Tue, 05 May 2020 08:00:11 +0000 Received: by mail-wr1-x42c.google.com with SMTP id y4so1287324wrm.11 for ; Tue, 05 May 2020 01:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=azJWzdMzN/dlxpnTQUT4oMCKKOOmPUaYvemrRytOl+E=; b=NtyN0TOFUmIpqdtT0RjSytQ04CcGzunijl7lFIbgxvlwSbLRO8LuRrD2cz9BJF5/wm mThDnW5pdugQaeIhyEn1WYMw48pxES7w+F+foeDIlwQWZn7XsesNWscFx5F6+3HjsXtA NIcn/KGyFyOCGuF29n4C94ph9enwD5fStOSyBvBNWLUjVUe85XHGUiO3nra8S8TIkHKW KB5Wk0Rgk5gsLh6KoHYWcq6U8Mr0jpvrVB7MLus9VPO1rS4oXLa3Ydnzu/Mu8abn+wyu l/Zn+drwsoqVSNgUeiUVFyyduZEAaGM6LdOKXLrQecAV9QvyO7eozYZheNmoH3MqbRAI rL5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=azJWzdMzN/dlxpnTQUT4oMCKKOOmPUaYvemrRytOl+E=; b=qZazo2eI4USlcpAbsThnJ0P7puGu8pUxFCWwWR+R0HD6o7000cwdwhLF9pYj2v0CeP CEAS63BD1GBCvGdkqKJKY1Bbf9u2QrESw97fliKcWrSQwDGZf7Fcr4MnVwPJpg7s9YeZ mobRsRsdTyjoHL224Or0Vf5F9P0jXs3BCdggmZ0ckas01o6ILk3ZaHM7Wi6lrKaUF33u 3YUdkqni4gUnxrXe9od0W44AKENmSqJprW/VnyQsDMSoX1O/+dgxfh08QwHI0XuNIyvX l48eN/l5UiFM/XvGX41LVJYgPGe4HZljJTZ43o4NBsekJBNy3Cq/l6BFQFcxgv3lK6th Aw2Q== X-Gm-Message-State: AGi0Pua5tCTUIGgkiwo74FSg8HVZCob/VzY5eCQDQtYPECQsmEHpefx5 YkTbV9/m2Li3KJvd0J7/lgKc9g== X-Google-Smtp-Source: APiQypLBtJCc3Dwd0Cyd4y78d0OqZjzfgcKVe3owlybvhrnBIVyRCuAc/1kfopaXDOuwzp0tC4veNw== X-Received: by 2002:a5d:6691:: with SMTP id l17mr2154653wru.127.1588665604420; Tue, 05 May 2020 01:00:04 -0700 (PDT) Received: from dynamic-epxaph215gp4f1osc-pd01.res.v6.highway.a1.net (dynamic-epxaph215gp4f1osc-pd01.res.v6.highway.a1.net. [2001:871:60:e806:264c:4bf6:b041:c2bc]) by smtp.gmail.com with ESMTPSA id f5sm1786871wrp.70.2020.05.05.01.00.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 01:00:03 -0700 (PDT) Message-ID: <60b780e9d34ea8a6be80193ec03ab16a160fd1eb.camel@cybertec.at> Subject: Re: NUMA settings From: Laurenz Albe To: Marc =?ISO-8859-1?Q?Recht=E9?= , pgsql-performance@lists.postgresql.org Date: Tue, 05 May 2020 10:00:02 +0200 In-Reply-To: References: <2d10f8ab-5fc6-a0a5-facf-68f35de95ea9@rechte.fr> <20200504162042.3ctwpkg33trpyfdm@alap3.anarazel.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 2020-05-05 at 07:56 +0200, Marc Rechté wrote: > Thanks for answers. Further readings make me think that we should *not* > start postgres with numactl --interleave=all: this may have counter > productive effect on backends anon memory (heap, stack). IMHO, what is > important is to use Huge Pages for shared buffers: they are allocated > (reserved) by the kernel at boot time and spread evenly on all nodes. On > top of that they never swap. > > My (temp) conclusions are following: > vm.zone_reclaim_mode = 0 > kernel.numa_balancing = 0 (still not sure with that choice) > wm.swappiness = 60 (default) > start postgres as usual (no numactl) Thanks for sharing your insights. I think that "vm.swappiness" should be 0. PostgreSQL does its own memory management, any swapping by the kernel would go against that. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com