From owner-freebsd-hackers Sat Jan 12 15:22: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 5E9A937B417 for ; Sat, 12 Jan 2002 15:22:06 -0800 (PST) Received: from caddis.yogotech.com (caddis.yogotech.com [206.127.123.130]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id QAA03476; Sat, 12 Jan 2002 16:22:03 -0700 (MST) (envelope-from nate@yogotech.com) Received: (from nate@localhost) by caddis.yogotech.com (8.11.6/8.11.6) id g0CNLxg22519; Sat, 12 Jan 2002 16:21:59 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15424.50454.973048.932329@caddis.yogotech.com> Date: Sat, 12 Jan 2002 16:21:58 -0700 To: Kris Kennaway Cc: Nate Williams , hackers@FreeBSD.org Subject: Re: Amount of free memory available in system? In-Reply-To: <20020112142534.D40866@xor.obsecurity.org> References: <15424.32963.768829.892783@caddis.yogotech.com> <20020112142534.D40866@xor.obsecurity.org> X-Mailer: VM 6.96 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Is there a simple sysctl or a command line utility I can use to > > determine how much free memory is available in a system? > > > > 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. > > > > '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. > > > > 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. I was hoping to get do 'sysctl foo.bar.bletch' to tell me information. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message