Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- It is possible to measure the resident memory set:
- $ vmstat -o | awk 'NR>1 { t[$7] += $1 } \
- END { for (i in t) printf "%s %d\n",i,t[i] }'
- The rows have the following meaning:
- df = default (not assigned a specific pager)
- sw = swap
- df = virtual
- vn = vnode
- ph = heap
- md = memory device
- This will be reported in number of pages, so it needs to be multiplied by the
- page size of the architecture which can be found via:
- $ sysctl -n hw.pagesize
- -- Daniel Ebdrup Jensen <[email protected]>
- % su -
- Password:
- root@mowa219-gjp4-8570p-freebsd:~ # sh
- # vmstat -o | awk 'NR>1 { t[$7] += $1 } \
- > END { for (i in t) printf "%s %d\n",i,t[i] }'
- 0
- dv 4
- vn 205016
- ph 905
- review 0
- md 7551
- sw 1098641
- # exit
- root@mowa219-gjp4-8570p-freebsd:~ # sysctl -n hw.pagesize
- 4096
- root@mowa219-gjp4-8570p-freebsd:~ # sh
- # vmstat -o | awk 'NR>1 { t[$7] += $1 } \
- END { for (i in t) printf "%s %d\n",i,t[i] }'
- 0
- dv 4
- vn 204191
- ph 905
- review 0
- md 7583
- sw 1106698
- #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement