From owner-freebsd-questions Fri Aug 6 3:15: 8 1999 Delivered-To: freebsd-questions@freebsd.org Received: from monkeys.com (i180.value.net [206.14.136.180]) by hub.freebsd.org (Postfix) with ESMTP id 4A71C14E97 for ; Fri, 6 Aug 1999 03:15:04 -0700 (PDT) (envelope-from rfg@monkeys.com) Received: from monkeys.com (LOCALHOST [127.0.0.1]) by monkeys.com (8.9.3/8.9.3) with ESMTP id CAA16694 for ; Fri, 6 Aug 1999 02:28:39 -0700 To: questions@freebsd.org Subject: Per-process memory overhead From: "Ronald F. Guilmette" Date: Fri, 06 Aug 1999 02:28:39 -0700 Message-ID: <16692.933931719@monkeys.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Can someone please explain to me why the following trivial program shows up on both a `ps' listing and also when using `top' as having a size of 136 KB? ------------------------------------------------------------------- #include int main (int argc, char *argv[]) { sleep (60); return 0; } ------------------------------------------------------------------- Using the `size' command, the program itself, even when linked (with the shared libraries) only has a trivial size of around 8 KB. So where the dickens is that other 128 KB of per-process overhead coming from? Note: This is NOT just an academic question. I need to run a LOT of identical (small) processes, and this overhead is killing me bacuse I really do not have enormous amounts of main memory available. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message