What are huge pages and Transparent Huge Pages?
AdvancedConceptStorage & Memory
Answer
The default page is 4 KiB. Huge pages (2 MiB or 1 GiB) cut TLB misses for large-memory workloads. Static huge pages are reserved up front (vm.nr_hugepages) and used explicitly (Oracle, DPDK). THP lets the kernel use 2 MiB pages automatically, but compaction and khugepaged can cause latency spikes; MongoDB, Redis and many databases recommend madvise or never.
cat /sys/kernel/mm/transparent_hugepage/enabled
grep Huge /proc/meminfo
More on Storage & Memory
How do you list disks, partitions and filesystems?IntermediateMBR vs GPT partition tables?IntermediateWalk through adding a new disk and mounting it permanently.IntermediateExplain the six fields of an /etc/fstab line.IntermediateWhy use UUIDs and `nofail` in fstab?IntermediateWhat does a bad fstab entry do, and how do you recover?Advanced