X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bin%2Fcgmem_nice;h=aa8eecc0e1e20b15cf8e2b1c6c7b1e25d1b920ff;hb=cff73794dc6c92da033b4a0eb87ee9451373663f;hp=212ec3ca4ec953773f4e1385bd50b9525276a0d9;hpb=c5921e07ec7e321eaa039de65fcc03b6b5296043;p=dotfiles.git diff --git a/bin/cgmem_nice b/bin/cgmem_nice index 212ec3c..aa8eecc 100755 --- a/bin/cgmem_nice +++ b/bin/cgmem_nice @@ -16,7 +16,7 @@ esac size="$1" # in megabytes shift -CGROUPS=/sys/fs/cgroup +CGROUPS=/sys/fs/cgroup/memory echo $$ > "$CGROUPS"/${size}M/tasks || exit 1 ulimit -d ${size}000