How can we configure the cpu and memory resources

2020-04-05 07:58发布

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条回答
【Aperson】
2楼-- · 2020-04-05 08:28

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.

查看更多
登录 后发表回答