Skip to content

Commit 6dbc7a8

Browse files
committed
fix: revert heap to 2.5 GiB to keep initrd range backed by shared memory
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent 50d57e9 commit 6dbc7a8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

host/src/bin/pydriver_run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn main() -> Result<()> {
4444
let t_evolve = Instant::now();
4545
let mut sandbox = Sandbox::builder(&kernel)
4646
.initrd_file(&initrd)
47-
.heap_size(2304 * 1024 * 1024)
47+
.heap_size(5 * 512 * 1024 * 1024)
4848
.build()?;
4949
eprintln!(
5050
"[timing] evolve={:.1}ms",

host/src/bin/pyhl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ fn cmd_setup(args: SetupArgs) -> Result<()> {
451451
{
452452
let mut builder = Sandbox::builder(&dst_kernel)
453453
.initrd_file(&dst_initrd)
454-
.heap_size(2304 * 1024 * 1024);
454+
.heap_size(5 * 512 * 1024 * 1024);
455455
for p in &setup_preopens {
456456
builder = builder.preopen(p.clone());
457457
}

host/src/pyhl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ pub fn install(opts: &InstallOptions<'_>) -> Result<InstallReport> {
197197
{
198198
let mut builder = Sandbox::builder(&dst_kernel)
199199
.initrd_file(&dst_initrd)
200-
.heap_size(2304 * 1024 * 1024);
200+
.heap_size(5 * 512 * 1024 * 1024);
201201
for p in opts.mounts {
202202
builder = builder.preopen(p.clone());
203203
}

0 commit comments

Comments
 (0)