Score:0

Systemd CGroups - where are logs for exceeding resource limits?

fr flag

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?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.