Operating System - Linux
1827811 Members
2027 Online
109969 Solutions
New Discussion

Re: How to remove shared memory and semaphores

 
Binu_5
Regular Advisor

How to remove shared memory and semaphores

Hi All

How can I free the shared memory and semaphore

I have done ipcrm -m shmid (98304) but still it is show 0x000000 98304

Then only option is to reboot ..Is there any way other than reboot

Thanks
Binu
3 REPLIES 3
Stuart Browne
Honored Contributor

Re: How to remove shared memory and semaphores

Ok, so show us the output of 'ipcs' please, just so we can see a bit more of what's going on.

Are you sure the shared memory segment you're trying to free isn't in use?
One long-haired git at your service...
Gopi Sekar
Honored Contributor

Re: How to remove shared memory and semaphores


just ensure that no process is using the shared memory.

to check for which process id is using the shared memory use 'ipcs -p' and ensure no process is using. if any process is using it, kill the process and then remove the shared memory by using ipcrm

Hope this helps,
Gopi
Never Never Never Giveup
Binu_5
Regular Advisor

Re: How to remove shared memory and semaphores

Hi All

I have checked the process using
ipcs -p and killed the process

Thanks
Binu