Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to ulimit subprocesses? #360

Closed
timkpaine opened this issue Aug 21, 2019 · 7 comments
Closed

Best way to ulimit subprocesses? #360

timkpaine opened this issue Aug 21, 2019 · 7 comments

Comments

@timkpaine
Copy link
Member

What is the best way to ulimit subprocesses right now? Something along the lines of #218 that can be injected prior to kernel launch.

@timkpaine
Copy link
Member Author

My current strategy is to use custom jupyter kernels that impose resource limits/niceness on startup

@jtpio
Copy link
Member

jtpio commented Aug 26, 2019

By custom kernels do you mean wrappers around existing kernels?

@timkpaine
Copy link
Member Author

sort of, we have custom wrappers around ipykernel anyway, i just injected a bit of code to set rlimits before deferring to ipykernel's launch

@timkpaine
Copy link
Member Author

(this is not portable to other installations though, so ideally voila can handle this itself)

@jtpio
Copy link
Member

jtpio commented Aug 26, 2019

Using resource.setrlimit() from the standard library?

@timkpaine
Copy link
Member Author

Yep

@timkpaine
Copy link
Member Author

closing, using custom kernels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants