From owner-freebsd-hackers Mon Jul 27 14:49:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA17483 for freebsd-hackers-outgoing; Mon, 27 Jul 1998 14:49:26 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from pobox.com (gyndine-62.mdm.mke.execpc.com [169.207.83.62]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id OAA17372 for ; Mon, 27 Jul 1998 14:48:40 -0700 (PDT) (envelope-from hamilton@pobox.com) Message-Id: <199807272148.OAA17372@hub.freebsd.org> Received: (qmail 18998 invoked from network); 27 Jul 1998 16:50:24 -0500 Received: from localhost (HELO pobox.com) (127.0.0.1) by localhost with SMTP; 27 Jul 1998 16:50:24 -0500 To: David Wolfskill cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Checking RAM In-reply-to: Your message of "Mon, 27 Jul 1998 10:45:50 PDT." <199807271745.KAA25470@pau-amma.whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 27 Jul 1998 16:50:23 -0500 From: Jon Hamilton Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG } >> Could someone tell me how you can check the amount of RAM both available } >> and in use at a given time on FreeBSD 2.2.6 ? } } >Try } } >dmesg | more } } >soon after a reboot. Should tell you how much RAM was found on the way up. } } Well, re-booting a production server that's been up for several months } just to find out how much real memory the kernel saw may not be a viable } option. :-} Granted, someone else suggested "top", which is fine for } this particular resource.... Others have pointed out /var/run/dmesg.boot, which will work for what you're looking for, but I think too many people are overlooking the usefulness of sysctl for getting at information like this: [503] hamilton@woodstock hamilton$ sysctl hw.physmem hw.physmem: 65572864 -- Jon Hamilton hamilton@pobox.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message