Configuring Huge Pages for PostgreSQL on Linux

Huge pages are a Linux kernel feature that allocates larger memory pages (typically 2 MB or 1 GB instead of the normal 4 KB). PostgreSQL’s shared buffer pool and dynamic shared memory segments are often tens of gigabytes, and using huge pages reduces the number of pages the processor must manage. Fewer page‑table entries mean … Read more

Two Ways to Create Multi-Size THP Transparent Huge Pages

Two Ways to Create Multi-Size THP Transparent Huge Pages

Follow to see more great articles like this~ Multi-size THP creation, two different ways By Jonathan CorbetFebruary 13, 2025Gemini-1.5-flash translationhttps://lwn.net/Articles/1009039/ Huge pages (巨页) can enhance the performance of many programs, but they can also bring adverse performance impacts. In recent years, multi-size transparent huge pages (mTHPs) (多尺寸透明巨页) have increasingly been seen as a compromise that … Read more

Multi-Size THP Creation: Two Different Approaches

Multi-Size THP Creation: Two Different Approaches

February 13, 2025 The primary benefit from subscribing to LWN is helping to keep us publishing, but, beyond that, subscribers get immediate access to all site content and access to a number of extra site features. Please sign up today! The primary benefit from subscribing to LWN is helping us maintain our publishing, but beyond … Read more

Sharing Use Cases of Standard Huge Pages in Linux

Sharing Use Cases of Standard Huge Pages in Linux

Background Introduction An Oracle instance running on a cluster in RHEL is started using the systemd service (to facilitate cluster switching operations). During testing, it was found that standard huge pages were not being utilized. The specific situation is as follows: $ grep HugePages /proc/meminfo AnonHugePages: 0 kB ShmemHugePages: 0 kB FileHugePages: 0 kB HugePages_Total: … Read more

Linux Memory Management: Huge Pages

Linux Memory Management: Huge Pages

1. IntroductionRecently, a group member in our WeChat group encountered a problem: on an ARMv8 architecture CPU, after the Linux system starts, when dynamically enabling 1G huge pages, the maximum contiguous memory allocated is only 32M.This has caused confusion among everyone, and with this issue in mind, today we will discuss huge pages.2. What are … Read more