#! /bin/sh
usage() {
- echo "Usage: $0 {100|200|300|500|1000|2000|4000} [command [args]]"
+ echo "Usage: $0 {100|200|300|400|500|1000|2000|4000|5000} [command [args]]"
exit 1
}
case "$1" in
- 100|200|300|500|1000|2000|4000)
+ 100|200|300|400|500|1000|2000|4000|5000)
;;
*) usage
echo $$ > "$CGROUPS"/${size}M/tasks || exit 1
ulimit -d ${size}000
-exec nice -20 ionice -c3 "${@:-$SHELL}"
+exec nice -n 20 ionice -c3 "${@:-$SHELL}"