Linux不能删除共享内存

在VMware中,CentOS release 6.3 (Final)系统:
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-279.el6.i686 #1 SMP Fri Jun 22 10:59:55 UTC 2012 i686 i686 i386 GNU/Linux系统中,出现一个问题:
Linux不能删除共享内存?

[root@localhost ~]# ipcs -m

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status      
0x00000000 1835008    root       777        5242880    3          dest         
0x00000000 720898     root       777        5242880    1          dest         
0x00000000 1114115    root       777        5242880    17         dest         
0x00000000 1015812    root       777        5242880    10         dest         
0x00000000 1638405    root       777        5242880    12         dest         
0x00000000 1540102    root       777        5242880    7          dest         


执行ipcrm一直删除,但却始终删除不了。
[root@localhost ~]# ipcrm -m 1835008
[root@localhost ~]# ipcs -m

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status      
0x00000000 1835008    root       777        5242880    3          dest         
0x00000000 720898     root       777        5242880    1          dest         
0x00000000 1114115    root       777        5242880    17         dest         
0x00000000 1015812    root       777        5242880    10         dest         
0x00000000 1638405    root       777        5242880    12         dest         
0x00000000 1540102    root       777        5242880    7          dest   
结果还是一样,删除不了

这时候的key跟平常不一样,key的值是0x00000000。找了很多资料,基本上只有几个原因:1.权限问题;2.进程占用。
我本身就是root,权限基本上是不沾边了。
救世主命令:
[root@localhost seomanagerd]# ps -aux
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1   2872  1428 ?        Ss   13:47   0:02 /sbin/init
root         2  0.0  0.0      0     0 ?        S    13:47   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    13:47   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S    13:47   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S    13:47   0:00 [migration/0]
root         6  0.0  0.0      0     0 ?        S    13:47   0:00 [watchdog/0]
root         7  0.0  0.0      0     0 ?        S    13:47   0:00 [migration/1]
root         8  0.0  0.0      0     0 ?        S    13:47   0:00 [migration/1]
root         9  0.0  0.0      0     0 ?        S    13:47   0:00 [ksoftirqd/1]
root        10  0.0  0.0      0     0 ?        S    13:47   0:00 [watchdog/1]
root        11  0.0  0.0      0     0 ?        S    13:47   0:03 [events/0]
root        12  0.0  0.0      0     0 ?        S    13:47   0:02 [events/1]
root        13  0.0  0.0      0     0 ?        S    13:47   0:00 [cgroup]
root        14  0.0  0.0      0     0 ?        S    13:47   0:00 [khelper]
root        15  0.0  0.0      0     0 ?        S    13:47   0:00 [netns]
root        16  0.0  0.0      0     0 ?        S    13:47   0:00 [async/mgr]
root        17  0.0  0.0      0     0 ?        S    13:47   0:00 [pm]
root        18  0.0  0.0      0     0 ?        S    13:47   0:00 [sync_supers]
root        19  0.0  0.0      0     0 ?        S    13:47   0:00 [bdi-default]
root        20  0.0  0.0      0     0 ?        S    13:47   0:00 [kintegrityd/0]
root        21  0.0  0.0      0     0 ?        S    13:47   0:00 [kintegrityd/
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值