Changing hugepages can affect and VPP config cannot load after this action
- Initial configuration
set system option kernel disable-mitigations set system option kernel memory hugepage-size 2M hugepage-count '1650' set vpp settings interface eth1 driver 'dpdk' set vpp settings unix poll-sleep-usec '222'
All works fine. We can reboot this configuration several times, no issues.
- We decide to increase the number of hugepages to 3072:
vyos@r14# set system option kernel memory hugepage-size 2M hugepage-count 3072 [edit] vyos@r14# commit [edit] vyos@r14# save [edit] vyos@r14# run reboot now
After reboot, we do not have VPP configuration at all:
vyos@r14:~$ show vpp interfaces
VPP interfaces not configured
vyos@r14:~$
vyos@r14:~$ conf
WARNING: There was a config error on boot: saving the configuration now could overwrite data.
You may want to check and reload the boot config
[edit]
vyos@r14#
[edit]
vyos@r14# load
Load complete. Use 'commit' to make changes effective.
[edit]
vyos@r14# compare
+ vpp {
+ settings {
+ interface eth1 {
+ driver "dpdk"
+ }
+ unix {
+ poll-sleep-usec "222"
+ }
+ }
+ }
[edit]
vyos@r14# commit
[ vpp ]
The max_map_count must be greater than or equal to (2 * HugePages_Total)
[[vpp]] failed
Commit failed
[edit]
vyos@r14#