From owner-freebsd-questions Sun Jan 21 12:20: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id B8B2237B401 for ; Sun, 21 Jan 2001 12:19:44 -0800 (PST) Received: from [212.238.77.116] (helo=gateway.raggedclown.net) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 14KQxi-0004Wx-00; Sun, 21 Jan 2001 20:19:42 +0000 Received: from buffy.raggedclown.net (btvs.demon.nl [192.168.1.2]) by gateway.raggedclown.net (Postfix) with ESMTP id CB6FB5CCB; Sun, 21 Jan 2001 21:18:33 +0100 (CET) Received: by buffy.raggedclown.net (Postfix on SuSE Linux 7.0 (i386), from userid 500) id A0A3D12C4B; Sun, 21 Jan 2001 21:05:49 +0100 (CET) From: Cliff Sarginson Date: Sun, 21 Jan 2001 21:05:47 +0100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="us-ascii" Cc: questions@FreeBSD.ORG To: Mike Meyer , Gustavo Vieira Goncalves Coelho Rios References: <14955.1209.195848.394006@guru.mired.org> In-Reply-To: <14955.1209.195848.394006@guru.mired.org> Subject: Re: small program eats lot of memory MIME-Version: 1.0 Message-Id: <01012121054701.03293@buffy> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sunday 21 January 2001 16:48, Mike Meyer wrote: > Gustavo Vieira Goncalves Coelho Rios 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