Project

General

Profile

Feature #40500

Refactor how memory is accounted

Added by Vaibhav Chauhan about 2 years ago. Updated about 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Estimated time:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

Frontend needs a way to validate memory requested by user so that users can be informed about the maximum memory provided by FreeNAS system.


Related issues

Related to FreeNAS - Bug #48680: Add option to overcommit memory for VM in new UIDone
Has duplicate FreeNAS - Bug #42395: Cannot guarantee memory for guest id: 1Closed
Has duplicate FreeNAS - Bug #43021: Unable to boot VMClosed
Blocks FreeNAS - Bug #40456: Perform VM memory check at the beginning of the create VM wizard in the new UIDone

Associated revisions

Revision aef3ee0e (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/vm): refactor how memory is accounted VMs can be started with `overcommit` flag or not. If overcommit is true we only account for memory actually in use at the same instant, provided shrink of arc_max, subtracting used swap. If overcommit is false we try to account for all the memory the VM is supposed to have available, provided shrink of arc_max, subtracting used swap. Said logic is implemented in vm.get_available_memory. Ticket: #40500

Revision 6b2e445f (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/vm): use `available` memory instead of free Inactive memory is also memory that could be used. While I'm here get VM entry only once on start process. Ticket: #40500

Revision 1823dfb0 (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/vm): use `available` memory instead of free Inactive memory is also memory that could be used. While I'm here get VM entry only once on start process. Ticket: #40500

Revision c342d4ec (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/vm): refactor how memory is accounted VMs can be started with `overcommit` flag or not. If overcommit is true we only account for memory actually in use at the same instant, provided shrink of arc_max, subtracting used swap. If overcommit is false we try to account for all the memory the VM is supposed to have available, provided shrink of arc_max, subtracting used swap. Said logic is implemented in vm.get_available_memory. Ticket: #40500

Revision e895160e (diff)
Added by William Grzybowski about 2 years ago

fix(middlewared/vm): use `available` memory instead of free Inactive memory is also memory that could be used. While I'm here get VM entry only once on start process. Ticket: #40500

History

#1 Updated by Vaibhav Chauhan about 2 years ago

  • Blocks Bug #40456: Perform VM memory check at the beginning of the create VM wizard in the new UI added

#2 Updated by William Grzybowski about 2 years ago

  • Status changed from Unscreened to Not Started
  • Target version changed from Backlog to 11.2-BETA3
  • Severity changed from New to Medium

#3 Updated by Bug Clerk about 2 years ago

  • Status changed from Not Started to In Progress

#4 Updated by Bug Clerk about 2 years ago

  • Status changed from In Progress to Ready for Testing

#5 Updated by Dru Lavigne about 2 years ago

  • Subject changed from provide a vm. call to provide maximum available memory FreeNAS can allocate to a Virtual Machine to Refactor how memory is accounted
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#6 Updated by William Grzybowski about 2 years ago

  • Has duplicate Bug #42395: Cannot guarantee memory for guest id: 1 added

#7 Updated by Dru Lavigne about 2 years ago

  • Has duplicate Bug #43021: Unable to boot VM added

#8 Updated by Dru Lavigne about 2 years ago

  • Status changed from Ready for Testing to Done
  • Needs QA changed from Yes to No

#9 Updated by Dru Lavigne almost 2 years ago

  • Related to Bug #48680: Add option to overcommit memory for VM in new UI added

Also available in: Atom PDF