我们如何为Jupyter Notebook配置CPU和内存资源 [英] How can we configure the cpu and memory resources for Jupyter notebook

查看:1854
本文介绍了我们如何为Jupyter Notebook配置CPU和内存资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是刚开始使用Jupyter笔记本电脑的人.我已经使用Anaconda安装了Jupyter,并设置了一个jupyter服务器.我想控制Jupyter的CPU和内存.是否有任何配置可以做到这一点?达到此目的的最佳方法是什么.

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.

谢谢

推荐答案

您可以使用

sudo cpulimit -l 100 -p <PID>

其中PID是您进程的ID,-l是限制,您可以阅读手册页以了解如何使用它.

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

这篇关于我们如何为Jupyter Notebook配置CPU和内存资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆