Re: how to forcely release heap in UNIX
- From: Robert Heller <heller@xxxxxxxxxxxx>
- Date: Tue, 30 Oct 2007 14:12:28 +0100
At Tue, 30 Oct 2007 00:41:08 -0700 manusha1980@xxxxxxxxx wrote:
This just says what UNIX does it does not say why you might need this.
And the article by Eric Sosman that is referenced only suggests that you
probably don't need to worry about this.
and one another question. when will actually this memory be released
to the os. is it possible for OS to force the process to release this
memory? otherwise it might waste a lot of memory for a program that
allocates a huge chunk of memory in the initialization and frees all
of it, but never reallocates memory for its life time. (this is the
problem im having).
How is it a problem? If your system is really memory tight, the unused
memory will be swapped out to the backing store (swap file) and sit
there. Unless you are working with an embedded system or some such,
this does not really matter. Again, *exactly* how is this a problem?
Linux never 'wastes' memory, even if your program might seem to.
--
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
heller@xxxxxxxxxxxx -- Contract Programming: C/C++, Tcl/Tk
.
- References:
- how to forcely release heap in UNIX
- From: manusha1980
- Re: how to forcely release heap in UNIX
- From: Robert Heller
- Re: how to forcely release heap in UNIX
- From: manusha1980
- how to forcely release heap in UNIX
- Prev by Date: Re: I want to study Computer Science, but can I avoid Microsoft ?
- Next by Date: hot sell nike jordan puma prada sandal......www.nikejordanaaa.com
- Previous by thread: Re: how to forcely release heap in UNIX
- Next by thread: hot sell nike jordan adidas puma prada clothes jeans and so
- Index(es):
Relevant Pages
|