> Should we still use $mem->resident or size? I used resident in past and that works reliable - why you want to change that? > Is my final patch regarding the mem leak ok? I will take a closer look next week. Maybe it is possible to avoid the cyclic ref somehow?