diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2012-11-27 20:21:57 +0800 |
---|---|---|
committer | Fengguang Wu <fengguang.wu@intel.com> | 2012-11-27 20:29:13 +0800 |
commit | c5c082bbb65d1b1f254870a1203afd576e20d1ec (patch) | |
tree | b125457a02284ddc5c4cd954b242dee8e93ee783 | |
parent | d898283aa449ed5284b230ec6b9e009a73a42c03 (diff) | |
download | vm-scalability-c5c082bbb65d1b1f254870a1203afd576e20d1ec.tar.gz |
Abhinav's work on case-ksm
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
-rw-r--r-- | case-ksm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/case-ksm b/case-ksm new file mode 100644 index 0000000..205a915 --- /dev/null +++ b/case-ksm @@ -0,0 +1,18 @@ +#!/bin/bash + +# This case exercises the ksm functionality of the kernel + +source ./hw_vars + +# Trun on the ksm +echo 1 > /sys/kernel/mm/ksm/run + +# USEMEM_KSM exercises the functions in ksm.c file +USEMEM_KSM=./usemem_ksm + +# create as many processes as there are nodes +for i in `seq $((nr_node))` +do +$USEMEM_KSM $((mem / 1000)) & +done +wait |