blob: ecd0e3ce6aac5ba5b1875d45c990af7b599aa7e9 (
plain)
1
2
3
4
5
6
7
|
#!/bin/sh
sysctl -n hw.physmem \
hw.pagesize \
vm.stats.vm.v_inactive_count \
vm.stats.vm.v_free_count \
vm.stats.vm.v_cache_count | xargs | awk '{printf (" %2.2fG/%2.2fG\n", ($1 / (1024 ^ 3)) - (($3 + $4 + $5) * $2 / (1024 ^ 3)), ($1 / (1024 ^ 3)))}'
|