Re: how to forcely release heap in UNIX



manusha1980@xxxxxxxxx wrote:
What *exactly* are you doing that you need to do this?


im diagnosing an application that uses more memory than required and
found the problem arises because of this behavior of linux. so im
trying to make sure the problem is indeed that by forcely flushing the
memory.


Please explain what you mean with
'uses more memory'.

In a demand-paged virtual-memory system,
the resource used is only address space
of the process. The reservation does
not affect other processes on the system.

As long as the memory is not accessed,
it does not use physical memory chips.

Would you now please explain simply
what you're attempting to achieve?

--

Tauno Voipio
tauno voipio (at) iki fi

.



Relevant Pages

  • Re: Where to find the dlopen() source?
    ... and will waste a lot of memory. ... Not knowing much about Linux system structures etc. how easy would it be ... What complicates the planned decryption is that the library may end at different logical addresses with different processes. ... tauno voipio iki fi ...
    (comp.os.linux.development.apps)
  • Re: Linux memory probe
    ... > We have a couple of versions of Linux for a CPU we're using. ... Sadly one of our customers is now short of memory space (ain't it ... architecture. ... tauno voipio iki fi ...
    (comp.os.linux.embedded)
  • Re: Memory scanning under Linux
    ... What I need to know is what memory locations I need to scan? ... Understanding the Linux Kernel, published by O'Reilly, ... tauno voipio iki fi ...
    (comp.os.linux.misc)
  • Re: Memory usage
    ... > After some readings, during the execution, I have to open ... > line in the file represents the memory usage of the current program. ... Linux is a demand-paged virtual-memory system, ... tauno voipio iki fi ...
    (comp.os.linux.development.apps)
  • Re: Kernel compilation error
    ... Tauno Voipio wrote: ... > It has strong elements of flaky hardware. ... > Please run memory test on your computer. ... GCC is a heavy user of ...
    (comp.os.linux.development.system)