Subject: tmpfs showing wrong values
To: None <current-users@netbsd.org>
From: Zafer Aydogan <zafer@aydogan.de>
List: current-users
Date: 01/19/2007 03:23:03
hello list,

I noticed this a while ago but wasn't sure, but df shows wrong values
for tmpfs at the moment (current i386-GENERIC from today).

My PC has only 512 Megabytes of RAM, but tmpfs reports random values.
At boot it starts around 665 - 666 MB ram.

$ df -k
Filesystem  1K-blocks      Used     Avail Capacity  Mounted on
/dev/wd0g    53324139   5275779  42715124    10%    /
ptyfs               1         1         0   100%    /dev/pts
tmpfs          681280         4    681276     0%    /tmp

$ df -h
Filesystem    Size      Used     Avail Capacity  Mounted on
/dev/wd0g      51G      5.0G       41G    10%    /
ptyfs         1.0K      1.0K        0B   100%    /dev/pts
tmpfs         665M      4.0K      665M     0%    /tmp

This value changes during the day to something completely different.

$ dmesg | grep memory
total memory = 510 MB
avail memory = 491 MB

I don't suspect df as the problem, neither tmpfs.
I first noticed this around 4.99.5 I suppose.
Any ideas ?

Zafer.