3 ms·
Not only that, but it’s inherently racy (TOCTOU); a process could allocate a huge block of memory between the time the determination to allow the controlled pro
by otterley 1y ago
Not only that, but it’s inherently racy (TOCTOU); a process could allocate a huge block of memory between the time the determination to allow the controlled program to start and the time that program is able to finish initializing is made.
A better solution is to use a proper memory-reservation scheduler, not hacks like this. Kubernetes has such a thing.