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 fb0c3be..e2e63e8 100644 --- a/mom.spec +++ b/mom.spec @@ -6,12 +6,14 @@ Name: %{package_name} Version: 0.6.1 -Release: 1 +Release: 2 Summary: Dynamically manage system resources on virtualization hosts License: GPLv2 URL: http://www.ovirt.org Source: https://resources.ovirt.org/pub/src/%{name}/%{package_name}-%{package_version}.tar.gz +Patch1: 0001-fill-default-value-true-for-guest-manager-multi-thre.patch + BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-nose @@ -44,11 +46,11 @@ MOM supports control of memory ballooning and KSM but the architecture is designed to accommodate new mechanisms such as cgroups. %prep -%setup -q -n %{package_name}-%{package_version} +%autosetup -p1 -n %{package_name}-%{package_version} %build %configure \ - PYTHON="/usr/bin/python3" \ + PYTHON="%{__python3}" \ --docdir="%{_pkgdocdir}" make %{?_smp_mflags} @@ -89,6 +91,9 @@ make check %{?_smp_mflags} %{python3_sitelib}/mom/ %changelog +* Wed Jan 24 2024 jiangxinyu - 0.6.1-2 +- Set 'guest-manager-multi-thread' to 'true' in default configuration file + * Tue Jul 06 2021 wangdi - 0.6.1-1 - Bump version to 0.6.1