this post was submitted on 26 Nov 2024
456 points (97.5% liked)

196

16588 readers
1929 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] zea_64@lemmy.blahaj.zone 3 points 9 hours ago

You can write limits to and then poll files in /proc/pressure/ to be notified of resource pressure. Systemd will also set an environment variable for similar files for your cgroup.