Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Jan 2006 15:57:36 +0900
From:      Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To:        Alexander Leidinger <netchild@FreeBSD.org>
Cc:        freebsd-emulation@FreeBSD.org
Subject:   Re: kern/77253: [linux] meminfo in linprocfs returns bad value about swap.
Message-ID:  <200601050657.AA00050@POLYMER5.scphys.kyoto-u.ac.jp>
In-Reply-To: <200512291615.jBTGFMow010875@freefall.freebsd.org>
References:  <200512291615.jBTGFMow010875@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexander Leidinger <netchild@FreeBSD.org> wrote:

> Synopsis: [linux] meminfo in linprocfs returns bad value about swap.
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: netchild
> State-Changed-When: Thu Dec 29 16:15:04 UTC 2005
> State-Changed-Why: 
> Is this still a problem with a recent FreeBSD?

Yes, it is still bogus...

polymer3 % uname -a
FreeBSD polymer3.scphys.kyoto-u.ac.jp 5.4-STABLE FreeBSD 5.4-STABLE #11:
 Mon Dec 26 11:23:23 JST 2005     turutani@polymer3.scphys.kyotou.ac.jp:/usr/obj/usr/src/sys/POLYMER  i386

polymer3 % cat /compat/linux/proc/meminfo
             total:    used:    free:  shared: buffers:  cached:
Mem:  527863808 90378240 437485568 16003072 0 25706496
Swap: 18446744071562067968 229376 18446744071561838592
MemTotal:    515492 kB
MemFree:     427232 kB
MemShared:    15628 kB
Buffers:          0 kB
Cached:       25104 kB
SwapTotal:18014398507384832 kB
SwapFree: 18014398507384608 kB

polymer3 % swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/ad0s1b       1048576       88  1048488     0%
/dev/ad1s1b       1048576      136  1048440     0%
Total             2097152      224  2096928     0%

polymer3 % cat /var/run/dmesg.boot | grep memory
real memory  = 536805376 (511 MB)
avail memory = 515629056 (491 MB)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601050657.AA00050>