Re: Measuring memory footprint in C/C++ code on FreeBSD

看板FB_hackers作者時間14年前 (2011/10/21 19:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/11 (看更多)
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"
文章代碼(AID): #1EeL3lMH (FB_hackers)
討論串 (同標題文章)
完整討論串 (本文為第 6 之 11 篇):
文章代碼(AID): #1EeL3lMH (FB_hackers)