From 77b50969ea042a823fac4b32e09a9d12aa257563 Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Thu, 29 Oct 2020 14:15:06 -0600 Subject: [PATCH] runtime: cloud-hypervisor: reduce memory footprint Cloud-hypervisor supports DAX, let's enable it to reduce its memory footprint. Before this patch: **19.96M** ``` 20448kB -- [/usr/share/kata-containers/kata.img] ``` With this patch: **10.83M** ``` 11100kB -- [/usr/share/kata-containers/kata.img] ``` fixes #1056 Signed-off-by: Julio Montes --- src/runtime/virtcontainers/clh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/virtcontainers/clh.go b/src/runtime/virtcontainers/clh.go index d61902e929..9a76436681 100644 --- a/src/runtime/virtcontainers/clh.go +++ b/src/runtime/virtcontainers/clh.go @@ -133,7 +133,7 @@ var clhKernelParams = []Param{ {"panic", "1"}, // upon kernel panic wait 1 second before reboot {"no_timer_check", ""}, // do not check broken timer IRQ resources {"noreplace-smp", ""}, // do not replace SMP instructions - {"rootflags", "data=ordered,errors=remount-ro ro"}, // mount the root filesystem as readonly + {"rootflags", "dax,data=ordered,errors=remount-ro ro"}, // mount the root filesystem as readonly {"rootfstype", "ext4"}, }