write_hugetlb_memory.sh (411B)
1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0 3 4set -e 5 6size=$1 7populate=$2 8write=$3 9cgroup=$4 10path=$5 11method=$6 12private=$7 13want_sleep=$8 14reserve=$9 15 16echo "Putting task in cgroup '$cgroup'" 17echo $$ > ${cgroup_path:-/dev/cgroup/memory}/"$cgroup"/cgroup.procs 18 19echo "Method is $method" 20 21set +e 22./write_to_hugetlbfs -p "$path" -s "$size" "$write" "$populate" -m "$method" \ 23 "$private" "$want_sleep" "$reserve"