Skip to content

Commit

Permalink
libguestfish: bump libguestfs VM memory size for ppc64le to 3G
Browse files Browse the repository at this point in the history
It seems like RHEL 9.2 content makes `mksquashfs` require enough
memory to make the oom-killer bring down its mighty hammer. There's
`mksquashfs` knobs that could help here, like `-mem` and `-processors`
but those are not exposed by the libguestfs wrapper. And trying to call
`mksquashfs` directly via the `guestfish debug` escape hatch doesn't
seem worth the effort.

See also cfa0a43 ("libguestfish: bump libguestfs VM memory size for
ppc64le") which originally bumped the default on ppc64le.

Closes: openshift/os#1157
  • Loading branch information
jlebon authored and cgwalters committed Feb 9, 2023
1 parent fe6a7a4 commit 2cf91c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libguestfish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fi
# The compiled in default I see when running `guestfish get-memsize`
# is 1280. We need this because we are seeing issues from
# buildextend-live when running gf-mksquashfs.
[ "$arch" = "ppc64le" ] && export LIBGUESTFS_MEMSIZE=2048
[ "$arch" = "ppc64le" ] && export LIBGUESTFS_MEMSIZE=3072

# http://libguestfs.org/guestfish.1.html#using-remote-control-robustly-from-shell-scripts
GUESTFISH_PID=
Expand Down

0 comments on commit 2cf91c9

Please sign in to comment.