Solved

when does the shared memory get reclaimed??

Posted on 2007-11-23
3
224 Views
Last Modified: 2010-04-22
Hi,

I've got a question....
If I get a shared memory segment and not remove before I terminate my program, the shared memory segment is gonna just sit there, right?
Then, does it ever get reclaimed by itself??

Thx.
0
Comment
Question by:shinymoon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 250 total points
ID: 20341880
Hi,

You need to clean it yourself with

ipcrm -m shmid

ipcs -m will list shared memory on your system
0
 
LVL 43

Assisted Solution

by:ravenpl
ravenpl earned 250 total points
ID: 20341989
If You interested in automatic shm removal upon lasy process detach use
www.grsecurity.net or http://www.openwall.com/linux/ patch.
Otherwise it will sit there untill removed/rebooted. But note, that it will eventually be moved to swap, and therefore the physical ram will be freed.
0
 

Author Comment

by:shinymoon
ID: 20380516
thx for the replies
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question