This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hypervisor: don't enforce a minimum memory setting
Currently, we enforce a lower limit of 256MB for the defaultMemorySize. In general case with QEMU, this isn't a major problem, since we'll just eat the extra page table overhead, and only consume pages when needed. The memcgroup in the guest should make sure it only utilizes requested amount, not what is actually available. However, this becomes very problematic when you use preallocated memory. In the k8s case, the VMM will get OOM killed very quickly since the host's memory cgroup (created by kubelet) will limit the entire sandbox to the requests + pod overhead (on the order of 140 MB). We should allow the administrator of kata to set a better default value, which should be much closer aligned with what's used for PodOverhead (in the kube case). Let's remove the artifical limit in kata, and leave it up to the end user to pick an appropriate non-default value, if desired. Fixes: #2987 Signed-off-by: Eric Ernst <[email protected]>
- Loading branch information
Showing
4 changed files
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters