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? [0] https://github.com/cloudfoundry/guardian/blob/e9346b9849a33cddb037628c79057c4c80d4e3d8/rundmc/runrunc/stats.go#L70 best,~ jf--John Feminella Advisory Platform Architect ✉ ·jxf(a)pivotal.io t · @jxxf |
|