We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e8feca commit 3fbbcbdCopy full SHA for 3fbbcbd
src/app/data_harvester/memory/arc.rs
@@ -18,7 +18,7 @@ pub(crate) fn get_arc_usage() -> Option<MemHarvest> {
18
if let Some((label, value)) = line.split_once(' ') {
19
let to_write = match label {
20
"size" => &mut mem_arc,
21
- "memory_all_bytes" => &mut mem_total,
+ "c_max" => &mut mem_total,
22
_ => {
23
continue;
24
}
@@ -45,7 +45,7 @@ pub(crate) fn get_arc_usage() -> Option<MemHarvest> {
45
use sysctl::Sysctl;
46
if let (Ok(mem_arc_value), Ok(mem_sys_value)) = (
47
sysctl::Ctl::new("kstat.zfs.misc.arcstats.size"),
48
- sysctl::Ctl::new("hw.physmem"),
+ sysctl::Ctl::new("kstat.zfs.misc.arcstats.c_max"),
49
) {
50
if let (Ok(sysctl::CtlValue::U64(arc)), Ok(sysctl::CtlValue::Ulong(mem))) =
51
(mem_arc_value.value(), mem_sys_value.value())
0 commit comments