这就是“共享内存”吗? IPC 对象已删除?
可能的重复:
在 Linux 中使用 ipcrm 删除共享内存
我运行的是 Fedora 15 64 位。我有一些共享内存没有被进程清理。当您调用ipcs -m
时,您可以看到共享内存:
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x51012a29 294919 trevor 666 194400 2
当我调用ipcrm -m 294919
,然后检查共享内存是否被删除时,您会看到:
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 294919 trevor 666 194400 2 dest
IMO 共享内存仍然存在...因为它在我调用 ipcs -m 时显示。这个共享内存真的被删除了吗?
Possible Duplicate:
deleting shared memory with ipcrm in Linux
I am running Fedora 15 64 bit. I have some shared memory that wasn't cleaned up by a process. You can see the shared memory when you call ipcs -m
:
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x51012a29 294919 trevor 666 194400 2
When I call ipcrm -m 294919
and then check to see if the shared memory is deleted you see:
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 294919 trevor 666 194400 2 dest
IMO the shared memory is still there... because it shows up when i call ipcs -m
. Is this shared memory actually deleted?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
做一点谷歌搜索。这是我发现的;
dest 显然意味着标记为将被销毁。我猜它不会被销毁,除非它被引用或处于暂时状态。
http://www.puschitz.com/TuningLinuxForOracle.shtml
Do a little bit of googling. Here's what I found;
dest apparently means marked to be destroyed. I am guessing it will not be destroyed unless it is being referenced or a transitory state.
http://www.puschitz.com/TuningLinuxForOracle.shtml