WIP FPC-III support
[linux/fpc-iii.git] / tools / testing / selftests / vm / write_hugetlb_memory.sh
blobd3d0d108924d4e6b5f470755d4d8ffbbb41bf767
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
4 set -e
6 size=$1
7 populate=$2
8 write=$3
9 cgroup=$4
10 path=$5
11 method=$6
12 private=$7
13 want_sleep=$8
14 reserve=$9
16 echo "Putting task in cgroup '$cgroup'"
17 echo $$ > /dev/cgroup/memory/"$cgroup"/cgroup.procs
19 echo "Method is $method"
21 set +e
22 ./write_to_hugetlbfs -p "$path" -s "$size" "$write" "$populate" -m "$method" \
23 "$private" "$want_sleep" "$reserve"