Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Aug 1999 02:28:39 -0700
From:      "Ronald F. Guilmette" <rfg@monkeys.com>
To:        questions@freebsd.org
Subject:   Per-process memory overhead
Message-ID:  <16692.933931719@monkeys.com>

next in thread | raw e-mail | index | archive | help

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 <unistd.h>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16692.933931719>