pcp
[Top] [All Lists]

[PATCH] qa/pmdalinux: More qa for mem.numa.max_bandwidth

To: pcp@xxxxxxxxxxx
Subject: [PATCH] qa/pmdalinux: More qa for mem.numa.max_bandwidth
From: Hemant Kumar <hemant@xxxxxxxxxxxxxxxxxx>
Date: Fri, 13 May 2016 08:48:46 +0530
Cc: nathans@xxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
Add tests for multinode configuration.

Signed-of-by: Hemant Kumar <hemant@xxxxxxxxxxxxxxxxxx>
---
 qa/826 | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

diff --git a/qa/826 b/qa/826
index 6d28469..c3d03ec 100755
--- a/qa/826
+++ b/qa/826
@@ -44,7 +44,8 @@ local="-L -K clear -K add,60,$pmda"
 rm -fr $root
 mkdir $root || _fail "temporary root already in use?"
 cd $root
-tar xzf $here/linux/meminfo-*.tgz
+# For single node tests
+tar xzf $here/linux/meminfo-root-001.tgz
 
 [ -f "$config" ] && _save_config "$config"
 echo "== Checking max metric value with no bandwidth.conf"
@@ -71,6 +72,33 @@ $sudo cp $tmp.config "$config"
 pminfo $local -f mem.numa.max_bandwidth 2>&1 | _filter
 echo
 
+# Multinode tests start here
+tar xzf $here/linux/meminfo-root-002.tgz
+
+echo "== Checking max metric value with multinode bandwidth.conf"
+echo 'Version:1.0' > $tmp.config
+echo 'node0:1024' >> $tmp.config
+echo 'node1:1024' >> $tmp.config
+$sudo cp $tmp.config "$config"
+pminfo $local -f mem.numa.max_bandwidth 2>&1 | _filter
+echo
+
+echo "== Checking max metric value with one bad node in bandwidth.conf"
+echo 'Version:1.0' > $tmp.config
+echo 'node0:1024' >> $tmp.config
+echo 'node11:8192' >> $tmp.config
+$sudo cp $tmp.config "$config"
+pminfo $local -f mem.numa.max_bandwidth 2>&1 | _filter
+echo
+
+echo "== Checking max metric value with multiple bad nodes in bandwidth.conf"
+echo 'Version:1.0' > $tmp.config
+echo 'xyz:1024' >> $tmp.config
+echo 'abc:8192.444' >> $tmp.config
+$sudo cp $tmp.config "$config"
+pminfo $local -f mem.numa.max_bandwidth 2>&1 | _filter
+echo
+
 # success, all done
 status=0
 exit
-- 
1.9.3

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] qa/pmdalinux: More qa for mem.numa.max_bandwidth, Hemant Kumar <=