mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 16:27:50 +00:00
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 <julio.montes@intel.com>
This commit is contained in:
parent
6e54767344
commit
0be02a8fd3
@ -239,6 +239,7 @@ ifneq (,$(QEMUCMD))
|
|||||||
# qemu-specific options (all should be suffixed by "_QEMU")
|
# qemu-specific options (all should be suffixed by "_QEMU")
|
||||||
DEFBLOCKSTORAGEDRIVER_QEMU := virtio-scsi
|
DEFBLOCKSTORAGEDRIVER_QEMU := virtio-scsi
|
||||||
DEFNETWORKMODEL_QEMU := tcfilter
|
DEFNETWORKMODEL_QEMU := tcfilter
|
||||||
|
KERNELTYPE = uncompressed
|
||||||
KERNELNAME = $(call MAKE_KERNEL_NAME,$(KERNELTYPE))
|
KERNELNAME = $(call MAKE_KERNEL_NAME,$(KERNELTYPE))
|
||||||
KERNELPATH = $(KERNELDIR)/$(KERNELNAME)
|
KERNELPATH = $(KERNELDIR)/$(KERNELNAME)
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user