Re: Measuring memory footprint in C/C++ code on FreeBSD
Le 21.10.2011 12:26, Ivan Voras a 矇crit :
> Well, do you know that SIZE in top is virtual memory size, not resident
> size (which is the "RES" column)? You can allocate whatever you want
> from virtual memory, it is not "used" until it's touched.
Yes, I do. So do you suggest using RES as a better indicator of memory
footprint?
The program in question processes large 3D images via vtk, and I'd like
to measure its memory usgae with different parameter configurations as
the maximum amount of memory acquired during execution. Since SIZE often
happens to be larger than RES, and increase more during execution, I
thought of using it as an indicator of memory footprint.
~Razmig
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 6 之 11 篇):