Re: how to forcely release heap in UNIX



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).

.



Relevant Pages

  • Re: concurrency, threads and objects
    ... I don't subscribe to the idea that you should not worry about resources (cpu, memory etc.), because its so cheap. ... The smaller program requires less bus bandwidth between the cpu, memory and disk and less processing cycles. ... I have numerous times created applications that require a fraction of memory or cpu power compared to a someone's idea that you should not worry about it. ... In some cases I have also created working and stable solutions when others have not managed to get one off the ground, because of code bloat. ...
    (comp.lang.java.programmer)
  • Re: Computer advice please?
    ... Don't worry about speed they are ... about 4x the battery life - which I head you ask for. ... Don't worry about video memory unless you are gaming. ...
    (alt.gathering.rainbow)
  • Re: Structure of large link libraries in f95
    ... Won't memory use and build time be about the same? ... it would save some disk space. ... Again, don't worry ... worry about large statically-sized data arrays - which are typically set ...
    (comp.lang.fortran)
  • [Full-Disclosure] ALERT ALERT plaintext passwords in linux ALERT ALERT
    ... > Don't worry, it does not actually occupy your computer's resources, except some memory. ... sometimes a kernel rootkit will hijack the stat syscall.. ...
    (Full-Disclosure)
  • Re: passing a string to a C++ function
    ... things are "unsafe". ... Other languages - eg FORTRAN - were designed to ... protect you completely from having to worry about memory. ...
    (microsoft.public.vc.language)