ipcs
Overview
ipcs provides information on System V Inter-Process Communication (IPC) facilities: shared memory segments, message queues, and semaphore arrays.
Syntax
ipcs [options]Common Options
| Option | Description |
|---|---|
-a, --all |
Show all IPC facilities (default) |
-m, --shmems |
Display shared memory segments |
-q, --queues |
Display message queues |
-s, --semaphores |
Display semaphore arrays |
-p, --pid |
Display process IDs of IPC creators and last operators |
-t, --time |
Display access/change timestamps |
Key Use Cases
- Auditing active System V shared memory segments and semaphores.
- Identifying orphaned shared memory allocations.
- Troubleshooting database or multi-process IPC resource leaks.