It's a type of Planche
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

resource-control.service 1.8KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Override file to specify CPU and RAM limits. Create a directory
  2. # /etc/systemd/system/<service-name>.service.d and place a file
  3. # with these contents inside with a .conf extension.
  4. [Service]
  5. # Assign the specified CPU time quota to the processes executed.
  6. # Takes a percentage value, suffixed with "%". The percentage
  7. # specifies how much CPU time the unit shall get at maximum,
  8. # relative to the total CPU time available on one CPU. Use
  9. # values > 100% for allotting CPU time on more than one CPU. This
  10. # controls the "cpu.max" attribute on the unified control group
  11. # hierarchy and "cpu.cfs_quota_us" on legacy. For details about
  12. # these control group attributes, see Control Groups v2 and
  13. # sched-bwc.txt.
  14. # Example: CPUQuota=20% ensures that the executed processes will
  15. # never get more than 20% CPU time on one CPU.
  16. CPUQuota=20%
  17. # Specify the throttling limit on memory usage of the executed
  18. # processes in this unit. Memory usage may go above the limit if
  19. # unavoidable, but the processes are heavily slowed down and memory
  20. # is taken away aggressively in such cases. This is the main
  21. # mechanism to control memory usage of a unit.
  22. # Takes a memory size in bytes. If the value is suffixed with
  23. # K, M, G or T, the specified memory size is parsed as Kilobytes,
  24. # Megabytes, Gigabytes, or Terabytes (with the base 1024),
  25. # respectively. Alternatively, a percentage value may be specified,
  26. # which is taken relative to the installed physical memory on the
  27. # system. If assigned the special value "infinity", no memory
  28. # throttling is applied. This controls the "memory.high" control
  29. # group attribute. For details about this control group attribute,
  30. # see Memory Interface Files.
  31. # This setting is supported only if the unified control group
  32. # hierarchy is used and disables MemoryLimit=.
  33. MemoryHigh=512M