Index: trunk/Ohana/src/opihi/cmd.data/test/peak.sh
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/test/peak.sh	(revision 8873)
+++ trunk/Ohana/src/opihi/cmd.data/test/peak.sh	(revision 9197)
@@ -4,4 +4,6 @@
  test2
  test3
+ test4
+ test5
 end
 
@@ -74,2 +76,44 @@
 end
 
+# test memory usage
+macro test4
+ $PASS = 1
+ break -auto off
+
+ create x 0 100
+ set y = zero (x)
+ y[60] = 2
+ y[50] = 1
+ y[40] = 2
+
+ echo "peak:"
+ exec ps aux | grep mana | grep -v grep
+ for i 0 100000
+   peak -q x y 45 55
+ end
+ exec ps aux | grep mana | grep -v grep
+
+ ## HOW do we test this?
+end
+
+# test memory usage
+macro test5
+ $PASS = 1
+ break -auto off
+
+ create x 0 100
+ set y = zero (x)
+ y[60] = 2
+ y[50] = 1
+ y[40] = 2
+
+ echo "peak:"
+ exec ps aux | grep mana | grep -v grep
+ for i 0 1000
+   peak x y 45 55
+ end
+ exec ps aux | grep mana | grep -v grep
+
+ ## HOW do we test this?
+end
+
