From owner-freebsd-questions Sun Jan 21 1:46:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from midas.ifour.com.br (unknown [200.238.229.70]) by hub.freebsd.org (Postfix) with SMTP id 3A93737B400 for ; Sun, 21 Jan 2001 01:46:40 -0800 (PST) Received: (qmail 84931 invoked from network); 21 Jan 2001 06:42:22 -0000 Received: from unknown (HELO ifour.com.br) (192.168.1.11) by 192.168.1.10 with SMTP; 21 Jan 2001 06:42:21 -0000 Message-ID: <3A6AAFDE.165F003E@ifour.com.br> Date: Sun, 21 Jan 2001 07:46:06 -0200 From: Gustavo Vieira Goncalves Coelho Rios X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: questions@freebsd.org Subject: small program eats lot of memory Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? How big is the sleep function ? The source code is: #include #include int main(void) { sleep(300); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message