argus memory usage
Peter Van Epp
vanepp at sfu.ca
Sat Aug 18 22:49:57 EDT 2007
I turned on logging of ArgusCalloc Malloc and Free and then wrote
a perl script to parse the output and match up allocs and frees. We seem to have
a lot less frees than I think we should have (which would explain the leak :-)):
across about this time period:
hcids:/scratch # head debug.log
argus[7006]: 18 Aug 07 19:20:41.170516 ArgusCalloc (1, 1088) returning 0x1017f010
argus[7006]: 18 Aug 07 19:20:41.170732 ArgusCalloc (1, 64) returning 0x1017f500
...
hcids:/scratch # tail debug.log
...
argus[7006]: 18 Aug 07 19:41:38.954361 ArgusMallocListRecord (672) returning 0x10c15b28
argus[7006]: 18 Aug 07 19:41:38.954400 ArgusCalloc (130, 4) returning 0x2be15b40
we see many more m/callocs than frees:
0x1c0bcae0 via m
0x1f3d44b0 via m
Counters: Calloc: 337335 Malloc 238607 Free 18240
(it is also keeping state but didn't see any double frees which is good)
Around 500,000 records allocated and only 18,000 freed again which seems too
small to me.
Peter Van Epp / Operations and Technical Support
Simon Fraser University, Burnaby, B.C. Canada
More information about the argus
mailing list