VPP settings host-resources max-map-count does not affect sysctl changes
Current value:
vyos@r14# sudo sysctl vm.max_map_count vm.max_map_count = 65530 [edit] vyos@r14#
Config:
set system option kernel disable-mitigations set system option kernel memory hugepage-size 2M hugepage-count '3072' set vpp settings interface eth1 driver 'dpdk' set vpp settings unix poll-sleep-usec '222'
The max_map_count is getting from the defaultValue during vpp config
So the system, by default,t has more max_map_count that we set in the defaultValues
This way, this commit fails:
The max_map_count must be greater than or equal to (2 * HugePages_Total) [[vpp]] failed Commit failed [edit] vyos@r14# vyos@r14# sudo sysctl vm.max_map_count vm.max_map_count = 65530 [edit] vyos@r14#
Change the max_map_count via CLI, and we still see the 65530
vyos@r14# set vpp settings host-resources max-map-count 8192 [edit] vyos@r14# commit [ vpp ] [edit] vyos@r14# [edit] vyos@r14# [edit] vyos@r14# sudo sysctl vm.max_map_count vm.max_map_count = 65530 [edit] vyos@r14#