@@ -24,7 +24,7 @@ from lib.globals import (STATE_CRIT, STATE_OK, # pylint: disable=C0413
2424 STATE_UNKNOWN , STATE_WARN )
2525
2626__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
27- __version__ = '2025053001 '
27+ __version__ = '2025062901 '
2828
2929DESCRIPTION = """Returns information and statistics about a Valkey server. Alerts on memory
3030 consumption, memory fragmentation, hit rates and more."""
@@ -337,15 +337,15 @@ def main():
337337 msg += ', '
338338
339339 # kernel transparent_hugepage is not set to "madvise" or "never"
340- thp_enabled = lib . base . coe ( lib . disk . read_file ( '/sys/kernel/mm/transparent_hugepage/enabled' ))
341- if '[always]' in thp_enabled :
342- # on systems in which kernel transparent huge pages is set to "always",
343- # valkey might have latency problems specifically with fork(2) and CoW
344- msg += 'kernel transparent_hugepage is not set to "madvise" or "never"'
345- if not args . IGNORE_THP :
340+ if not args . IGNORE_THP :
341+ thp_enabled = lib . base . coe ( lib . disk . read_file ( '/sys/kernel/mm/transparent_hugepage/enabled' ))
342+ if '[always]' in thp_enabled :
343+ # on systems in which kernel transparent huge pages is set to "always",
344+ # valkey might have latency problems specifically with fork(2) and CoW
345+ msg += 'kernel transparent_hugepage is not set to "madvise" or "never"'
346346 msg += lib .base .state2str (STATE_WARN , prefix = ' ' )
347347 state = lib .base .get_worst (state , STATE_WARN )
348- msg += ', '
348+ msg += ', '
349349
350350 # net.core.somaxconn (128) is lower than net.ipv4.tcp_max_syn_backlog (256)
351351 somaxconn = lib .base .coe (lib .disk .read_file ('/proc/sys/net/core/somaxconn' ))
0 commit comments