MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / THPGetAnonHugePagesSize

Function THPGetAnonHugePagesSize

src/latency.cpp:98–100  ·  view source on GitHub ↗

Report the amount of AnonHugePages in smap, in bytes. If the return * value of the function is non-zero, the process is being targeted by * THP support, and is likely to have memory usage / latency issues. */

Source from the content-addressed store, hash-verified

96 * value of the function is non-zero, the process is being targeted by
97 * THP support, and is likely to have memory usage / latency issues. */
98int THPGetAnonHugePagesSize(void) {
99 return zmalloc_get_smap_bytes_by_field("AnonHugePages:",-1);
100}
101
102/* ---------------------------- Latency API --------------------------------- */
103

Callers 1

createLatencyReportFunction · 0.85

Calls 1

Tested by

no test coverage detected