Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 May 1999 13:20:20 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: cat /dev/mem | wc -c
Message-ID:  <Pine.BSF.4.03.9905031320000.20321-100000@resnet.uoregon.edu>
In-Reply-To: <Pine.GSO.3.96.990503143124.424A-100000@sol.cs.binghamton.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 3 May 1999, Zhihui Zhang wrote:

> 
> Sometime ago, I found on the web that I can use the special device
> /dev/mem to determine the amount of physical memory the machine has.  So I
> run the following command: 
> 
> # date; cat /dev/mem | wc -c ; date
> 
> But it seems to run forever (at least hours).  Is there something wrong? 

/dev/mem is a bit nutty.  Use

sysctl hw.physmem

instead.

Doug White                               
Internet:  dwhite@resnet.uoregon.edu    | FreeBSD: The Power to Serve
http://gladstone.uoregon.edu/~dwhite    | www.freebsd.org



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9905031320000.20321-100000>