How to remove Shared Memory With key 0x00000000

I am creating shared memory on linux 8
But when i type ipcs -m i saw four sm with key 0x00000000,nattach 2.
When i try to remove this with ipcrm -m <shmid> they are not deleted.
as again when i type ipcs -m they appear.
Please help me to remove the shared mem.
rahul_2003Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GnsCommented:
A guess: Just shut down your gnome.session and it will go away:-).

Here's an example from my box (sorry for the swedish locale;)
[glenn@apmx01 glenn]$ ipcs -m

------ Delade minnessegment --------
nyckel     shmid      ägare     rättigh   byte       anttill    status      
0x00000000 65536      glenn     600        196608     2          mål        
0x00000000 98305      glenn     600        196608     2          mål        
0x00000000 229380     glenn     600        196608     2          mål        
0x00000000 262149     glenn     600        196608     2          mål        
0x00000000 294918     glenn     600        196608     2          mål        
0x00000000 327687     glenn     600        196608     2          mål        
0x00000000 4325384    glenn     600        196608     2          mål        

[glenn@apmx01 glenn]$ ipcs -mp

------ Skapare/Senaste operation på delat minne --------
shmid      ägare     cpid       lpid      
65536      glenn      750        893      
98305      glenn      863        746      
229380     glenn      884        746      
262149     glenn      894        746      
294918     glenn      888        896      
327687     glenn      886        746      
4325384    glenn      975        746      

[glenn@apmx01 glenn]$ ps -p 750,863,884,894,888,886,975,893,746,896
  PID TTY          TIME CMD
  746 ?        00:00:12 Xvnc
  750 ?        00:00:00 gnome-session
  863 ?        00:00:01 gnome-settings-
  884 ?        00:00:00 magicdev
  886 ?        00:00:04 gnome-panel
  888 ?        00:00:00 gnome-terminal
  894 ?        00:00:00 pam-panel-icon
  896 pts/0    00:00:00 bash
  975 ?        00:00:00 rep
[glenn@apmx01 glenn]$

So in this case it is gnome.session that have created the shm... I'm not sure you want  to remove that.

-- Glenn
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CleanupPingCommented:
rahul_2003:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
GnsCommented:
Oh I'm probably right here too.

-- Glenn
0
TheWeakestLinkCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept comments from Gns as answer
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheWeakestLink
EE Cleanup Volunteer
0
honeishCommented:
use <ipcrm - M (key of shared memory)>
e.g
ipcrm -M 0x0100005f
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.