增加共享内存的内存
当尝试获取共享内存时,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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
取决于操作系统。 PostgreSQL 文档提供了更改各种共享内存限制的提示平台。
Depends on the OS. PostgreSQL documentation has tips for changing the shared memory limit on various platforms.