Skip to content

Commit 2bbb568

Browse files
committed
Make memory overallocation less extreme
Signed-off-by: Justin Alvarez <[email protected]>
1 parent 9737d6b commit 2bbb568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/service_integ_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,10 +2169,10 @@ func TestOOM_Isolated(t *testing.T) {
21692169
containerd.WithSnapshotter(defaultSnapshotterName),
21702170
containerd.WithNewSnapshot("snapshot-"+vmID, image),
21712171
containerd.WithNewSpec(
2172-
// The container is having 3MB of memory.
2172+
// The container is having 4MB of memory.
21732173
oci.WithMemoryLimit(4*1024*1024),
21742174
// But the dd command allocates 10MB of data on memory, which will be OOM killed.
2175-
oci.WithProcessArgs("/bin/dd", "if=/dev/zero", "ibs=1000M", "of=/dev/null"),
2175+
oci.WithProcessArgs("/bin/dd", "if=/dev/zero", "ibs=10M", "of=/dev/null"),
21762176
firecrackeroci.WithVMID(vmID),
21772177
),
21782178
)

0 commit comments

Comments
 (0)