diff options
| author | Daniil Baturin <daniil@vyos.io> | 2025-08-19 16:00:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-19 16:00:34 +0100 |
| commit | 4ad89d66634b7aa1464ae3e44bce179be48cc2bf (patch) | |
| tree | ba18ed6d8f6e17ab2d34c457e8c05638fd23dab3 /python | |
| parent | 41c9b0427b123041b0df5a2739468befb2f4e2db (diff) | |
| parent | 5fa2ba9bae1f3f86ad9aa5c13eefa0aff49fd7f4 (diff) | |
| download | vyos-1x-4ad89d66634b7aa1464ae3e44bce179be48cc2bf.tar.gz vyos-1x-4ad89d66634b7aa1464ae3e44bce179be48cc2bf.zip | |
Merge pull request #4647 from natali-rs1985/T7678
T7678: Move "vpp settings host-resources" to "system option resource-limits"
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/vpp/config_resource_checks/memory.py | 8 | ||||
| -rw-r--r-- | python/vyos/vpp/config_verify.py | 15 |
2 files changed, 0 insertions, 23 deletions
diff --git a/python/vyos/vpp/config_resource_checks/memory.py b/python/vyos/vpp/config_resource_checks/memory.py index bce2df2bb..66b9fd9a3 100644 --- a/python/vyos/vpp/config_resource_checks/memory.py +++ b/python/vyos/vpp/config_resource_checks/memory.py @@ -51,14 +51,6 @@ def get_total_hugepages_memory() -> int: return hugepage_size * hugepages_total -def get_total_hugepages_count() -> int: - """ - Returns the total count of hugepages - """ - info = get_hugepages_info() - return info.get('HugePages_Total') - - def get_numa_count(): """ Run `numactl --hardware` and parse the 'available:' line. diff --git a/python/vyos/vpp/config_verify.py b/python/vyos/vpp/config_verify.py index 8902cdccb..c6f43e340 100644 --- a/python/vyos/vpp/config_verify.py +++ b/python/vyos/vpp/config_verify.py @@ -19,7 +19,6 @@ import psutil from vyos import ConfigError -from vyos.base import Warning from vyos.utils.cpu import get_core_count as total_core_count from vyos.vpp.control_host import get_eth_driver @@ -393,20 +392,6 @@ def verify_vpp_interfaces_dpdk_num_queues(qtype: str, num_queues: int, workers: ) -def verify_vpp_host_resources(config: dict): - max_map_count = int(config['settings']['host_resources']['max_map_count']) - - # Get HugePages total count - hugepages = mem_checks.get_total_hugepages_count() - - if max_map_count < 2 * hugepages: - Warning( - 'The max-map-count should be greater than or equal to (2 * HugePages_Total) ' - 'or VPP could work not properly. Please set up ' - f'"vpp settings host-resources max-map-count" to {2 * hugepages} or higher' - ) - - def verify_routes_count(settings: dict, workers: int): """ Maximum routes count depending on main heap size, |
