Set 'guest-manager-multi-thread' to 'true' in default configuration file

This commit is contained in:
jxy_git 2024-01-24 16:30:43 +08:00
parent 4465b50b1c
commit e1b890ea4a
2 changed files with 34 additions and 3 deletions

View File

@ -0,0 +1,26 @@
From 48f8987596642b9a8adf17b307ff658b35c3f779 Mon Sep 17 00:00:00 2001
From: wangdi <wangdi@kylinos.cn>
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

View File

@ -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 <jiangxinyu@kylinos.cn> - 0.6.1-2
- Set 'guest-manager-multi-thread' to 'true' in default configuration file
* Tue Jul 06 2021 wangdi <wangdi@kylinos.cn> - 0.6.1-1
- Bump version to 0.6.1