From owner-freebsd-stable@FreeBSD.ORG Fri Nov 17 15:54:06 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65B2416A415; Fri, 17 Nov 2006 15:54:06 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDA6843DA3; Fri, 17 Nov 2006 15:53:38 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 43FAC6133; Fri, 17 Nov 2006 18:53:36 +0300 (MSK) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 09FD25EAD; Fri, 17 Nov 2006 18:53:36 +0300 (MSK) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id kAHFra0g006631; Fri, 17 Nov 2006 18:53:36 +0300 (MSK) (envelope-from ru) Date: Fri, 17 Nov 2006 18:53:35 +0300 From: Ruslan Ermilov To: stable@freebsd.org Message-ID: <20061117155335.GA2898@rambler-co.ru> References: <7ad7ddd90611160255m553a471cy41f6c911bdc2a1bf@mail.gmail.com> <20061116150309.GD48412@rambler-co.ru> <20061116191037.GA1515@roadrunner.q.local> <20061116223800.GA85695@rambler-co.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0ntfKIWw70PvrIHh" Content-Disposition: inline In-Reply-To: <20061116223800.GA85695@rambler-co.ru> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Alan Cox Subject: Re: systat -vm output showing negative total virtual memory X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Nov 2006 15:54:06 -0000 --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--