Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jul 1998 15:38:04 -0500 (CDT)
From:      Joel Ray Holveck <joelh@gnu.org>
To:        dhw@whistle.com
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Checking RAM
Message-ID:  <199807272038.PAA17808@detlev.UUCP>
In-Reply-To: <199807271745.KAA25470@pau-amma.whistle.com> (message from David Wolfskill on Mon, 27 Jul 1998 10:45:50 -0700 (PDT))
References:   <199807271745.KAA25470@pau-amma.whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>>> 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.
> However, as a follow-on to a discussion I was having with someone else
> (where I was doing a bunch of whining about the challenges I was having
> in "automatically" being able to determine the configuration of a given
> FreeBSD box), the random idea came up that *IF* the kernel could stash
> away the results of its probing in some way that might be amenable to
> access by suitably-privileged processes at times arbitrarily distant
> from re-boot (i.e, scannning logs & output of dmesg won't do the job),
> this *might* be sufficiently useful to warrant some effort.

I suppose you could add to your own /etc/local:
dmesg | egrep '(real|avail) memory = ' > /var/log/mem

More generally, you may prefer
dmesg > /var/log/dmesg.boot

instead.  I can't see how this is useful, myself.  In a situation
where I don't know the configuration of each machine by heart, I use a
binder to store configuration info.  Helpful in the event of a machine
failure.

Best,
joelh

-- 
Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan
   Fourth law of programming:
   Anything that can go wrong wi
sendmail: segmentation violation - core dumped

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807272038.PAA17808>