Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions ocaml/squeezed/src/squeeze_xen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ let ( -* ) = Int64.sub

let mib = 1024L

(** Same as xen commandline *)
(** CA-423173: this is `low_mem_virq_limit` Xen, default 64MiB *)
(** Same as xen commandline
CA-423173: this is `low_mem_virq_limit` Xen, default 64MiB *)
let low_mem_emergency_pool = 64L ** mib

(** Return the extra amount we always add onto maxmem *)
Expand Down
2 changes: 2 additions & 0 deletions ocaml/xapi-idl/memory/memory.ml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ module Memory_model (D : MEMORY_MODEL_DATA) = struct
D.extra_internal_mib
+++ D.extra_external_mib
+++ shadow_mib static_max_mib vcpu_count multiplier
(* CA-423172: Xen uses some extra memory/vCPU *)
+++ mib_of_pages_used (38L *** Int64.of_int vcpu_count)
+++ D.shim_mib static_max_mib

let footprint_mib target_mib static_max_mib vcpu_count multiplier =
Expand Down
Loading