Skip to content

Commit

Permalink
diagnostics: support cgroup limit memory (tikv#13237) (#138)
Browse files Browse the repository at this point in the history
close tikv#13217, ref tikv#13217

support cgroup limit memory in diagnostics service

Signed-off-by: Lloyd-Pottiger <[email protected]>

Co-authored-by: Lloyd-Pottiger <[email protected]>

Co-authored-by: Lloyd-Pottiger <[email protected]>
Co-authored-by: Calvin Neo <[email protected]>
  • Loading branch information
3 people authored Aug 8, 2022
1 parent 2685d85 commit ec6e7ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/service/diagnostics/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ fn mem_hardware_info(collector: &mut Vec<ServerInfoItem>) {
system.refresh_memory();
let mut pair = ServerInfoPair::default();
pair.set_key("capacity".to_string());
pair.set_value((system.get_total_memory() * KIB).to_string());
pair.set_value(SysQuota::memory_limit_in_bytes().to_string());
let mut item = ServerInfoItem::default();
item.set_tp("memory".to_string());
item.set_name("memory".to_string());
Expand Down

0 comments on commit ec6e7ab

Please sign in to comment.