summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2025-08-19 17:28:44 +0300
committerNataliia Solomko <natalirs1985@gmail.com>2025-08-19 17:28:44 +0300
commit5fa2ba9bae1f3f86ad9aa5c13eefa0aff49fd7f4 (patch)
tree609e472757978fabc328637f1b1b8b7e3c587d15 /src
parent3bfcf335c5f16a6c814710b01f38342c40f85a8d (diff)
downloadvyos-1x-5fa2ba9bae1f3f86ad9aa5c13eefa0aff49fd7f4.tar.gz
vyos-1x-5fa2ba9bae1f3f86ad9aa5c13eefa0aff49fd7f4.zip
T7678: Change node name to resource-limits
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/system_option.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/system_option.py b/src/conf_mode/system_option.py
index 92f644437..303557412 100755
--- a/src/conf_mode/system_option.py
+++ b/src/conf_mode/system_option.py
@@ -267,7 +267,7 @@ def apply(options):
else:
write_file(kernel_dynamic_debug, f'module {module} -p')
- if 'host_resources' in options:
+ if 'resource_limits' in options:
unit_map = {'M': 1 << 20, 'G': 1 << 30}
total_pages = 0
@@ -283,8 +283,8 @@ def apply(options):
max_map_count_min = 65530 # ensures large workload compatibility
shmmax_min = 8589934592 # 8 GiB safe default for large allocations
- max_map_count_conf = options['host_resources'].get('max_map_count', 'auto')
- shmmax_conf = options['host_resources'].get('shmmax', 'auto')
+ max_map_count_conf = options['resource_limits'].get('max_map_count', 'auto')
+ shmmax_conf = options['resource_limits'].get('shmmax', 'auto')
parameters = {
'vm.max_map_count': (