-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit memory usage based on cgroup info
We try to convert OOM-kill at the cgroup level into python MemoryError. The method employed has a number of caveats: - setrlimit only acts on one process, when cgroup is a group of process ; other process in the container could also consume memory - the OOM-killer might still kick in before Python raising MemoryError, depending on the particular of the Python allocator
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters