I'm working on the client's product which leaks according to Task Manager.
We allocate huge numbers of buffers (tens of thousands) every second and the product is supposed to run for days. At the moment it leaks about 1/3 MB per minute which is unacceptable.
It seem to me that anyone with half a brain would have created a pooled memory scheme with various sized buffers, to avoid fragmentation and the overheads of malloc and free.
Anyway, I've convinced myself that none of the libraries are leaking enough to explain the leak (by logging all mallocs and frees). And I've made sure that all modules use the same version of the CRT.
After many weeks of getting nowhere I'm running out of hair to tear out I might have to make use of other peoples scalps.
So to the question: can memory fragmentation have the same symptoms as memory leakage?
We allocate huge numbers of buffers (tens of thousands) every second and the product is supposed to run for days. At the moment it leaks about 1/3 MB per minute which is unacceptable.
It seem to me that anyone with half a brain would have created a pooled memory scheme with various sized buffers, to avoid fragmentation and the overheads of malloc and free.
Anyway, I've convinced myself that none of the libraries are leaking enough to explain the leak (by logging all mallocs and frees). And I've made sure that all modules use the same version of the CRT.
After many weeks of getting nowhere I'm running out of hair to tear out I might have to make use of other peoples scalps.
So to the question: can memory fragmentation have the same symptoms as memory leakage?

Comment