Unix & Linux
posix ipc
Updated Fri, 20 May 2022 04:49:40 GMT

ipcs(1) POSIX equivalent to System V


I know that with ipcs(1) command, one can monitor System V message queues, shared memory and semaphores, but how do I monitor POSIX message queues, shared memory and semaphores. For POSIX message queues, I can mount a pseudo filesystem, as stated in mq_overview(7). Thank you in advance for any help.




Solution

I don't believe there are any commands that allow you to monitor POSIX message queues specifically.

As you mentioned, all of the details are exposed via a pseudo filesystem, usually mounted under /dev/mqueue. Once you've done that, you can then use file management commands like ls, rm, cat, etc. to inspect and manage the queue details.





Comments (1)

  • +2 – And for shared memory and semaphore, you can look in /dev/shm because POSIX creates its objects in a tmpfs. — Jul 22, 2015 at 07:41