Re: Measuring memory footprint in C/C++ code on FreeBSD
>> 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"
討論串 (同標題文章)
完整討論串 (本文為第 9 之 11 篇):