Track free bytes held in slab alocators
commit4a0df5896df8ba49a7c1d2dc5d845bafad22b4e3
authorMichael O'Farrell <michaelofarrell@fb.com>
Tue, 3 Mar 2020 20:11:42 +0000 (3 12:11 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 3 Mar 2020 20:43:45 +0000 (3 12:43 -0800)
tree6f8a1a30bbb5462d30f834c1f87ff9a3c3e4441e
parent385e69b70473d244d611eeb7dfcc1ee3cde2995f
Track free bytes held in slab alocators

Summary:
When looking at rss and memory usage, it can be interesting to know
the amount of free memory available for use by requests that is considered used
by the system.  Here we add a counter to slab managers that tracks the number
of bytes currently held by the slab manager.

Reviewed By: mxw

Differential Revision: D20198640

fbshipit-source-id: f5cdb0762d31065c48485531e9aefbf9dbc02c37
hphp/runtime/base/sparse-heap.cpp
hphp/util/alloc.cpp
hphp/util/alloc.h
hphp/util/slab-manager.h