Memory usage: number reported from `cf app <app>` vs. inside container

John Feminella <jxf@...>

If I `cf ssh` into a (garden-runc) container, what can I run to convince myself
that the memory usage reported by `cf app <some-app>` is identical to a number
inside the container? Guardian says this is computed as follows [0]:
stats.Memory.TotalUsageTowardLimit =  stats.Memory.TotalRss + 
(stats.Memory.TotalCache - stats.Memory.TotalInactiveFile)
Can I accurately discover the values of TotalRss, TotalCache, and
TotalinactiveFile from inside the container? Could I look at /proc/meminfo, for
example, or is there a better way?
best,~ jf--John Feminella
Advisory Platform Architect
✉ ·jxf(a)
t · @jxxf

Join { to automatically receive all group messages.