Solved

when does the shared memory get reclaimed??

Posted on 2007-11-23
3
209 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
3 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
thx for the replies
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 56
fizzArray  challenge 1 47
java ^ examples 8 57
wordcount challenge 11 71
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now