Skip to content

Commit

Permalink
pkg/grub/rootfs.cfg: increase memory limit for /eve and /eve/services…
Browse files Browse the repository at this point in the history
… cgroups

By special request this patch increases memory limit (soft and hard) for
`/eve` and `/eve/services` cgroups:

  /eve          from 800M to 2048M (dom0_mem configuration parameter)
  /eve/services from 650M to 1600M (eve_mem configuration parameter)

Rised hard limit should help to mitigate OOM caused by bloated zedbox
(pillar) application.

Signed-off-by: Roman Penyaev <r.peniaev@gmail.com>
  • Loading branch information
rouming authored and eriknordmark committed Sep 26, 2024
1 parent ffa00bc commit 679b9e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/grub/rootfs.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ function set_rootfs_title {
}

function set_generic {
set_global hv_dom0_mem_settings "dom0_mem=800M,max:800M"
set_global hv_dom0_mem_settings "dom0_mem=2G,max:2G"
set_global hv_dom0_cpu_settings "dom0_max_vcpus=1 dom0_vcpus_pin"
set_global hv_eve_mem_settings "eve_mem=650M,max:650M"
set_global hv_eve_mem_settings "eve_mem=1600M,max:1600M"
set_global hv_eve_cpu_settings "eve_max_vcpus=1"
set_global hv_ctrd_mem_settings "ctrd_mem=400M,max:400M"
set_global hv_ctrd_cpu_settings "ctrd_max_vcpus=1"
Expand Down

0 comments on commit 679b9e7

Please sign in to comment.