Page MenuHomeVyOS Platform

VPP settings host-resources max-map-count does not affect sysctl changes
Closed, ResolvedPublicBUG

Description

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#

Details

Version
VyOS 2025.07.24-0021-rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Unknown Object (User) triaged this task as High priority.Jul 25 2025, 1:39 PM
natali-rs1985 claimed this task.
natali-rs1985 subscribed.

Movinghost-resources to another section. https://vyos.dev/T7678