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 1vL3mC-002PNp-0M for pgsql-general@arkaria.postgresql.org; Mon, 17 Nov 2025 18:16:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vL3mA-001OEG-2L for pgsql-general@arkaria.postgresql.org; Mon, 17 Nov 2025 18:16:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vL3mA-001OE7-1G for pgsql-general@lists.postgresql.org; Mon, 17 Nov 2025 18:16:30 +0000 Received: from mail-oa1-x31.google.com ([2001:4860:4864:20::31]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vL3m8-0002OO-14 for pgsql-general@lists.postgresql.org; Mon, 17 Nov 2025 18:16:30 +0000 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-3e83c40e9dfso2352491fac.1 for ; Mon, 17 Nov 2025 10:16:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763403386; x=1764008186; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=ypw2MwYwjN4hMHJzMek2zvEId4FpPa8utc8UFRINYdg=; b=Mjf/kb/nesSdq2962lKpiIFaitSaYbWxzUguKqMYBftMz/3HXptTAxmjay+UkLJefv MsZLRdTYIpgRufHf9jUBab77sg1n7LJQKAvBw7+CBx6YWpZWUlBX5iPxgIv6yIPCXk9t sEuHOgf8QO7voecRcE6eykO26rmxtMUekNhBIlJlJ+JrZWadnr9LoykOpxf+6ZmlBxNf bKlAtoPe5XBVkyFxBMcvoMNPDWtHS633yJ1s49/0vxJ6BE4Q8Cbpix4SxafTjq+e5kEZ M4rdhu1IORqKBpjbBIroMnOaF6mBwiyAS2yB2lBnwqW7DguZpUjdCO8HNDmI4z0ap3yk y1tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763403386; x=1764008186; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ypw2MwYwjN4hMHJzMek2zvEId4FpPa8utc8UFRINYdg=; b=DmCCl7zM/ahVExu95qRUONyDuPVdu4vRUin/pMhXMHyMTrM6dwTz+A4ZnjC++qUiHJ 12SgaiUlBB6wMvjPVpQOfuHPvK7xoeP1qQubQlHuH6IjJn3aaolHCx/StBSdOzDcao4c kOr1m6xAN0DLERxjxRCgHwoSyW4ACQ2Jew0VHafNQzA+f21mYwGMjOG5Dc/SBLauWAiK 19j2j2HcB4PSLb93nm4u+E8Y6SLDBzLu6nEK94xffZHQUjkbvPfCCO/MdL8nG4rA4cgS zUnC6nJCuKXyU+5nsfidVBq/VE8K1TeFzpTYfh5MIXVF65o6A/cI6vglbZsgFjCe600E rQMQ== X-Gm-Message-State: AOJu0Yyazg5cAV08Qf4EFu/t3QocK4z6/FK7Y5+gWCriQU4E1/GzV5bC zEJt4h+LeOy1jZaCLXq1j3dtpN4fCFMnIaTJ+FOpkyFVL8NucV3uC1izNddRKSi6EkPxfbn6qXO 49vpjdnPVx16BXXw/Mks2X+rlBXSP5Zc+cL32 X-Gm-Gg: ASbGncua+xWdjTX6ZutDkDZ4KNlX3yc7Rz0y5yZzBJG3Um1J8LX7swknWkVi+f5EORF 0lBZmQ6er8T99Gudrr/RmK8URY3o9udB8qWqTHiH/spgh+92jfr5K1JZX6eFrgsq7Cm4N3P1nYb p/GoCC/Uybt8+Tev4OFIQxX83ldirluMBTl63OaA0vZGiRk9zHD03GlQs5lDykvv4edNDh3OPHa L/9wY4PuneVIer4ph1PZdVPG4NaLVrbbY9mGqPBXDpLi35F8Ks8+oJ6D2U2jw== X-Google-Smtp-Source: AGHT+IFysjlEj17bQJ9y41Bgr7dOkRMhUyoFLYDY8GFNy71t4pJulDLKOeZbgvrMzrmLZdE0Nvv3SC/KeGw2ixjFFro= X-Received: by 2002:a05:6870:1b13:b0:3ec:4edf:d82e with SMTP id 586e51a60fabf-3ec4edfdc25mr1512313fac.35.1763403385526; Mon, 17 Nov 2025 10:16:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ron Johnson Date: Mon, 17 Nov 2025 13:16:14 -0500 X-Gm-Features: AWmQ_bmTCGYqXagPFvkXQzkI39ZzQvGya_eB9dj6tffDn4RbZMqtETORUS-k7vU Message-ID: Subject: Re: postgres in swap space To: "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000063dec20643ce5899" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000063dec20643ce5899 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Nov 17, 2025 at 12:25=E2=80=AFPM Marc Millas wrote: > hello, > Can someone point me to any doc describing why and how much space postgre= s > 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) > Swap as in RAM swap space? If so, then it uses as much or as little as Linux thinks needs to be used, given the amount of RAM. effective_cache_size, work_mem, shared_buffers, maintenance_work_mem, max_worker_* and max_parallel_* affect how much RAM PG uses, in conjunction with the number of active connections (including maintenance work). https://postgresqlco.nf/doc/en/param/ is a handy resource. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --00000000000063dec20643ce5899 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Nov 17, 2025 at 12:25=E2=80=AFPM = Marc Millas <marc.millas@mokad= b.com> wrote:
=
hel= lo,
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, pleas= e)
=C2=A0
Swap as in RAM swap = space?=C2=A0 If so, then it uses as much or as little as Linux thinks needs= to be used, given the amount of RAM.

effective_ca= che_size,=C2=A0work_mem,=C2=A0shared_buffers, maintenance_work_mem,=C2=A0ma= x_worker_* and=C2=A0max_parallel_* affect how much RAM PG uses, in conjunct= ion with the number of active connections (including maintenance work).


<= /div>--
Death to <Redacted>, and b= utter sauce.
Don't boil me, I'm still alive.
<R= edacted> lobster!
--00000000000063dec20643ce5899--