Date: Mon, 3 May 1999 19:31:23 -0400 (EDT) From: Zhihui Zhang <zzhang@cs.binghamton.edu> To: Doug White <dwhite@resnet.uoregon.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: cat /dev/mem | wc -c (root fs full) Message-ID: <Pine.GSO.3.96.990503192357.1923C-100000@sol.cs.binghamton.edu> In-Reply-To: <Pine.BSF.4.03.9905031320000.20321-100000@resnet.uoregon.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. Thanks for the response. Right now, it seems that I have a clue as to why the cat /dev/mem is not working. I just find that my root filesystem is full! Although I am not absolutely sure, running cat /dev/mem for a long long time may be the cause. # df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0s2a 31743 31663 -2459 108% / /dev/wd0s2f 4539509 686538 3489811 16% /usr /dev/wd0s2e 29751 2871 24500 10% /var procfs 4 4 0 100% /proc Maybe the pipe (a temporary file) between /dev/mem and wc becomes too big for the system to handle. Am I right? Thanks for your help. 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.GSO.3.96.990503192357.1923C-100000>