hi Ian,
Can you do this with tcmalloc (and activate the tcmalloc thorn that I pointed you to), and plot the variables tcmalloc::
generic_current_allocated_bytes generic_heap_size tcmalloc_pageheap_free_bytes tcmalloc_pageheap_unmapped_bytes
This will let us know whether there are actual memory allocations which are being made and not freed, or whether the rss is increasing due to fragmentation.
yes, i've just re-ran with tcmalloc. please see the (very crude) plot attached. does this help? sorry, i don't really know how to interpret these data :-)
thanks! Miguel