Skip to content

Commit 44417f6

Browse files
slpalyssarosenzweig
authored andcommitted
krun: raise auto-configured ram limit to 32768
Tested we can safely go up to 32768 MiB. Users wanting more ram can make use of the "--mem" flag. Signed-off-by: Sergio Lopez <[email protected]>
1 parent cb287d2 commit 44417f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/krun/src/bin/krun.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ fn main() -> Result<()> {
9292
} else {
9393
let sysinfo = sysinfo().context("Failed to get system information")?;
9494
let ram_total = sysinfo.ram_total() / 1024 / 1024;
95-
cmp::min(MiB::from((ram_total as f64 * 0.8) as u32), MiB::from(16384))
95+
cmp::min(MiB::from((ram_total as f64 * 0.8) as u32), MiB::from(32768))
9696
};
9797
// Bind the microVM to the specified CPU cores.
9898
let mut cpuset = CpuSet::new();

0 commit comments

Comments
 (0)