All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] controllers/cpuset: Restore the value of cpuset.sched_load_balance
@ 2021-04-22  8:20 Wang Xin
  2021-04-29  8:32 ` [LTP] 答复: " wangxin
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Xin @ 2021-04-22  8:20 UTC (permalink / raw)
  To: ltp

When we run the cpuhotplug03 test case on the arm64 machine,
we conclude that no error occurs when the cpuhotplug03 case is executed alone,
but once the cpuset_sched_domains case is executed first,
After cpuhotplug03 is executed, the error "cpuhotplug03 1 TFAIL: No cpuhotplug_do_spin_loop processes found on" occurs.
The cpuset_sched_domains test case changes the value of cpuset.sched_load_balance in the cpuset cgroup subsystem,
but does not restore the value at the end of the test.
Modify the cpuset_funcs.sh file. The test result shows that the problem is solved successfully.

Signed-off-by: Wang Xin <wangxin410@huawei.com>
---
 testcases/kernel/controllers/cpuset/cpuset_funcs.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
index 00aad0e..820de33 100755
--- a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
+++ b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
@@ -59,6 +59,8 @@ CPUSET="/dev/cpuset"
 CPUSET_TMP="/tmp/cpuset_tmp"
 CLONE_CHILDREN="/dev/cpuset/cgroup.clone_children"
 CHILDREN_VALUE="0"
+SCHED_LB="/dev/cpuset/cpuset.sched_load_balance"
+SCHED_LB_VALUE="0"
 HOTPLUG_CPU="1"
 cpuset_log()
@@ -169,6 +171,7 @@ setup()
 	fi
 	CHILDREN_VALUE="`cat $CLONE_CHILDREN`"
+	SCHED_LB_VALUE="`cat $SCHED_LB`"
 }
 # Write the cleanup function
@@ -180,6 +183,7 @@ cleanup()
 	}
 	echo $CHILDREN_VALUE > $CLONE_CHILDREN
+	echo $SCHED_LB_VALUE > $SCHED_LB
 	find "$CPUSET" -type d | sort | sed -n '2,$p' | tac | while read subdir
	do
2.6.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [LTP] 答复: [PATCH] controllers/cpuset: Restore the value of cpuset.sched_load_balance
  2021-04-22  8:20 [LTP] [PATCH] controllers/cpuset: Restore the value of cpuset.sched_load_balance Wang Xin
@ 2021-04-29  8:32 ` wangxin
  0 siblings, 0 replies; 2+ messages in thread
From: wangxin @ 2021-04-29  8:32 UTC (permalink / raw)
  To: ltp

Hi,

	Please ignore this patch. When I was making this patch,
	I used an incorrect method to fix my formatting problem. 
	Now I've remade a new patch, please check out the v2 version.

Kind regards,
Wang Xin


-----????-----
???: wangxin (CQ) 
????: 2021?4?22? 16:21
???: ltp@lists.linux.it
??: wangxin (CQ) <wangxin410@huawei.com>
??: [PATCH] controllers/cpuset: Restore the value of cpuset.sched_load_balance

When we run the cpuhotplug03 test case on the arm64 machine, we conclude that no error occurs when the cpuhotplug03 case is executed alone, but once the cpuset_sched_domains case is executed first, After cpuhotplug03 is executed, the error "cpuhotplug03 1 TFAIL: No cpuhotplug_do_spin_loop processes found on" occurs.
The cpuset_sched_domains test case changes the value of cpuset.sched_load_balance in the cpuset cgroup subsystem, but does not restore the value at the end of the test.
Modify the cpuset_funcs.sh file. The test result shows that the problem is solved successfully.

Signed-off-by: Wang Xin <wangxin410@huawei.com>
---
 testcases/kernel/controllers/cpuset/cpuset_funcs.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
index 00aad0e..820de33 100755
--- a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
+++ b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
@@ -59,6 +59,8 @@ CPUSET="/dev/cpuset"
 CPUSET_TMP="/tmp/cpuset_tmp"
 CLONE_CHILDREN="/dev/cpuset/cgroup.clone_children"
 CHILDREN_VALUE="0"
+SCHED_LB="/dev/cpuset/cpuset.sched_load_balance"
+SCHED_LB_VALUE="0"
 HOTPLUG_CPU="1"
 cpuset_log()
@@ -169,6 +171,7 @@ setup()
 	fi
 	CHILDREN_VALUE="`cat $CLONE_CHILDREN`"
+	SCHED_LB_VALUE="`cat $SCHED_LB`"
 }
 # Write the cleanup function
@@ -180,6 +183,7 @@ cleanup()
 	}
 	echo $CHILDREN_VALUE > $CLONE_CHILDREN
+	echo $SCHED_LB_VALUE > $SCHED_LB
 	find "$CPUSET" -type d | sort | sed -n '2,$p' | tac | while read subdir
	do
2.6.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-29  8:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22  8:20 [LTP] [PATCH] controllers/cpuset: Restore the value of cpuset.sched_load_balance Wang Xin
2021-04-29  8:32 ` [LTP] 答复: " wangxin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.