Ignore:
Timestamp:
09/18/2023 07:54:59 PM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
69553e9
Parents:
33c1959a
git-author:
Xi Ruoyao <xry111@…> (09/18/2023 07:54:04 PM)
git-committer:
Xi Ruoyao <xry111@…> (09/18/2023 07:54:59 PM)
Message:

building-notes: Use bc instead of bash built-in for converting GB to B

It's more readable.

Also add an explanation about 230.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • introduction/important/building-notes.xml

    r33c1959a r087dc22  
    365365    "echo 0-3 > /sys/fs/cgroup/$$/cpuset.cpus"
    366366  sudo sh -c \
    367     "echo $((8 &lt;&lt; 30)) > /sys/fs/cgroup/$$/memory.high"
     367    "echo $(bc -e '8*2^30') > /sys/fs/cgroup/$$/memory.high"
    368368  (
    369369    sudo sh -c "echo $BASHPID > /sys/fs/cgroup/$$/cgroup.procs"
     
    379379      </phrase>
    380380      <phrase revision='sysv'>
    381         <literal>8589934592</literal> (expanded from
    382         <userinput>$((8 &lt;&lt; 30))</userinput>) in the
     381        <literal>8589934592</literal> (the output of
     382        <userinput>bc -e '8*2^30'</userinput>, 2^30 represents
     383        2<superscript>30</superscript>, i.e. a Gigabyte) in the
    383384        <filename>memory.high</filename> entry
    384385      </phrase>, a soft limit of memory usage is set.
Note: See TracChangeset for help on using the changeset viewer.