From e91b703af372aae55304f16af2eb16302c052b3d Mon Sep 17 00:00:00 2001 From: jxy_git Date: Wed, 24 May 2023 15:57:37 +0800 Subject: [PATCH] Set 'guest-manager-multi-thread' to 'true' in default configuration file --- ...ue-true-for-guest-manager-multi-thre.patch | 26 +++++++++++++++++++ mom.spec | 12 +++++---- 2 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 0001-fill-default-value-true-for-guest-manager-multi-thre.patch diff --git a/0001-fill-default-value-true-for-guest-manager-multi-thre.patch b/0001-fill-default-value-true-for-guest-manager-multi-thre.patch new file mode 100644 index 0000000..6d90d49 --- /dev/null +++ b/0001-fill-default-value-true-for-guest-manager-multi-thre.patch @@ -0,0 +1,26 @@ +From 48f8987596642b9a8adf17b307ff658b35c3f779 Mon Sep 17 00:00:00 2001 +From: wangdi +Date: Fri, 24 Mar 2023 16:36:54 +0800 +Subject: [PATCH] fill default value true for guest-manager-multi-thread in + momd.conf + +--- + doc/mom-balloon+ksm.conf | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/doc/mom-balloon+ksm.conf b/doc/mom-balloon+ksm.conf +index 4456da7..23d54eb 100644 +--- a/doc/mom-balloon+ksm.conf ++++ b/doc/mom-balloon+ksm.conf +@@ -61,7 +61,7 @@ policy-dir: + # advantage of those guarantees, and do the monitoring using a single thread. + # If set to false, disable the current behaviour and configure MOM to monitor + # all the VMs using only one thread. +-guest-manager-multi-thread: ++guest-manager-multi-thread: true + + [logging] + # Set the destination for program log messages. This can be either 'stdio' or +-- +2.39.1 + diff --git a/mom.spec b/mom.spec index 62c687f..520d4ce 100644 --- a/mom.spec +++ b/mom.spec @@ -5,16 +5,16 @@ Name: mom Version: 0.6.2 -Release: 2 +Release: 3 Summary: Dynamically manage system resources on virtualization hosts - License: GPLv2 URL: https://www.ovirt.org Source: https://resources.ovirt.org/pub/src/mom/mom-0.6.2.tar.gz +Patch1: 0001-fill-default-value-true-for-guest-manager-multi-thre.patch BuildArch: noarch + BuildRequires: python3-devel BuildRequires: python3-six - Requires(post): systemd Requires(preun): systemd Requires(postun): systemd @@ -27,7 +27,6 @@ Requires: python3-libvirt Requires: python3-six Requires: procps - %description MOM is a policy-driven tool that can be used to manage overcommitment on KVM hosts. Using libvirt, MOM keeps track of active virtual machines on a host. At @@ -42,7 +41,7 @@ MOM supports control of memory ballooning and KSM but the architecture is designed to accommodate new mechanisms such as cgroups. %prep -%setup -q -n mom-0.6.2 +%autosetup -p1 -n mom-%{version} %build %configure \ @@ -87,6 +86,9 @@ make check %{?_smp_mflags} %{python3_sitelib}/mom/ %changelog +* Wed May 24 2023 jiangxinyu - 0.6.2-3 +- Set 'guest-manager-multi-thread' to 'true' in default configuration file + * Mon Mar 13 2023 wangdi - 0.6.2-2 - Fix wrong python3 intepreter path