Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2006 18:53:35 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        stable@freebsd.org
Cc:        Alan Cox <alc@freebsd.org>
Subject:   Re: systat -vm output showing negative total virtual memory
Message-ID:  <20061117155335.GA2898@rambler-co.ru>
In-Reply-To: <20061116223800.GA85695@rambler-co.ru>
References:  <7ad7ddd90611160255m553a471cy41f6c911bdc2a1bf@mail.gmail.com> <20061116150309.GD48412@rambler-co.ru> <20061116191037.GA1515@roadrunner.q.local> <20061116223800.GA85695@rambler-co.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--0ntfKIWw70PvrIHh
Content-Type: multipart/mixed; boundary="+HP7ph2BbKc20aGI"
Content-Disposition: inline


--+HP7ph2BbKc20aGI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 17, 2006 at 01:38:00AM +0300, Ruslan Ermilov wrote:
> Actually, the values are also in pages.  Below is a new patch
> to try.  The total amount of virtual memory reported is still
> insane; I think some objects are included in the stats
> mistakenly, but I'm not yet sure.
>=20
Okay, the attached patch that includes a "fix" for vm_meter.c
now prints the sane values for virtual memory.  The huge
contributions to vm total were from vnode objects representing
mounted file systems (g_vfs_open()).

Alan, could you please review this patch for me (the vm_meter.c
portion at least) or suggest a better fix?  On my amd64 system,
I now get:

: vm.vmtotal:
: System wide totals computed every five seconds: (values in kilobytes)
: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
: Processes:              (RUNQ: 2 Disk Wait: 0 Page Wait: 0 Sleep: 35)
: Virtual Memory:         (Total: 4458372K, Active 95772K)
: Real Memory:            (Total: 93468K Active 71016K)
: Shared Virtual Memory:  (Total: 20504K Active: 18952K)
: Shared Real Memory:     (Total: 13956K Active: 13148K)
: Free Memory Pages:      3024836K

The patch is against RELENG_6 but should apply to HEAD too.


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--+HP7ph2BbKc20aGI--

--0ntfKIWw70PvrIHh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFXdr/qRfpzJluFF4RAtUkAJ4tksecolD8yRz/S6O4TkNS3HpcfwCdFnt4
Af1yChJVLGKOqUX+AWswENM=
=JvoP
-----END PGP SIGNATURE-----

--0ntfKIWw70PvrIHh--



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