Skip to content

Commit

Permalink
fix(arc): use correct method to compute free mem
Browse files Browse the repository at this point in the history
Signed-off-by: sundengyu <[email protected]>
  • Loading branch information
sundengyu committed Nov 14, 2024
1 parent 43ad5b7 commit 6a64419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/os/linux/zfs/arc_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ arc_free_memory(void)
return (0);
}

return (info.freeram);
return (info.freeram + info.bufferram) * info.mem_unit;
}

void
Expand Down

0 comments on commit 6a64419

Please sign in to comment.