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

看板FB_hackers作者時間14年前 (2011/10/22 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/11 (看更多)
>> footprint? > > Almost certainly yes. Measuring virtual memory is significantly less > important for real-world loads. Some of this is very nicely described > here: https://www.varnish-cache.org/trac/wiki/ArchitectNotes . definitely. just run top and compare RES and SIZE fields. extreme example: #include <unistd.h> int blah[1000000000]; main(){sleep(1000);} run it and see this in top 13317 wojtek 1 45 0 3817M 684K nanslp 0 0:00 0.00% 1 _______________________________________________ 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): #1EeRDZ-K (FB_hackers)
討論串 (同標題文章)
完整討論串 (本文為第 9 之 11 篇):
文章代碼(AID): #1EeRDZ-K (FB_hackers)