Skip to content

Commit 3dfa728

Browse files
committed
fixup! CA-423172: Xen uses ~265 pages/vCPU, not 256
``` vcpu,memory_overhead_pages,coeff,vms 1,234,234,9223372036854775807 3,754,251.333,9223372036854775807 7,1854,264.857,9223372036854775807 15,3891,259.4,9223372036854775807 31,8490,273.871,9223372036854775807 63,17248,273.778,1447 [INFO]VM memory_overhead_pages = ... + vcpu * 273.871 =~ ... + vcpu * 274 [WARNING]With 1447 VMs it might be possible to trigger OOM error ```
1 parent 1f997b1 commit 3dfa728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/xapi-idl/memory/memory.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ module Memory_model (D : MEMORY_MODEL_DATA) = struct
204204
static_max_mib +++ xen_max_offset_mib +++ D.shim_mib static_max_mib
205205

206206
let shadow_mib static_max_mib vcpu_count multiplier =
207-
let vcpu_pages = 265L *** Int64.of_int vcpu_count in
207+
let vcpu_pages = 274L *** Int64.of_int vcpu_count in
208208
let p2m_map_pages = static_max_mib in
209209
let shadow_resident_pages = static_max_mib in
210210
let total_mib =

0 commit comments

Comments
 (0)