Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
Swapping out memtune for memoryBacking locked
Browse files Browse the repository at this point in the history
Per the discussion on the mailing list, the algorithm for determining
the hard_limit and soft_limit is not reliable. Using lock memoryBacking
should be enough.

Signed-off-by: Larry Dewey <[email protected]>
  • Loading branch information
larrydewey committed Aug 1, 2019
1 parent f41c449 commit 8c18f2a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/sevcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ const std::string SHELL_VM_XML_1 = "<domain type='kvm'>"
"<acpi/>"
"</features>";

const std::string SHELL_VM_XML_2 = "<memtune>"
"<hard_limit unit='KiB'>350000</hard_limit>"
"<soft_limit unit='KiB'>350000</soft_limit>"
"</memtune>"
const std::string SHELL_VM_XML_2 = "<memoryBacking>"
"<locked/>"
"</memoryBacking>"
"</domain>";

const std::string SHELL_VM_NAME_BASE = "fceac9812431d";
Expand Down

0 comments on commit 8c18f2a

Please sign in to comment.