Out of the box the Linux Kernel from Raspberry Pi OS does not come with activated support for Huge Pages, but it can be activated while compiling your own Linux Kernel.
Instructions on how to compile the Linux Kernel for Raspberry Pi can be mostly found on this website:
https://www.raspberrypi.com/documentation/computers/linux_kernel.html
Huge Pages can improve the speed of crypto mining (like Monero) hashes by about 50% compared to the stock Kernel.
First install some reqirements for building and download the Kernel sources:
sudo su