Skip to content

clustermd_tests: control speed limits on both nodes#271

Open
Damenly wants to merge 1 commit into
md-raid-utilities:mainfrom
Damenly:control-clustermd-speed-limit
Open

clustermd_tests: control speed limits on both nodes#271
Damenly wants to merge 1 commit into
md-raid-utilities:mainfrom
Damenly:control-clustermd-speed-limit

Conversation

@Damenly
Copy link
Copy Markdown

@Damenly Damenly commented Jun 1, 2026

Before this commit, record_system_speed_limit() in clustermd_tests/func.sh is never called, but restore_system_speed_limit() is always called. Which means the original system speed limits cannot be restored.

The second issue is that clustermd_tests/func.sh:control_system_speed_limit() only sets local machine's speed_limit_min and speed_limit_max but remote node won't be influenced. This causes some cases like 03r1_switch-recovery to fail because the expected operation may have been done before check.

Here introduce array nodes_test_speed_limit_min and nodes_test_speed_limit_max to set raid sync speed limits for NODE1 and NODE2. nodes_system_speed_limit_min and nodes_system_speed_limit_max are for recording origin values.

NOTE: test_speed_limit_min and test_speed_limit_max are not used by clustermd_tests anymore. Many clustermd tests require slow speed on NODE1 but faster speed on NODE2 so nodes_test_speed_limit_min and nodes_test_speed_limit_max are necessary.

Assisted-by: Codex:gpt-5.5
Signed-off-by: Su Yue glass.su@suse.com

Before this commit, record_system_speed_limit() in clustermd_tests/func.sh
is never called, but restore_system_speed_limit() is always called.
Which means the original system speed limits cannot be restored.

The second issue is that
clustermd_tests/func.sh:control_system_speed_limit() only sets local
machine's speed_limit_min and speed_limit_max but remote node won't
be influenced. This causes some cases like 03r1_switch-recovery to fail
because the expected operation may have been done before check.

Here introduce array nodes_test_speed_limit_min and
nodes_test_speed_limit_max to set raid sync speed limits for NODE1 and
NODE2.
nodes_system_speed_limit_min and nodes_system_speed_limit_max are for
recording origin values.

NOTE:
test_speed_limit_min and test_speed_limit_max are not used by
clustermd_tests anymore. Many clustermd tests require slow speed on NODE1
but faster speed on NODE2 so nodes_test_speed_limit_min and
nodes_test_speed_limit_max are necessary.

Signed-off-by: Su Yue <glass.su@suse.com>
@Damenly Damenly force-pushed the control-clustermd-speed-limit branch from a3425f2 to e8f9286 Compare June 1, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant