FreeBSD Bugzilla – Attachment 165896 Details for
Bug 206455
[patch] systat -vm to display % virtual memory usage
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to display % VM usage
systat-vm.diff (text/plain), 915 bytes, created by
ota
on 2016-01-21 02:58:05 UTC
(
hide
)
Description:
Patch to display % VM usage
Filename:
MIME Type:
Creator:
ota
Created:
2016-01-21 02:58:05 UTC
Size:
915 bytes
patch
obsolete
>Index: vmstat.c >=================================================================== >--- vmstat.c (revision 293875) >+++ vmstat.c (working copy) >@@ -312,7 +297,7 @@ > > clear(); > mvprintw(STATROW, STATCOL + 6, "users Load"); >- mvprintw(STATROW + 1, STATCOL + 3, "Mem usage: %%Phy %%Kmem"); >+ mvprintw(STATROW + 1, STATCOL + 3, "Mem usage: %%Phy %%Kmem %%VM"); > mvprintw(MEMROW, MEMCOL, "Mem: KB REAL VIRTUAL"); > mvprintw(MEMROW + 1, MEMCOL, " Tot Share Tot Share"); > mvprintw(MEMROW + 2, MEMCOL, "Act"); >@@ -488,6 +453,8 @@ > STATROW + 1, STATCOL + 15, 2, 0, 1); > putfloat(100.0 * s.v_kmem_map_size / kmem_size, > STATROW + 1, STATCOL + 22, 2, 0, 1); >+ putfloat(100.0 * total.t_avm / total.t_vm, >+ STATROW + 1, STATCOL + 30, 2, 0, 1); > > putint(pgtokb(total.t_arm), MEMROW + 2, MEMCOL + 4, 7); > putint(pgtokb(total.t_armshr), MEMROW + 2, MEMCOL + 12, 7);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 206455
: 165896