Performance variances or deployment inconsistencies are observed across Cloud-Native Functions (CNFs) running on different Tanzu Kubernetes Grid (TKG) worker nodes.
CNF pods requiring specific Transparent Huge Pages (THP) memory management settings exhibit unexpected behavior depending on the underlying base image version.
To verify the active THP kernel argument set on the underlying worker nodes, run the following command on the target nodes:
grep -o 'transparent_hugepage=[a-z]*' /proc/cmdline
TCA 3.4
To guarantee consistent THP kernel settings across all Photon OS versions during instantiation, explicitly specify the required GRUB kernel arguments within the CNF’s CSAR (Cloud Service Archive) descriptor file:
Open the CSAR node customization / blueprint configuration file.
Update the grub section under kernel_args to enforce the desired THP parameters:
grub:
kernel_args:
- "transparent_hugepage=always"
# Optional: defrag mode adjustment
- "transparent_hugepage_defrag=madvise"Save and re-package the CSAR.
Onboard the updated CSAR to the VMware Telco Cloud Automation (TCA) catalog and proceed with CNF instantiation.
Note: If you run different Photon versions in the environment, then run a command grep -o 'transparent_hugepage=[a-z]*' /proc/cmdline before applying CSAR settings. If the output differs then apply the CSAR or you no need to push this settings.