zoukankan      html  css  js  c++  java
  • aix ipcs使用说明

    ipcs:
    -q   Writes information about active message queues


    -o
                Writes the following usage information:
                  *    Number of messages on queue
                  *    Total number of bytes in messages in queue for message queues
                  *    Number of processes attached to shared memory segments

    -m
                Writes information about active shared memory segments.

    secumid$ ipcs -qo | grep secumid
    q 123731977 0x4207803a --rw-rw-rw-  secumid    staff         0         0
    q 104857729 0x4107803a -Rrw-rw-rw-  secumid    staff         0         0


    secumid$ ipcs -m | grep secumid
    m  16777365 0x4707803d --rw-------  secumid    staff

    -------------------------------------------------------------------------------------------------------------------------
    secumid$ ipcs | grep secumid | awk '{printf("ipcrm -%s %s; ", $1, $2)}'
    ipcrm -q 123731977;
    ipcrm -q 104857729;
    ipcrm -m 16777365;

    -m SharedMemory ID
                Removes the shared memory identifier SharedMemoryID. The shared memory segment and data structure associated
                with SharedMemoryID are also removed after the last detach operation.

     -q MessageID
                Removes the message queue identifier MessageID and the message queue and data structure associated with it.

     
    $ ipcs -qo | grep secure
    q  12582913 0x4200b308 --rw-rw-rw-   secure    staff         0         0
    q  12582914 0x4100b308 -Rrw-rw-rw-   secure    staff         0         0
    q  32506398 0xffffffff -Rrw-rw-rw-   secure    staff         0         0
    q  26214946 0x000368e0 -Rrw-rw-rw-   secure    staff         0         0
    q  26214947 0xffffffff -Rrw-rw-rw-   secure    staff         0         0
    q  26214953 0xffffffff -Rrw-rw-rw-   secure    staff         0         0
    q  26214957 0xffffffff -Rrw-rw-rw-   secure    staff         0         0
    q  26214958 0xffffffff -Rrw-rw-rw-   secure    staff         0         0
    q  26214959 0xffffffff -Rrw-rw-rw-   secure    staff         0         0
    q  26214960 0xffffffff -Rrw-rw-rw-   secure    staff         0         0
    q  32506417 0xffffffff -Rrw-rw-rw-   secure    staff         0         0
    q  34603590 0xffffffff -Rrw-rw-rw-   secure    staff         0         0

    其中:

    T            ID        KEY     MODE       OWNER  GROUP  CBYTES   QNUM

    q  32506398 0xffffffff -Rrw-rw-rw-   secure    staff         0               0

    表示该消息队列不能使用

  • 相关阅读:
    SurfaceView 和 View 区别
    投资学第一章 investments-introduction
    HDU 1879 继续畅通工程 (Prim(普里姆算法)+Kruskal(克鲁斯卡尔))
    多个Activity之间的切换与数据交互
    HDU 4715 Difference Between Primes (打表)
    org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x0) was found in the CDATA sectio
    用纯jsp实现用户的登录、注册与退出
    Java单态模式
    植物-蔬菜:刺儿菜
    汉语-词语:生活
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/3797930.html
Copyright © 2011-2022 走看看