mirror of
https://github.com/fluencelabs/redis
synced 2025-06-24 14:31:34 +00:00
zmalloc: zmalloc_get_smap_bytes_by_field() modified to work for any PID.
The goal is to get copy-on-write amount of the child from the parent.
This commit is contained in:
@ -79,7 +79,7 @@ int THPIsEnabled(void) {
|
||||
* value of the function is non-zero, the process is being targeted by
|
||||
* THP support, and is likely to have memory usage / latency issues. */
|
||||
int THPGetAnonHugePagesSize(void) {
|
||||
return zmalloc_get_smap_bytes_by_field("AnonHugePages:");
|
||||
return zmalloc_get_smap_bytes_by_field("AnonHugePages:",-1);
|
||||
}
|
||||
|
||||
/* ---------------------------- Latency API --------------------------------- */
|
||||
|
Reference in New Issue
Block a user