Page MenuHomeVyOS Platform

Add operational mode for VPP with recommended configuration options and calculations
In progress, NormalPublicFEATURE REQUEST

Description

Summary

Add operational mode for VPP with recommended configuration options and calculations
Based on the number of expected prefixes, generate configuration recommendation for VPP

Use case

Help to set the correct parameters for VPP depending on amount of prefixes

Additional information
For example, for 1.000.000 prefixes and 2 workers
Proposed CLI:

generate vpp config prefixes 1000000 workers 2

will generate output:

set system option kernel memory default-hugepage-size '2M'
set system option kernel memory hugepage-size 2M hugepage-count '3000'
set vpp settings memory main-heap-page-size 2M
set vpp settings memory main-heap-size 3G
set vpp settings statseg size 128M

More complex config can include maximum recommended memory utilization (optional)

generate vpp config max-memory

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Related Objects

Event Timeline

Viacheslav changed the task status from Open to In progress.
Viacheslav claimed this task.
Viacheslav triaged this task as Normal priority.

Since its a generate command, could the output also include the maths behind selected values?

Something like (making up text):

! Should be 2M or 16M on x86 systems.
set system option kernel memory default-hugepage-size '2M'
! Should be 2M or 16M on x86 systems, optimal 1500 count per worker.
set system option kernel memory hugepage-size 2M hugepage-count '3000'
! Should be 2M or 16M on x86 systems.
set vpp settings memory main-heap-page-size 2M
! Max 3G for 32bit compatability.
set vpp settings memory main-heap-size 3G
! Minimum 16M, estimate 135 bytes per state.
set vpp settings statseg size 128M