From owner-freebsd-questions Wed Oct 31 13:10:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from PIKES.panasas.com (gw2.panasas.com [65.194.124.178]) by hub.freebsd.org (Postfix) with ESMTP id AF0B837B406 for ; Wed, 31 Oct 2001 13:09:55 -0800 (PST) Received: by PIKES.panasas.com with Internet Mail Service (5.5.2653.19) id ; Wed, 31 Oct 2001 16:09:53 -0500 Message-ID: <30489F1321F5C343ACF6872B2CF7942A1BE739@PIKES.panasas.com> From: jritchie@panasas.com To: freebsd-questions@FreeBSD.ORG Cc: jritchie777@yahoo.com Subject: Need to be able to determine amount of memory in system and turn off virtual memory... Date: Wed, 31 Oct 2001 16:09:44 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I am writing a program to test memory on FreeBSD, and have some questions. I use sysctl to show me the amount of hw.physmem in the system, and I am able to allocate through malloc more than the value given by hw.physmem. In addition I commented out the swap device in the /etc/fstab to turn off virtual memory, yet what I can allocate through malloc is the same either way. The question is: 1.) how do I determine reliably the amount of memory in the system (and if possible how much the kernel is taking away), 2.) and how do I turn off virtual memory? Any hints, suggestions, code snipets will be greatly appreciated! Thanks, J.Ritchie System Programmer Panasas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message