who attach shared memory

Want to know which shared memory segment is attached by which processes ?

Want to know the shm segments a process attached on ?

Try who_attach_shm.pl , just download and run.(update, lsof is no longer required)

[curu@linuxplayer.org]$ ./who_attach_shm.pl
##################################################################
shm attach process list, group by shm key
##################################################################

0x2d5feab4:    /home/curu/mem_dumper /home/curu/playd
0x4e47fc6c:    /home/curu/playd
0x77da6cfe:    /home/curu/mem_dumper /home/curu/playd /home/curu/scand

##################################################################
process shm usage
##################################################################
/home/curu/mem_dumper [2]:    0x2d5feab4 0x77da6cfe
/home/curu/playd [3]:    0x2d5feab4 0x4e47fc6c 0x77da6cfe
/home/curu/scand [1]:    0x77da6cfe
This entry was posted in Perl, System Administration and tagged , , , . Bookmark the permalink.

Leave a Reply