增加共享内存的内存

发布于 2024-08-17 07:46:12 字数 168 浏览 1 评论 0原文

当尝试获取共享内存时,shmget() 经常会因为无法分配内存而失败。 RAM 的物理大小确实不应该成为问题(我认为 4GB 就足够了)。 相反,系统属性中的任何地方都可能存在分配共享内存集的限制。有谁知道,在哪里可以找到这个房产?

我使用的是 Mac OS X 版本 10.6

When trying to get shared memory, shmget() often fails because being unable to allocate memory. The physical size of RAM really shouldn't be the problem (4GB is enough, I think).
Rather there's probably anywhere in the systems properties a limit for allocating shared memory set. Does anyone know, where I can find this property?

I'm using Mac OS X Version 10.6

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

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

发布评论

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

评论(1

夜司空 2024-08-24 07:46:12

取决于操作系统。 PostgreSQL 文档提供了更改各种共享内存限制的提示平台。

Depends on the OS. PostgreSQL documentation has tips for changing the shared memory limit on various platforms.

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