如何在Google Cloud Notebook上设置OverCommit_memory?
我正在使用GCP顶点托管笔记本电脑,并且会发现一个内存错误,我认为可以通过:
echo 1 > /proc/sys/vm/overcommit_memory
但是当我从jupyterlab终端运行时,我被要求提供一个sudo密码,我不知道。我能做些什么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要执行此命令
whoami
才能验证您在jupyter中使用的用户。 Maybe you are authenticating as a Jupyter user, rather than an IAM user.In case you are logged in as a Jupyter account. You can follow this instructions.这将使您可以使用帐户特权与用户登录。
另一个选项是使用此命令
sudo -i
特权,还获得了根用户的环境。
You need to execute this command
whoami
to validate the user you are using in Jupyter. Maybe you are authenticating as a Jupyter user, rather than an IAM user.In case you are logged in as a Jupyter account. You can follow this instructions. This will allow you to log in with your user with the privileges of your account.
Another option would be to use this command
sudo -i
which runs a shell with root privileges and also acquires the root user's environment.