Hugepages here rely on multiple page size support in hardware to minimize
translation lookaside buffer (TLB) overhead in the CPU. As such, you can
only use the size or handful of sizes the CPU supports.
It is possible to do something similar in software alone, to create larger
than normal "virtual" pages, but while that may have certain internal
efficiencies, it doesn't reduce the TLB lookup overhead of all the smaller
physical pages at all.