Changeset ed2176e5


Ignore:
Timestamp:
08/29/2022 04:01:21 AM (20 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/soup3, xry111/xf86-video-removal
Children:
2e72850
Parents:
c0dfeea
Message:

rust: for systemd, tell how to use systemd-run to limit CPU cores

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/rust.xml

    rc0dfeea red2176e5  
    142142      <phrase revision="sysv">In sysv systems cgroups requires <ulink
    143143      url="https://sourceforge.net/projects/libcg/">libcgroup</ulink>.</phrase>
    144       <phrase revision="systemd">That can apparently be achieved by writing
    145       custom unit files.</phrase>
     144      <phrase revision="systemd">That can be achieved by using
     145      <command>systemd-run</command> command with
     146      <parameter>-p User=$(whoami)</parameter> and
     147      <parameter>-p AllowedCPUs=0-<replaceable>x</replaceable></parameter>
     148      (with <replaceable>x</replaceable> replaced with the number of CPU
     149      cores you want to use minus one) options.</phrase>
    146150    </para>
    147151
Note: See TracChangeset for help on using the changeset viewer.