From 0be02a8fd37f3ffd27ccb82d2061d9bc70920035 Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Thu, 3 Sep 2020 14:00:01 -0500 Subject: [PATCH] runtime: qemu: reduce boot time and memory footprint The linux kernel feature RANDOMIZE_BASE improved the security and at the same time increased the memory footprint of a kata container, this feature was enabled in kata-containers/packaging#1006. In order to mitigate this increase in memory consumption, we can boot container using the uncompressed kernel. Reduce boot time by ~5% Reduce KSM memory footprint by ~14% Reduce noKSM memory footprint by ~27% fixes #669 Signed-off-by: Julio Montes --- src/runtime/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/Makefile b/src/runtime/Makefile index 6263910d43..768f76a691 100644 --- a/src/runtime/Makefile +++ b/src/runtime/Makefile @@ -239,6 +239,7 @@ ifneq (,$(QEMUCMD)) # qemu-specific options (all should be suffixed by "_QEMU") DEFBLOCKSTORAGEDRIVER_QEMU := virtio-scsi DEFNETWORKMODEL_QEMU := tcfilter + KERNELTYPE = uncompressed KERNELNAME = $(call MAKE_KERNEL_NAME,$(KERNELTYPE)) KERNELPATH = $(KERNELDIR)/$(KERNELNAME) endif