From owner-freebsd-questions Mon May 3 13:20:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 392FC14E2E for ; Mon, 3 May 1999 13:20:27 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id NAA08028; Mon, 3 May 1999 13:20:21 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Mon, 3 May 1999 13:20:20 -0700 (PDT) From: Doug White To: Zhihui Zhang Cc: freebsd-questions@FreeBSD.ORG Subject: Re: cat /dev/mem | wc -c In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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