Recent

Author Topic: heaptrc output meaning?  (Read 14055 times)

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: heaptrc output meaning?
« Reply #15 on: April 21, 2014, 08:26:11 pm »
With the assumption that the machine has 4 GB and 64 GB (respectively for 32-bit and 64-bit) of RAM [+ swap].
Not really, the figures are added based on requests only:
I mean, there would already be an out of memory error from the OS before 4 GB and 64 GB is reached if the system itself doesn't have physical + virtual memory of that size.

The number sums up all the requests that where made for memory regardless if the memory is no longer allocated ee was disposed and used by the next allocation, since it never goes down on deallocation then if an application isvery aggresive on allocation/deallocation it is possible to overflow the counter and the application still use only 4MB of memory.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018