[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
freebsd-meminfo on amd64
- To: hobbit (at) hswn.dk
- Subject: freebsd-meminfo on amd64
- From: Rong-En Fan <rafan (at) infor.org>
- Date: Sun, 22 Oct 2006 18:07:51 +0800
- User-agent: Mutt/1.5.13 (2006-08-11)
Hi,
I'm running 4.2.0 and found there is a problem of freebsd-meminfo
on amd64. I have 2G memory and got the following:
Total:2033
Free:31335125091216
Change the following line
printf("Free:%lu\n", (pagesize / 1024)*(vmdata.t_free / 1024));
to
printf("Free:%lu\n", ((int)pagesize / 1024)*(vmdata.t_free / 1024));
Then it works as expected.
BTW, I think the logical of free memory can be changed as in
http://people.freebsd.org/~rse/dist/freebsd-memory
In short, logical free memory are inactive + cache + free.
BTW, I'm working on FreeBSD port for Hobbit server. If you are using
Hobbit on FreeBSD and want to test it, please drop me a line privately.
Thanks,
Rong-En Fan