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.
> 
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)
: ===============================================
: 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,
-- 
Ruslan Ermilov
[EMAIL PROTECTED]
FreeBSD committer

Attachment: pgpsgCkiyhzqs.pgp
Description: PGP signature

Reply via email to