sandbox icon indicating copy to clipboard operation
sandbox copied to clipboard

CPU/mem limits on child processes

Open yozlet opened this issue 15 years ago • 4 comments

At the moment the sandbox run time is limited by wall clock time - would be good to find a way to limit it by more precise factors e.g. CPU clock time, memory size etc. I know very little about this stuff - any way to use POSIX setrlimit() here?

yozlet avatar Oct 26 '10 08:10 yozlet

Neat idea. I'll look into it.

gf3 avatar Oct 26 '10 16:10 gf3

After some talk : going to create this as a 0.6.x+ feature and it will be *nix only using setrlimit. Anyone using this should be aware of older Linux kernels not handling setrlimit properly until a patch in 2008 (couldn't find direct link). This will require a C++ addon.

bmeck avatar Jan 02 '12 21:01 bmeck

hi bmeck, did you ever get around to implementing this? It would be a super useful feature.

RobKohr avatar Apr 11 '12 17:04 RobKohr

I did not. Feel free to ad it if you want.

bmeck avatar Apr 11 '12 18:04 bmeck