0

By default systemd assigns resource limits through CGroups like TaskMax, here's a example of this:

$ systemctl status sshd
● sshd.service - OpenSSH Daemon
     Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; preset: disabled)
     Active: active (running) since Fri 2023-08-18 08:24:27 CEST; 37min ago
   Main PID: 936 (sshd)
      Tasks: 1 (limit: 76994)
(...)

$ systemctl show --property DefaultTasksMax
DefaultTasksMax=76994

Furthermore it's possible to monitor current resource usage with $ systemd-cgtop (it doesn't show limits though..).

Where can you actually find logs or monitor if a CGroup limit is reached to better understand the needs of the system?

user1686
  • 10,162
  • 1
  • 26
  • 42

0 Answers0