How can we configure the cpu and memory resources

2020-04-05 08:20发布

问题:

I am new to using Jupyter notebook. I have installed Jupyter using Anaconda and have set up a jupyter server. I wanted to control the cpu and memory available for Jupyter. Is there any configuration for doing that? What is the best way to achieve this.

Thanks

回答1:

You can specify CPU limit to Jupyter notebook process using

sudo cpulimit -l 100 -p <PID>

where PID is ID of your process, -l is for limit, you can read man page to learn how to use it.