Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2002 14:25:35 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        Nate Williams <nate@yogotech.com>
Cc:        hackers@FreeBSD.org
Subject:   Re: Amount of free memory available in system?
Message-ID:  <20020112142534.D40866@xor.obsecurity.org>
In-Reply-To: <15424.32963.768829.892783@caddis.yogotech.com>; from nate@yogotech.com on Sat, Jan 12, 2002 at 11:30:27AM -0700
References:  <15424.32963.768829.892783@caddis.yogotech.com>

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

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

On Sat, Jan 12, 2002 at 11:30:27AM -0700, Nate Williams wrote:
> Is there a simple sysctl or a command line utility I can use to
> determine how much free memory is available in a system?
>=20
> I've got an embedded application that has *very* limited memory, and I
> was trying to figure out how much memory was available for the userland
> applications.
>=20
> 'top' has something, as well as 'vmstat'.  Unfortunately, because of the
> limited amount of disk space available on this box, I don't have access
> to either one of those.
>=20
> Is there a sysctl I can use to determine how much free memory is
> available on the box?

Why not look how top and vmstat calculate it and do that in your code.

Kris

--HWvPVVuAAfuRc6SZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8QLfeWry0BWjoQKURAmMAAJsEJ29Pcsm1DRtK2nY2mJYG4k0xzgCfcjF0
wemE/ltrP5eEmK2YJ76ITbE=
=57s0
-----END PGP SIGNATURE-----

--HWvPVVuAAfuRc6SZ--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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