如何在Google Cloud Notebook上设置OverCommit_memory?

发布于 2025-02-01 15:03:18 字数 169 浏览 5 评论 0 原文

我正在使用GCP顶点托管笔记本电脑,并且会发现一个内存错误,我认为可以通过:

echo 1 > /proc/sys/vm/overcommit_memory

但是当我从jupyterlab终端运行时,我被要求提供一个sudo密码,我不知道。我能做些什么?

I am using a GCP Vertex managed notebook and I get a memory error which I think can be fixed by:

echo 1 > /proc/sys/vm/overcommit_memory

but when I run this from a Jupyterlab terminal I am asked for a sudo password, which I do not know. What can I do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

野侃 2025-02-08 15:03:18

您需要执行此命令 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文