Dear VPP hackers, As far as I am aware, the only way to get memory usage is via `show memory` CLI. Ligato does exactly that.
Stats segment exposes the memory usage in the stats segment itself. This is implemented by asking mspace about the memory usage periodically. Internally, space_mallinfo is being called which is exactly the same function CLI `show memory` invokes. It is slow on large heaps because it walks the memory linearly figuring out used and available chunks. Does anyone have a solution to obtain the memory usage fast on a large heap (for monitoring)?
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18123): https://lists.fd.io/g/vpp-dev/message/18123 Mute This Topic: https://lists.fd.io/mt/78455129/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-