Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionMiroslav 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.
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 6Miroslav 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).
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.
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