How do I remove shared memory in Linux?

Ivanesn

New member
How do I remove shared memory in Linux?
Answer
Steps to remove shared memory segment:
  1. $ ipcs -mp. $ egrep -l “shmid” /proc/[1-9]*/maps. $ lsof | egrep “shmid” Terminate all application pid’s that are still using shared memory segment:
  2. $ kill -15 <pid> Remove the shared memory segment.
  3. $ ipcrm -m shmid.
20 нояб. 2020 г.
 

Tìm kiếm

Back
Top