From owner-freebsd-hackers Sat Jan 12 10:30:53 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 2AB4237B440 for ; Sat, 12 Jan 2002 10:30:33 -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 LAA22153; Sat, 12 Jan 2002 11:30:28 -0700 (MST) (envelope-from nate@yogotech.com) Received: (from nate@localhost) by caddis.yogotech.com (8.11.6/8.11.6) id g0CIUSQ20777; Sat, 12 Jan 2002 11:30:28 -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.32963.768829.892783@caddis.yogotech.com> Date: Sat, 12 Jan 2002 11:30:27 -0700 To: hackers@FreeBSD.org Subject: Amount of free memory available in system? 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? Note, I've disabled swapping, since the *ONLY* thing running is an MFS at the point I'm checking. /stand/sysctl vm.defer_swapspace_pageouts=1 /stand/sysctl vm.disable_swapspace_pageouts=1 Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message