aboutsummaryrefslogtreecommitdiffstats
path: root/case-ksm
blob: 71c3ca74109163f07efb95ce618afabffd12fbe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# This case exercises the ksm functionality of the kernel

. ./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