Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Oct 2011 12:57:08 +0200
From:      Razmig K <strontium90@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Measuring memory footprint in C/C++ code on FreeBSD
Message-ID:  <4EA15004.50308@gmail.com>
In-Reply-To: <j7rhc9$bvb$1@dough.gmane.org>
References:  <4EA0610B.90206@gmail.com> <20111021084413.GA46039@server.vk2pj.dyndns.org> <4EA1471E.9050501@gmail.com> <j7rhc9$bvb$1@dough.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EA15004.50308>