Date: Sun, 21 Jan 2001 21:05:47 +0100 From: Cliff Sarginson <cliff@raggedclown.net> To: Mike Meyer <mwm@mired.org>, Gustavo Vieira Goncalves Coelho Rios <gustavo@ifour.com.br> Cc: questions@FreeBSD.ORG Subject: Re: small program eats lot of memory Message-ID: <01012121054701.03293@buffy> In-Reply-To: <14955.1209.195848.394006@guru.mired.org> References: <14955.1209.195848.394006@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 21 January 2001 16:48, Mike Meyer wrote: > Gustavo Vieira Goncalves Coelho Rios <gustavo@ifour.com.br> types: > > I compiled and executed a small program and it's eating about 336 > > of real memory (rss) and 840 of virtual size memory (vsz), may some > > one explain why a simple program eats about 1 MB of memory? > > You linked it shared, right? That 1MB includes all of every shared > library it uses, whether it uses those functions or not. Pardon ! It certainly does not ! That is the point of shared libraries - the code is *shared* between processes using it. The required code is then made dynamically available. his Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01012121054701.03293>