X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bin%2Fcgmem_nice;h=212ec3ca4ec953773f4e1385bd50b9525276a0d9;hb=0898329662b09ac156caaba8d23db6e8e8579319;hp=b36a6c5e142638f63c9ffa81d79ef0147ad1ae18;hpb=f46bd4d41cc7f243bc8a321effee5200aa69e709;p=dotfiles.git diff --git a/bin/cgmem_nice b/bin/cgmem_nice index b36a6c5..212ec3c 100755 --- a/bin/cgmem_nice +++ b/bin/cgmem_nice @@ -1,12 +1,12 @@ #! /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 @@ -20,4 +20,4 @@ CGROUPS=/sys/fs/cgroup echo $$ > "$CGROUPS"/${size}M/tasks || exit 1 ulimit -d ${size}000 -exec nice -20 ionice -c3 "${@:-$SHELL}" +exec nice -n 20 ionice -c3 "${@:-$SHELL}"