1 #!/bin/bash 2 # SPDX-License-Identifier: GPL-2.0 3 4 set -e 5 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 15 16 echo "Putting task in cgroup '$cgroup'" 17 echo $$ > ${cgroup_path:-/dev/cgroup/memory}/"$cgroup"/cgroup.procs 18 19 echo "Method is $method" 20 21 set +e 22 ./write_to_hugetlbfs -p "$path" -s "$size" "$write" "$populate" -m "$method" \ 23 "$private" "$want_sleep" "$reserve"
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.