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.96) (envelope-from ) id 1vL5lS-003dzh-1a for pgsql-general@arkaria.postgresql.org; Mon, 17 Nov 2025 20:23:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vL5lR-001r5l-0H for pgsql-general@arkaria.postgresql.org; Mon, 17 Nov 2025 20:23:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vL5lQ-001r5d-2R for pgsql-general@lists.postgresql.org; Mon, 17 Nov 2025 20:23:53 +0000 Received: from mail-200165.simplelogin.co ([176.119.200.165]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vL5lO-0002sc-20 for pgsql-general@lists.postgresql.org; Mon, 17 Nov 2025 20:23:52 +0000 ARC-Seal: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1763411029; cv=none; b=wdRmj02mCLqPgXrsZoO94O+zqO2O0Jb4W+QbewGGxRtDxDQ9EwsI6kHe0d44DzzvYjYT6yRDpvEmAUNIwfm1qwBqXpjdCfimwsDl/r19szvTnuM0zfjjvlyVfLpY5FpJQ1Gr5Ulz67flTZBa5gi6dZLx6/ZfS/PbtACHNak7t65WRWHDhY3VTTXS9zrOGwA7zzveOEvanIMhFgyjBAzL0WievIexzp0lCUgXeU6KNQD+xO1/QYq6nZAFuKPF4hdP3sY+TdjtevilCa8k3c8bnsB8W984BtpkZugpEhN0WIeaoszWcVGJVipTvnbqUgN2rEjw1ZRP+d73+GrA8AXPxw== ARC-Message-Signature: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1763411029; c=relaxed/simple; bh=07yjwSD/jgtSQ3bYCZ+nT5zQ9YQLDYjX1Yh/4OmEbMc=; h=Date:Subject:In-Reply-To:From:To:References; b=b1MIerqYtZncxB+5vDlfS6Y3Jplm9UmHvY/CO66vpV8VLFbV2Fbkl6PPYwLErnnP7fwY8jLtJ9mWAaMF/2D6F0gn4/CrokHP/6r95HRp4UJLkpFvChlF7nFOro+qe8MOXXIS6U5VaRf2cBSaCA4msLY8qhi4CpNWAWozU3iHVMzCUK4i3fNExJT9dAsqwnhhblB+v7H/U3UPEasi29CzXKEq3usmCsUfb4Z0Bby+fL80rDGM5Wysuhf3NTBscHmu+H+kSCsBOqXM+KtdesNByTVR5hRSLBrExeXPj9NY1Ga++X6PDub+Cnv6molW6YTER/E+WTBu8ZBm1kONeBaNrA== ARC-Authentication-Results: i=1; mail.protonmail.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=georgiou.vip; s=dkim; t=1763411029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VeidiOmjFCB8YerJuwiFg9OFW/pVT/DlBl0bmJyHlk4=; b=SFkBe8ad0KfuMdF9dzvhUjx9Z70dkdr8H6yAKL3RzUMJ8SaH+GHypjyK/pdXTg+VKD79ym S++KYXbMXq/LOUINAdYtMTIRi0HupLEZB64xD2iXUnkr/Y/6JNVPONSYF3ayUOv5duyu6L yGiiBQDA8gJcjJ9IL7PJ+De2zyunLqM= Content-Type: multipart/alternative; boundary="------------0rAGwVNwMQZgvzGvKFzjP1zE" Date: Mon, 17 Nov 2025 15:23:45 -0500 MIME-Version: 1.0 Subject: Re: postgres in swap space In-Reply-To: Content-Transfer-Encoding: 7bit From: pg254kl@georgiou.vip To: "pgsql-general@lists.postgresql.org" Message-ID: <176341102890.7.18257482502754438507.1011873319@georgiou.vip> References: X-SimpleLogin-Type: Reply X-SimpleLogin-EmailLog-ID: 1011873319 X-SimpleLogin-Want-Signing: yes List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------0rAGwVNwMQZgvzGvKFzjP1zE Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Putting memory pages to swap is the decision of the linux virtual memory=20 manager not postgres.=C2=A0 If your db machine is swapping, first make su= re=20 you have set sensible values for the ram related settings like=20 shared_buffers (25%), effective_cache_size (75%) and work_mem (keep it=20 modest at 4 to 16 MB). On 11/17/25 12:25 PM, Marc Millas - marc.millas at mokadb.com wrote: > hello, > Can someone point me to any doc describing why and how much=C2=A0space=20 > postgres uses on the swap of a debian machine ? > it's an old postgres 10, because it is used by a product for which=20 > only this version is certified. > (no comment on that, please) > > regards > > Marc MILLAS > Senior Architect > +33607850334 > www.mokadb.com > --=20 regards, Kiriakos Georgiou --------------0rAGwVNwMQZgvzGvKFzjP1zE Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Putting memory pages to swap is the decision of the linux virtual memory manager not postgres.=C2=A0 If your db machine is swapping, first make sure you have set sensible values for the ram related settings like shared_buffers (25%), effective_cache_size (75%) and work_mem (keep it modest at 4 to 16 MB).=C2=A0=C2=A0

On 11/17/25 12:25 PM, Marc Millas - marc.millas at mokadb.com wrote:
hello,
Can someone point me to any doc describing why and how much=C2=A0space postgres uses on the swap of a debian machine ?=
it's an old postgres 10, because it is used by a product for which only this version is certified.
(no comment on that, please)

regards

Marc MILLAS
Senior Architect
+33607850334

--=20
regards,
Kiriakos Georgiou
--------------0rAGwVNwMQZgvzGvKFzjP1zE--