3 ms·
It’s possible via cgroups, kinda. cgroups v1 has a pretty nice API but it requires root. V2 does not require root but it’s a lot coarser and not as simple or r
by masklinn 5mo ago
It’s possible via cgroups, kinda.
cgroups v1 has a pretty nice API but it requires root. V2 does not require root but it’s a lot coarser and not as simple or reliable: https://unix.stackexchange.com/questions/753929/receive-a-memory-pressure-event-with-cgroups-v2-when-no-memory-limit-is-set https://unix.stackexchange.com/questions/753929/receive-a-me...