RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1972158 - Add ksmtuned component to RHEL 9
Summary: Add ksmtuned component to RHEL 9
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: ksmtuned
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Miroslav Rezanina
QA Contact: Yumei Huang
URL:
Whiteboard:
Depends On: 2021131
Blocks: 1971678
TreeView+ depends on / blocked
 
Reported: 2021-06-15 11:17 UTC by Miroslav Rezanina
Modified: 2022-05-17 13:22 UTC (History)
11 users (show)

Fixed In Version: ksmtuned-0.1.0-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 13:04:16 UTC
Type: Feature Request
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2022:2446 0 None None None 2022-05-17 13:04:21 UTC

Internal Links: 2021131

Description Miroslav Rezanina 2021-06-15 11:17:44 UTC
ksmtuned was historically bundled with qemu-kvm package as additional sources in the srpm. 

However, upstream (fedora) made the split to separate packages as there no technical dependency between the packages. We would like to mimic this split in RHEL too as it allows us to lower qemu-kvm footprint when needed.

Removing ksmtuned content from qemu-kvm is tracked by BZ 1971678.

Comment 5 Zdenek Pytela 2021-11-05 16:40:11 UTC
Mirku,

I see in the ksmtuned package there is also

# systemctl cat ksm
# /usr/lib/systemd/system/ksm.service
[Unit]
Description=Kernel Samepage Merging
ConditionPathExists=/sys/kernel/mm/ksm
ConditionVirtualization=no

[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=-/etc/sysconfig/ksm
ExecStart=/usr/libexec/ksmctl start
ExecStop=/usr/libexec/ksmctl stop

[Install]
WantedBy=multi-user.target

but ksmctl is not SELinux confined. What does this service do?

Comment 6 Miroslav Rezanina 2021-11-05 18:52:23 UTC
(In reply to Zdenek Pytela from comment #5)
> Mirku,
> 
> I see in the ksmtuned package there is also
> 
> # systemctl cat ksm
> # /usr/lib/systemd/system/ksm.service
> [Unit]
> Description=Kernel Samepage Merging
> ConditionPathExists=/sys/kernel/mm/ksm
> ConditionVirtualization=no
> 
> [Service]
> Type=oneshot
> RemainAfterExit=yes
> EnvironmentFile=-/etc/sysconfig/ksm
> ExecStart=/usr/libexec/ksmctl start
> ExecStop=/usr/libexec/ksmctl stop
> 
> [Install]
> WantedBy=multi-user.target
> 
> but ksmctl is not SELinux confined. What does this service do?

ksmclt is used to start or stop ksm service - writes 1 or 0 to /sys/kernel/mm/ksm/run (and set max ksm pages values if it is used - writes to /sys/kernel/mm/ksm/max_kernel_pages).

Comment 17 Yumei Huang 2021-12-28 06:19:39 UTC
Verify:
qemu-kvm-6.2.0-1.el9
ksmtuned-0.1.0-1.el9.x86_64
kernel-5.14.0-39.el9.x86_64

Install both qemu-kvm and ksmtuned package on host, and run all ksm test cases, including ksmtuned test. Test passed.

Comment 19 errata-xmlrpc 2022-05-17 13:04:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: ksmtuned), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2446


Note You need to log in before you can comment on or make changes to this bug.