Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

lsipc

List information on IPC facilities.

Synopsis

lsipc              # show global summary
lsipc -m           # list shared memory segments
lsipc -q           # list message queues
lsipc -s           # list semaphore arrays
lsipc -g [-m|-q|-s] # show system-wide limits and usage

Operation

Modern replacement for ipcs. Reads /proc/sysvipc/* and /proc/sys/kernel/* to display IPC resource information.

Inputs

SourcePurpose
/proc/sysvipc/shmShared memory segments
/proc/sysvipc/msgMessage queues
/proc/sysvipc/semSemaphore arrays
/proc/sys/kernel/shm{max,all,mni}Shared memory limits
/proc/sys/kernel/msg{max,mnb,mni}Message queue limits
/proc/sys/kernel/semSemaphore limits

Command-line options

OptionDescription
-m, --shmemsList shared memory segments
-q, --queuesList message queues
-s, --semaphoresList semaphore arrays
-g, --globalShow system-wide usage and limits
--noheadingsSuppress table headers
-b, --bytesShow sizes in bytes
-J, --jsonJSON output
-h, --helpDisplay help
-V, --versionDisplay version

Exit codes

CodeMeaning
0Success
1Incorrect arguments
2Serious error

Not yet implemented

  • POSIX IPC listing (-M, -Q, -S)
  • -i <id> single resource detail
  • -N <name> POSIX resource detail
  • -o column selection
  • --raw, --export, --newline output formats
  • --time, --time-format time display
  • -c creator info
  • -J JSON output