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 1jVsu0-0004C2-R7 for pgsql-performance@arkaria.postgresql.org; Tue, 05 May 2020 08:26:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jVstz-0004Ka-NM for pgsql-performance@arkaria.postgresql.org; Tue, 05 May 2020 08:26:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVstz-0004KT-GM for pgsql-performance@lists.postgresql.org; Tue, 05 May 2020 08:26:07 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jVsts-0002OU-Ee for pgsql-performance@lists.postgresql.org; Tue, 05 May 2020 08:26:07 +0000 Received: by mail-wr1-x430.google.com with SMTP id k1so1633878wrx.4 for ; Tue, 05 May 2020 01:25:59 -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=f/F5e65cA7AzI7Wc54jSEUAnlAq2958oShi9iT0upzg=; b=HHFVBXpO0PrCKfR3og2tmgYiwSuRBbNECcSTBVsZN6KdDBYHG+7dRdFqVUNOyRvZ6+ 5KJYhqs9v5PZ20hUCOV5Zt0vNnMUyw86gLP5ysut55ObmUtr/ecwo8YQbA2aEL8znCYJ k6grXg5DplZ/yVMGJO7x3KaYfvhJToU6AUVXKBpRG0lde95/t7GmYHp9dNqS7JekZXvO xYRG4TYehZrhffbYDrTcmIpYke3r8chTLR99T4OJWo943TnYeq01N+NbdcGZNz4n6iHo DMe5OmVc0y5NGKExShvGeBmbspUh1bM32A7mq2S48A88ht9jaHCDwa10f2qDXm5q7MKw xD4g== 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=f/F5e65cA7AzI7Wc54jSEUAnlAq2958oShi9iT0upzg=; b=RS2LqnfvmPiKAh4nr9KYabLgsgi+vWn24MKTHlgyzce7SzJhk1nCfROG9rSMnUHzx6 EekYxJLyS+ns+y5OxGnifrns+f2nSvWs/0AqFOkVJ6g3GpLVWzHo8h4um2UOo6L3oF4Q uAO0iOD9oIxF1YbFl7R9A3alU3J8wohGat7+3HrhMe0nby0vQfsBxjswvHiE5zU0gEKO CgwMJqqJvvVTDYfXTW11RMVqihC+bI+Q7v5eKq0yGRVSD7O+f+iZvIgzWoI0/uWWli6P qRTve12aj89itm282OzWst+iWEkZAO6/OvN/FR6gLR0xscr+yMj+VnqAFB+a0WrBCdm7 b7iA== X-Gm-Message-State: AGi0Puaoq4GukeYxtHSM7raIkCTKAeZj1ssPjV3w9GZu+7VZVkD6ayuL 4wgMehBIOZOOcwiEtqZPRpm0HQ== X-Google-Smtp-Source: APiQypLjnasxqqOPwjZCaXq7sDT9zx8TgU04Jj1YRSdGaoZbv/E40LSu6U65iPPAXJ0sxMneexJdFw== X-Received: by 2002:adf:e2c2:: with SMTP id d2mr2555011wrj.55.1588667158471; Tue, 05 May 2020 01:25:58 -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 e13sm1960189wrw.88.2020.05.05.01.25.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 01:25:57 -0700 (PDT) Message-ID: <78e4af96a4b34f1280ef96ddf347d5f7b8a53380.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:25:57 +0200 In-Reply-To: <9149ca0b-3e36-9df2-1ea5-2ad3af7968de@rechte.fr> References: <2d10f8ab-5fc6-a0a5-facf-68f35de95ea9@rechte.fr> <20200504162042.3ctwpkg33trpyfdm@alap3.anarazel.de> <60b780e9d34ea8a6be80193ec03ab16a160fd1eb.camel@cybertec.at> <9149ca0b-3e36-9df2-1ea5-2ad3af7968de@rechte.fr> 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 10:11 +0200, Marc Rechté wrote: > > 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 > > > As said in the post, we wish the idle backends to be swapped out if > necessary. Therefore lowering swappiness would produce the opposite > effect: swapping out Linux file cache rather than backends memory. I see. Sorry for not paying attention. An idle backend consumes only a few MB of RAM, though. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com