Editing Cgroups

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{Draft}}
 
{{Draft}}
  
==Packages==
+
==Pacakges==
cgroups functionality that was released in [[Linux Kernel]] version [[2.6.24]]
+
cgroups functionality that was released in [[Linux Kernel]] version 2.6.24
  
 
Packages:
 
Packages:
Line 16: Line 16:
  
 
==Basic Commands==  
 
==Basic Commands==  
*Create a group : <code>[[cgcreate]] -g memory:myGroup</code>
+
[[cgcreate]] -g memory:myGroup
*<code>[[cgexec]] -g memory:myGroup YOUR_PROGRAM_TO_EXEC</code>
 
  
 +
[[cgexec]] -g memory:myGroup YOUR_PROGRAM_TO_EXEC
  
* You can use <code>[[cgget]]</code> to view the current limits, usage, & high watermarks of the group:
+
* You can use cgget to view the current limits, usage, & high watermarks of the cgroup
 
  sudo [[cgget]] -g memory:/myGroup|grep bytes  
 
  sudo [[cgget]] -g memory:/myGroup|grep bytes  
 
  memory.kmem.tcp.usage_in_bytes: 0
 
  memory.kmem.tcp.usage_in_bytes: 0
Line 37: Line 37:
 
== Related terms ==
 
== Related terms ==
 
* <code>[[ulimit]]</code>
 
* <code>[[ulimit]]</code>
* [[Cgroups: cgroup mountpoint does not exist: unknown]]
 
* [[Cgroups v2]]
 
Sep 21 11:23:14 yourhostame dockerd[1850]: time="2023-09-21T11:23:14.096834108Z" level=warning msg="Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without [[swap]]."
 
  
 
== Activities ==
 
== Activities ==
Line 48: Line 45:
 
* <code>[[systemd-cgtop]]</code><ref>https://www.freedesktop.org/software/systemd/man/systemd-cgtop.html</ref>, <code>[[docker stats]]</code>
 
* <code>[[systemd-cgtop]]</code><ref>https://www.freedesktop.org/software/systemd/man/systemd-cgtop.html</ref>, <code>[[docker stats]]</code>
 
* <code>[[netdata]]</code> cgroups plugin
 
* <code>[[netdata]]</code> cgroups plugin
 +
* {{cgroups}}
 
* {{containers}}
 
* {{containers}}
* {{cgroups}}
+
* {{io performance commands}}
 +
* {{Linux Kernel}}
 +
 
 +
 
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: