From owner-freebsd-newbies Tue Jul 28 12:34:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA25013 for freebsd-newbies-outgoing; Tue, 28 Jul 1998 12:34:41 -0700 (PDT) (envelope-from owner-freebsd-newbies@FreeBSD.ORG) Received: from gw1.konstanz.netsurf.de (root@gw1.konstanz.netsurf.de [194.163.242.39]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA24882 for ; Tue, 28 Jul 1998 12:34:00 -0700 (PDT) (envelope-from Rainer.Duffner@konstanz.netsurf.de) Received: from duffner.konstanz.netsurf.de (surf87.konstanz.netsurf.de [194.163.242.87]) by gw1.konstanz.netsurf.de (8.8.5/8.8.5) with SMTP id VAA24229; Tue, 28 Jul 1998 21:33:21 +0200 Date: Tue, 28 Jul 1998 21:12:40 +0200 (MESZ) From: Rainer M Duffner Subject: RE: Checking amount of RAM used To: arthur cc: freebsd-newbies@FreeBSD.ORG In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII X-Organization: enigma, http://www-stud.fh-konstanz.de/~enigma X-Mailer: ANT RISCOS Marcel [ver 1.46] Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon 27 Jul, arthur wrote: > > On 27-Jul-98 Gary Hall wrote: > > 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 ? > > > > Thanks > > > > .. run the proggie "top" it's a great untility for that. Yes, but ,e.g., HP-UX (a 'doubtful' OS on almost any other side, IMHO) there is a nice command 'mem' which tells you just how much RAM you have. Hm, I think digging in the kernel-sources would bring-up a syscall for that somehow (don't ask me). At boot-time, the RAM ist counted/detected, so there's a routine for that. One just needed to write a little C-prog around that call..... Hm, maybe this is not the best topic to discuss on a _newbie_ list..... cheers, Rainer -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |Rainer Duffner, E-Mail: duffner@fh-konstanz.de | | & Rainer.Duffner@konstanz.netsurf.de | |Fachhochschule Konstanz, Germany | |"What's a Network ?" - Bill Gates, early 1980s | | WWW:http://www-stud.fh-konstanz.de/~duffner | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message