[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Possible memory leak in TSVNCache

From: Joseph Galbraith <galb_at_vandyke.com>
Date: 2006-02-06 19:53:39 CET

Molle Bestefich wrote:
> Stefan Küng wrote:
>> I've seen that too. But that's expected: Windows doesn't really free
>> memory which a process frees, it waits until there's no more memory
>> available for other processes or if windows is idle. That's because
>> reallocating/freeing memory takes some time (windows has to move around
>> memory blocks for that).
>
> It should at least vanish from the 'working set' memory indicator, me thinks..

The heap manager prevents this from being true.

Especially with lots of small allocations of varying
life-times, pages may never actually freed.

Even if a page becomes unused in the heap, the heap manager
may not free it to the OS if it doesn't have very many free
pages or other thresholds aren't met.

And even if it did vanish from the working set, that doesn't
mean it was freed... only that the OS wanted the page
for something else.

An interesting tidbit: last I heard, with a regular application,
minimizing it dumped it's entire working set.

Thanks,

Joseph

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Feb 6 19:55:51 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.