Re: systat -vm output showing negative total virtual memory
- From: Ruslan Ermilov <ru@xxxxxxxxxxx>
- Date: Fri, 17 Nov 2006 18:53:35 +0300
On Fri, Nov 17, 2006 at 01:38:00AM +0300, Ruslan Ermilov wrote:
Actually, the values are also in pages. Below is a new patchOkay, the attached patch that includes a "fix" for vm_meter.c
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.
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
ru@xxxxxxxxxxx
FreeBSD committer
Attachment:
pgpl35NSmHQ4N.pgp
Description: PGP signature
- Follow-Ups:
- Re: systat -vm output showing negative total virtual memory
- From: Alan Cox
- Re: systat -vm output showing negative total virtual memory
- References:
- systat -vm output showing negative total virtual memory
- From: Ulrich Spoerlein
- Re: systat -vm output showing negative total virtual memory
- From: Ruslan Ermilov
- Re: systat -vm output showing negative total virtual memory
- From: Ulrich Spoerlein
- Re: systat -vm output showing negative total virtual memory
- From: Ruslan Ermilov
- systat -vm output showing negative total virtual memory
- Prev by Date: Re: hp c class blade
- Next by Date: ips(4) in toaster mode
- Previous by thread: Re: systat -vm output showing negative total virtual memory
- Next by thread: Re: systat -vm output showing negative total virtual memory
- Index(es):
Relevant Pages
|