Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Mar 2005 17:40:18 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        freebsd-questions@freebsd.org
Cc:        Anthony Atkielski <atkielski.anthony@wanadoo.fr>
Subject:   Re: What's the minimum memory for a process in FreeBSD 5.3?
Message-ID:  <20050306164018.GB68992@slackbox.xs4all.nl>
In-Reply-To: <1108086284.20050306153626@wanadoo.fr>
References:  <1108086284.20050306153626@wanadoo.fr>

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

--L6iaP+gRLNZHKoI4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 06, 2005 at 03:36:26PM +0100, Anthony Atkielski wrote:
> I wrote a very tiny program in C that occupies a mere 7417 bytes on
> disk.  When I run it, however, and look at it with top, it shows the
> size as 1,208,320 bytes in total size, with 663,552 bytes resident.
>=20
> Where are the extra 1.2 million bytes coming from?  What's the
> rock-bottom minimum size for a process in FreeBSD 5.3?

Shared libraries, stack space, heap space.

Roland
--=20
R.F. Smith                           /"\    ASCII Ribbon Campaign
r s m i t h @ x s 4 a l l . n l      \ /    No HTML/RTF in e-mail
http://www.xs4all.nl/~rsmith/         X     No Word docs in e-mail
public key: http://www.keyserver.net / \    Respect for open standards

--L6iaP+gRLNZHKoI4
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCKzJyEnfvsMMhpyURAhvzAJ95V08ztZOR1KrX01itWmziJRG0kQCfRFV8
oGWFH0rh45+n27GsPo8r2Z4=
=znd3
-----END PGP SIGNATURE-----

--L6iaP+gRLNZHKoI4--



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