How do I know how many huge pages my hosts can support?

cat /proc/meminfo | grep Huge
 AnonHugePages:  17684480 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB 

image.png

And once I know, I set the kernel parameters here, and reboot the host, correct?

image.png


And then I assume I assign them to the VM here?  How do I decide how many huge pages and what size a particular VM can benefit from?

image.png


Is there a part of the docs I am not finding that covers this?