mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
Drop reference to obsolete ControlGroupAttribute option
This commit is contained in:
parent
c502369a23
commit
adf62ba9c1
|
@ -58,12 +58,10 @@ controls memory allocation limits; by default, all processes are in
|
||||||
the top-level cgroup, so any service or session can exhaust all
|
the top-level cgroup, so any service or session can exhaust all
|
||||||
available memory. Per-cgroup memory limits can be specified in
|
available memory. Per-cgroup memory limits can be specified in
|
||||||
<filename>configuration.nix</filename>; for instance, to limit
|
<filename>configuration.nix</filename>; for instance, to limit
|
||||||
<literal>httpd.service</literal> to 512 MiB of RAM (excluding swap)
|
<literal>httpd.service</literal> to 512 MiB of RAM (excluding swap):
|
||||||
and 640 MiB of RAM (including swap):
|
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
systemd.services.httpd.serviceConfig.MemoryLimit = "512M";
|
systemd.services.httpd.serviceConfig.MemoryLimit = "512M";
|
||||||
systemd.services.httpd.serviceConfig.ControlGroupAttribute = [ "memory.memsw.limit_in_bytes 640M" ];
|
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
</para>
|
</para>
|
||||||
|
@ -72,4 +70,4 @@ systemd.services.httpd.serviceConfig.ControlGroupAttribute = [ "memory.memsw.lim
|
||||||
continuously updated list of all cgroups with their CPU and memory
|
continuously updated list of all cgroups with their CPU and memory
|
||||||
usage.</para>
|
usage.</para>
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
Loading…
Reference in a new issue