Bug 206455 - [patch] systat -vm to display % virtual memory usage
Summary: [patch] systat -vm to display % virtual memory usage
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Marcelo Araujo
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-01-21 02:58 UTC by ota
Modified: 2016-12-28 20:55 UTC (History)
1 user (show)

See Also:


Attachments
Patch to display % VM usage (915 bytes, patch)
2016-01-21 02:58 UTC, ota
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ota 2016-01-21 02:58:05 UTC
Created attachment 165896 [details]
Patch to display % VM usage

Follow up of https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203917
Add % vm usage in addition to physical and kernel memory like below "71%VM"

    7 users    Load 13.91 13.58 11.31                  Jan 20 21:56
   Mem usage:  97%Phy 23%Kmem 71%VM
Mem: KB    REAL            VIRTUAL                      VN PAGER   SWAP PAGER
        Tot   Share      Tot    Share    Free           in   out     in   out
Act  552652   38356  1441048    72836   70124  count
Comment 1 Marcelo Araujo freebsd_committer freebsd_triage 2016-01-21 03:06:07 UTC
I will take it.
Comment 2 Marcelo Araujo freebsd_committer freebsd_triage 2016-01-22 02:53:16 UTC
Hi,

I'm not sure with the math is right here, as it display to me:
Mem usage:  67%Phy 26%Kmem 99%VM

It is impossible I have 99% of my VM been used right now.


Could you please, double check it?
Comment 3 Marcelo Araujo freebsd_committer freebsd_triage 2016-12-28 12:46:05 UTC
Didn't receive any update!
Comment 4 ota 2016-12-28 20:55:45 UTC
That's Total Act over Tot All for VIRTUAL like below.

Mem: KB    REAL            VIRTUAL                  
        Tot   Share      Tot    Share    Free       
Act  348732   25280  1418492    28672 1426392  count            
All  351620   27952  1432196    41908          puages 

Based on the observations since patch was created, this number is always 99% and don't seem to be much useful for displaying.

Meanwhile, I have added device stats to zarc and created https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213310 and this one looks much more useful.  I had to put static functions for sharing and thus change set looks much bigger than what actually changed.