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 1vlTTA-00CjtJ-1b for pgsql-admin@arkaria.postgresql.org; Thu, 29 Jan 2026 14:58:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vlTT9-009jtT-15 for pgsql-admin@arkaria.postgresql.org; Thu, 29 Jan 2026 14:58:03 +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 1vlTT8-009jtK-37 for pgsql-admin@lists.postgresql.org; Thu, 29 Jan 2026 14:58:03 +0000 Received: from mail-yx1-xb136.google.com ([2607:f8b0:4864:20::b136]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vlTT7-000000001Ai-09lX for pgsql-admin@lists.postgresql.org; Thu, 29 Jan 2026 14:58:03 +0000 Received: by mail-yx1-xb136.google.com with SMTP id 956f58d0204a3-6495d592b58so993893d50.2 for ; Thu, 29 Jan 2026 06:58:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769698679; cv=none; d=google.com; s=arc-20240605; b=V76j/sNN42Q/7pZpJBIi5muqdulmGfgiKfiqiXGVEqwrOQujNt3tFXRrBFfCwjFN+R lmYi778W6wkPPspRWgDydVgt0IiOkpC0jpdl5eFpBstT75gp6aeJuFTgvTFjOxbSivFW CmEJVW/vvphmZElvxbkBgL0SknIoOgAke4SNomU6IpeDFRC2yCZZpUqm4OEb4pOYrd2Y aEvFgWvQY7ejNMiAh5nn5xpn+BbpeunsNMKw6eGjDPf9LO8H6MbApQguPfODuxDM5rVY thD5KsU5SNgpcxyRNGsLgj5UC9w2qZMWb8LFWzMZkNGea2Kk87WIeVdx5Abe0sEN9T9C ZpXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=7HVWEnh+4Om30JxwYkEiCEx+YHeCzoe+wcbXDZkVS/U=; fh=wzRT+LI42YyWYGi/gr8FIeUVJBEdTBsZqTDfm13V/zc=; b=JqT0WJkhdL3br48yNYlE1sDX4zystTWrZ3s4ZexVYKpUHvD12iNquMwtRqF7WSEAu4 po5InvfXrcw8Pg5vtQJZuM9bloA1dYCC8O8jy1pQy2BXdEzf14b81LoE6SkUTzsdLois M/LrZBjiLC2ZPwKPgzbz950w9AXYCT+d4LPy2/GUVomCXW2g/eMa2nDGMNAmp5dcs4Cd 8octqNV9yvRdQAyQKPEvJDrMu6G7gC/lpXR8PuVAO6dmQ9Gr2f/WQYIYH7GSXiRdxGQK JWzxoJao3BNiiytWI5GW1q13WvoaX7DY2piDOZvYoHTjTSYI91+OvKnx4hqUMFco+JJG olkA==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769698679; x=1770303479; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7HVWEnh+4Om30JxwYkEiCEx+YHeCzoe+wcbXDZkVS/U=; b=SpvakBiZIy/DFIPOhAKbIy16y3wKa7/Ot1gq8ag/hSj/2K0SQ9oiNVL/7GAWZMY3zG l1oVlb5UHKtrD+rBKxVHJOYR+4w2Or3j+zb6ZMPD3W3PqQDchYkgOW7nzeo7O6MEtAUU tU0LV6I4Ug+hBpnOfFKr00+dqUqR2E+VyYETIWYi0F8XygufI10rzeVrOuUsNy6sUDH6 dckvAytXJrxKIa1mT2g8UzKVgc73qcRcgkoX1cQVRwCtO+awwY6zbSOnaUKh3GdHoZns Pbfq48psd/gZL5muwGRmgOavYUp9h9Paveyx8+vZHinoRagksMrgAD8/ZZGkKLORsr4u MpVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769698679; x=1770303479; h=cc: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=7HVWEnh+4Om30JxwYkEiCEx+YHeCzoe+wcbXDZkVS/U=; b=mDuiI9jQheeDeHkn4i+ZshOuRUsHLEm14Cegv27dfz14d6XEuOngwlByfwSLamOE4s p1nPXI8oqSzyn9gy+DY3FZhvVUHIpQKgESPk7yreSZtSdMKCkS5bb8yjncLZNUGGdR3Y +Lj8ldbKxpXa8pD6nWOK+78zddw3XDeBIUxF+G1v4BwbGZtkzJAkJ7gk6u+kT4PzH3x5 utixXu9Zk/8pgFwa++yUKNF+r5QK/XJzfJ7MEB91yiUTYDYNjQZ729/3Oc89MyEC2kzL 9Tma4hvkzKWWH4TS/Efm1LZfeBtLLL+B+PgpCyLD7l33LCrsuSBKyYZ5MGqhw31L6dhX e4IA== X-Forwarded-Encrypted: i=1; AJvYcCWetW4lXS4RUS9WaksWwXE2tRkYUSoFiaHZkNZb1aGQ6IyNDwoe/F1toPj7MIpRAVKDCeprqWfUBDebWQ==@lists.postgresql.org X-Gm-Message-State: AOJu0YyH2SquWscuYAjJrABtetwCse9oX4Rn2I1/cjyFKkdnDSHMg/nX cVWFKrdCssixBRQek1nzYwzPM7BOm1pH0sN7ZO3DVmu2bVZVecwl/ut/eoKAXDm4VKXSXuErPJa btmegEFEVPG6EHER29iIgkj8HGCWE1VY= X-Gm-Gg: AZuq6aKhyLv9tlMqG4vDKuI6imlBrySjPBKe0GdfDaRorKR/pP1qCqEdLICEZuE8As+ oKflRUAb5CNkynChqpp6YbygCrOActOW7mFNBM6QIcHTQ3Id9xE7oTmLqksBVqpSK81/gXh+TAK SLJU3oQml0wrdw3jr8KnWUVq0/ulG6qp22IVyFegi2BR1WhwkIxOfFj+GVGQ/k8eMnUwRrozh7C c3xeSG07MgF6+DFq2VEtyOa97yK8cuTA601CVSdxmKdVEYFM0ObzggXdXGzvpMagfbaWmrky53b 73NaLz1Hl3b8Y2DtODJbeiNe7Km9 X-Received: by 2002:a05:690e:bc3:b0:63f:b5d8:9db2 with SMTP id 956f58d0204a3-6498fbd7f72mr6815671d50.14.1769698678768; Thu, 29 Jan 2026 06:57:58 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Alicja Kucharczyk Date: Thu, 29 Jan 2026 15:57:47 +0100 X-Gm-Features: AZwV_QhXOltNLcpU5RW57VhyRcjFhP9uZm3gUo7dL6T9Abb4M-GqAOP1rn4gSIQ Message-ID: Subject: Re: Setting huge_pages=off when HugePages are allocated in Linux? To: =?UTF-8?Q?Roland_M=C3=BCller?= Cc: Laurenz Albe , Ron Johnson , Pgsql-admin Content-Type: multipart/alternative; boundary="0000000000001b8cdc064988153b" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001b8cdc064988153b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > When does it make sense to use hugepages in Postgresql? > Usually when your shared memory footprint is very large, i.e. primarily very large shared_buffers. In practice, huge pages tend to pay off on dedicated, high-throughput systems where shared_buffers is really big (often tens of GB, and very commonly you start caring around ~100GB+) and you have high concurrency / tight latency goals. > Is usage of hugepages only available in release 18? > No, huge pages support has been around since PostgreSQL 9.4. But starting with PostgreSQL 15, it=E2=80=99s much easier to size/configure because Post= greSQL can tell you the required count via the runtime-computed setting shared_memory_size_in_huge_pages, before that you needed to calculate it on your own. regards, A.Kucharczyk --0000000000001b8cdc064988153b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

When does it make sense to use hugepages in Postgresql?=C2=A0
Usually when your shared memory footprint is very larg= e, i.e. primarily very large shared_buffers. In practice, huge pages tend t= o pay off on dedicated, high-throughput systems where shared_buffers is rea= lly big (often tens of GB, and very commonly you start caring around ~100GB= +) and you have high concurrency / tight latency goals.
=C2=A0
Is usage of hugepages only available in release 18?
No, huge pages support has been around since PostgreSQL= 9.4. But=C2=A0starting with PostgreSQL 15, it=E2=80=99s much easier to siz= e/configure because PostgreSQL can tell you the required count via the runt= ime-computed setting shared_memory_size_in_huge_pages, before that you need= ed to calculate it on your own.
=C2=A0
regards,
A.Kucharczyk=C2=A0
--0000000000001b8cdc064988153b--