Linux - ipcs
http://www.thegeekstuff.com/2010/08/ipcs-command-examples/
How to clean up share memory segments?
If you frequently restart your Apache sandbox in single process mode, occassionally you may get an error "…". Here is how I clean up share memory segments:
ipcs -s | gawk '{ print $2 }' | grep -P '\d' | xargs -n 1 ipcrm -s
page revision: 1, last edited: 04 Sep 2013 22:18