Skip to contentSkip to conversation

add cpuplugd testcase

PATCH New Elif Aslan 1 participant 1 message Feb 27, 2019

lore
Share & tools
lore

Elif Aslan

author
#0 lore raw

PATCH 1/1 add cpuplugd testcase

---
 runtest/s390x_tests                           |   3 +
 testcases/commands/cpuplugd/README.md         |  35 ++
 testcases/commands/cpuplugd/cmm.conf          |  10 +
 testcases/commands/cpuplugd/cpu.conf          |   8 +
 testcases/commands/cpuplugd/cpuplugd.conf     |  15 +
 testcases/commands/cpuplugd/cpuplugd.sh       | 477 ++++++++++++++++++
 testcases/commands/cpuplugd/cpuplugdcmm.conf  |  10 +
 testcases/commands/cpuplugd/cpuplugdtemp.conf |  15 +
 testcases/commands/cpuplugd/mon_fsstatd.sh    | 154 ++++++
 9 files changed, 727 insertions(+)
 create mode 100644 runtest/s390x_tests
 create mode 100644 testcases/commands/cpuplugd/README.md
 create mode 100644 testcases/commands/cpuplugd/cmm.conf
 create mode 100644 testcases/commands/cpuplugd/cpu.conf
 create mode 100644 testcases/commands/cpuplugd/cpuplugd.conf
 create mode 100644 testcases/commands/cpuplugd/cpuplugd.sh
 create mode 100644 testcases/commands/cpuplugd/cpuplugdcmm.conf
 create mode 100644 testcases/commands/cpuplugd/cpuplugdtemp.conf
 create mode 100644 testcases/commands/cpuplugd/mon_fsstatd.sh
runtest/s390x_tests new file +3 -0
new file mode 100644
index 000000000..b05b2f58b
@@ -0,0 +1,3 @@
+# Those tests are designed to be executed in s390x environment (zVM or LPAR)
+cpuplugd cpuplugd.sh
+mon_fsstatd mon_fsstatd.sh
testcases/commands/cpuplugd/README.md new file +35 -0
new file mode 100644
index 000000000..6cf33f212
@@ -0,0 +1,35 @@
+# cpuplugd mon_fsstatd tools test
+
+cpuplugd: Daemon that manages CPU and memory resources based on a set of rules.
+Depending on the workload CPUs can be enabled or disabled.
+The amount of memory can be increased or decreased exploiting the Cooperative Memory Management (CMM1) feature.
+
+## Getting started
+
+The test case contains the following scripts:
+
+- **cmm.conf** _configuration file_
+- **cpu.conf** _configuration file_
+- **cpuplugd.conf** _configuration file_
+- **cpuplugd.sh** _verification of cpuplugd tool_
+- **cpuplugdcmm.conf** _configuration file_
+- **cpuplugdtemp.conf** _configuration file_
+- **mon_fsstatd.sh** _mon tool tests_
+
+## Prerequisites
+
+z/VM guest or LPAR must be prepared to be populated with guest OS
+
+## Installation
+
+Scripts are to be copied into the target test system
+
+## Running the tests
+
+runtest/s390x_tests contains all the necessary commands to be executed:
+`./cpuplugd.sh`
+`./mon_fsstatd.sh`
+
+## License
+
+The files in this directory are licensed under the GPL v2+ license.
testcases/commands/cpuplugd/cmm.conf new file +10 -0
new file mode 100644
index 000000000..59e71f726
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+UPDATE="1"
+
+CMM_MIN="5000"
+CMM_INC="100"
+CMM_MAX="20000"
+
+MEMPLUG="swaprate < 200"
+MEMUNPLUG="swaprate > 5000"
testcases/commands/cpuplugd/cpu.conf new file +8 -0
new file mode 100644
index 000000000..6a84d8177
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+CPU_MIN="1"
+CPU_MAX="3"
+UPDATE="1"
+
+HOTPLUG="(loadavg > onumcpus + 0.75) & (idle < 10.0)"
+HOTUNPLUG="(loadavg < onumcpus - 0.25) | (idle > 50)"
testcases/commands/cpuplugd/cpuplugd.conf new file +15 -0
new file mode 100644
index 000000000..09d76b993
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+CPU_MIN="1"
+CPU_MAX="3"
+UPDATE="1"
+
+HOTPLUG="(loadavg > onumcpus + 0.75) & (idle < 10.0)"
+HOTUNPLUG="(loadavg < onumcpus - 0.25) | (idle > 50)"
+
+CMM_MIN="0"
+CMM_INC="10"
+CMM_MAX="10"
+
+MEMPLUG="swaprate < 200"
+MEMUNPLUG="swaprate > 5000"
testcases/commands/cpuplugd/cpuplugd.sh new file +477 -0

477 lines not on this page · raw message

testcases/commands/cpuplugd/cpuplugdcmm.conf new file +10 -0
new file mode 100644
index 000000000..ca393249e
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+UPDATE="1"
+
+CMM_MIN="0"
+CMM_INC="10"
+CMM_MAX="10"
+
+MEMPLUG="swaprate < 200"
+MEMUNPLUG="swaprate > 5000"
testcases/commands/cpuplugd/cpuplugdtemp.conf new file +15 -0
new file mode 100644
index 000000000..157422780
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+CPU_MIN="1"
+CPU_MAX="3"
+UPDATE="1"
+
+HOTPLUG="(loadavg > onumcpus + 0.75) & (idle < 10.0)"
+HOTUNPLUG="(loadavg < onumcpus - 0.25) | (idle > 50)"
+
+#CMM_MIN="0"
+CMM_INC="10"
+CMM_MAX="10"
+
+MEMPLUG="swaprate < 200"
+MEMUNPLUG="swaprate > 5000"
testcases/commands/cpuplugd/mon_fsstatd.sh new file +154 -0

154 lines not on this page · raw message

Signature · 1 line
2.17.2 (Apple Git-113)