Date: Sun, 21 Jan 2001 09:48:09 -0600 (CST) From: Mike Meyer <mwm@mired.org> To: Gustavo Vieira Goncalves Coelho Rios <gustavo@ifour.com.br> Cc: questions@freebsd.org Subject: Re: small program eats lot of memory Message-ID: <14955.1209.195848.394006@guru.mired.org> In-Reply-To: <91061222@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
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. Linking it static will make it noticably smaller - but that still drags in some fairly large chunks of the standard IO library. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. 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?14955.1209.195848.394006>