Skip to content

Commit 2e30a6c

Browse files
committed
reduce heap to 2 GiB to fix bench-linux snapshot restore
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent d03c5e0 commit 2e30a6c

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/python-agent-driver/Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export DOCKER_BUILDKIT := "0"
1414

1515
kernel := ".unikraft/build/python-agent-driver-hyperlight_hyperlight-x86_64"
1616
initrd := "python-agent-driver-initrd.cpio"
17-
memory := "2560Mi"
17+
memory := "2048Mi"
1818
image := "python-agent-driver-hyperlight"
1919
script := "../python-agent/agent.py"
2020

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(5 * 512 * 1024 * 1024)
47+
.heap_size(2 * 1024 * 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(5 * 512 * 1024 * 1024);
454+
.heap_size(2 * 1024 * 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(5 * 512 * 1024 * 1024);
200+
.heap_size(2 * 1024 * 1024 * 1024);
201201
for p in opts.mounts {
202202
builder = builder.preopen(p.clone());
203203
}

0 commit comments

Comments
 (0)