Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-129490 / 24.10 / Always include zfs cache as a free memory in vm memory info #13963

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/vm/vm_memory_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def get_available_memory(self, overcommit):
arc_total = await self.middleware.call('sysctl.get_arcstats_size')
arc_min = await self.middleware.call('sysctl.get_arc_min')
arc_shrink = max(0, arc_total - arc_min)
total_free = free + arc_shrink if overcommit else free
total_free = free + arc_shrink

vms_memory_used = 0
if overcommit is False:
Expand Down
Loading