diff --git a/introduction/important/building-notes.xml b/introduction/important/building-notes.xml index bade697eb2..e7ae577eb9 100644 --- a/introduction/important/building-notes.xml +++ b/introduction/important/building-notes.xml @@ -364,7 +364,7 @@ systemd-run --user --pty --pipe --wait -G -d \ sudo sh -c \ "echo 0-3 > /sys/fs/cgroup/$$/cpuset.cpus" sudo sh -c \ - "echo $((8 << 30)) > /sys/fs/cgroup/$$/memory.high" + "echo $(bc -e '8*2^30') > /sys/fs/cgroup/$$/memory.high" ( sudo sh -c "echo $BASHPID > /sys/fs/cgroup/$$/cgroup.procs" exec make -j5 @@ -378,8 +378,9 @@ EOF MemoryHigh=8G - 8589934592 (expanded from - $((8 << 30))) in the + 8589934592 (the output of + bc -e '8*2^30', 2^30 represents + 230, i.e. a Gigabyte) in the memory.high entry , a soft limit of memory usage is set. If the processes in the cgroup (make and all the