concept huge page in category kubernetes

appears as: huge pages
Core Kubernetes

This is an excerpt from Manning's book Core Kubernetes.

HugePages configuration allows a Pod to access memory pages larger than the Linux kernel’s default memory page size, which is usually 4 KB. Many memory-intensive applications, like Elasticsearch and Cassandra, take advantage of using huge pages. If a Node supports huge pages and supports 2048 KiB page sizes, it exposes a schedulable resource, hugepages-2Mi.

In general, it is possible to schedule against huge pages in Kubernetes, using a standard resources directive:

resources:
  limits:
    hugepages-2Mi: 100Mi

Transparent huge pages are the optimization of huge pages that can have highly variable effects on Pods that need high performance. You’ll want to disable them, in some cases - especially for high performance containers that need large, contiguous blocks of memory.