source: introduction/important/cgroup-kernel.xml@ b6d54494

12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since b6d54494 was b6d54494, checked in by Xi Ruoyao <xry111@…>, 8 months ago

building-notes: Note how to use cgroup for limiting resource usage

We were saying "-jN means using N cores (or N threads)". This is
completely wrong. "-jN" only tells the building system to run N jobs
simultaneously, but each job can start their own subprocesses or threads
and there is no way for the building system to know how many
subprocesses or threads a job will start.

This caused a lot of misunderstandings and encouraged users to wrongly
blame building systems.

Fix the description of -jN, and add how to use cgroup to control the
usage of CPU cores and system RAM.

On a systemd-based system, systemd is the cgroup manager and manually
operating on cgroups may puzzle systemd. So use systemd-run for
creating and setting up cgroup. On a sysv-based system create and set
up the cgroup manually.

  • Property mode set to 100644
File size: 651 bytes
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE note PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
4<!-- Automatically generated by kernel-config.py
5 DO NOT EDIT! -->
6<screen><emphasis role='blue'>G</emphasis>eneral setup ---&gt;
7 [*] <emphasis role='blue'>C</emphasis>ontrol Group support ---&gt; [CGROUPS]
8 [*] M<emphasis role='blue'>e</emphasis>mory controller [MEMCG]
9 [*] <emphasis role='blue'>C</emphasis>puset controller [CPUSETS]</screen>
Note: See TracBrowser for help on using the repository browser.