From 53bc18da454aa769057b597da1415601db9c6302 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 17 2022 08:49:25 +0000 Subject: import ksmtuned-0.1.0-1.el9 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..05dc27b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/ksmtuned-0.1.0.tar.gz diff --git a/.ksmtuned.metadata b/.ksmtuned.metadata new file mode 100644 index 0000000..abeb782 --- /dev/null +++ b/.ksmtuned.metadata @@ -0,0 +1 @@ +ec65e8cc44fdd9c09bdab038aaa61bd3cbb7ba91 SOURCES/ksmtuned-0.1.0.tar.gz diff --git a/SPECS/ksmtuned.spec b/SPECS/ksmtuned.spec new file mode 100644 index 0000000..8dbc46a --- /dev/null +++ b/SPECS/ksmtuned.spec @@ -0,0 +1,65 @@ +Name: ksmtuned +Version: 0.1.0 +Release: 1%{?dist} + +Summary: Kernel Samepage Merging services +License: GPLv2+ +URL: https://github.com/ksmtuned/ksmtuned +Source0: https://github.com/ksmtuned/ksmtuned/archive/v%{version}/ksmtuned-%{version}.tar.gz + +# Source-git patches + +BuildRequires: gcc +BuildRequires: meson +%{?systemd_requires} +BuildRequires: systemd + + +%description +Kernel Samepage Merging (KSM) is a memory-saving de-duplication feature, +that merges anonymous (private) pages (not pagecache ones). + +This package provides service files for disabling (ksm) and tuning +(ksmtuned) + + +%prep +%autosetup -p1 + + +%build +%meson \ + -Dredhat-sysconfig=true +%meson_build + + +%install +%meson_install + + +%post +%systemd_post ksm.service +%systemd_post ksmtuned.service +%preun +%systemd_preun ksm.service +%systemd_preun ksmtuned.service +%postun +%systemd_postun_with_restart ksm.service +%systemd_postun_with_restart ksmtuned.service + + +%files +%license COPYING +%{_libexecdir}/ksmctl +%{_sbindir}/ksmtuned +%{_unitdir}/ksmtuned.service +%{_unitdir}/ksm.service +%config(noreplace) %{_sysconfdir}/ksmtuned.conf +%config(noreplace) %{_sysconfdir}/sysconfig/ksm + + +%changelog +* Wed Oct 06 2021 Miroslav Rezanina - 0.1.0-1 +- Initial build [bz#1972158] +- Resolves: bz#1972158 + (Add ksmtuned component to RHEL 9)