Description
Userspace KSM helper daemon.
The daemon goes through the list of userspace tasks (once per 5 seconds) and hints them to apply MADV_MERGEABLE to anonymous mappings for ksmd kthread to merge memory pages with the same content. Only long-living tasks are hinted (those that were launched more than 10 seconds ago).
This requires pmadv_ksm() syscall, which is available in pf-kernel.
Configuration
The daemon requires zero configuration.
Distribution and Contribution
Distributed under terms and conditions of GNU GPL v3 (only).
Developers:
CachyOS branding
The special version for CachyOS also includes uksmdstats .
Contributors:
Installation Instructions
FEDORA WORKSTATION
sudo dnf copr enable bieszczaders/kernel-cachyos-addons
INSTALL REQUIRED PACKAGES
sudo dnf install libcap-ng libcap-ng-devel procps-ng procps-ng-devel
INSTALL UKSMD
sudo dnf install uksmd
ENABLE SERVICE
sudo systemctl enable uksmd.service
CHECKING THE CORRECT OPERATION OF THE UKSMD
uksmdstats
FEDORA SILVERBLUE
cd /etc/yum.repos.d/
sudo wget https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos-addons/repo/fedora-$(rpm -E %fedora)/bieszczaders-kernel-cachyos-addons-fedora-$(rpm -E %fedora).repo
INSTALL REQUIRED PACKAGES
sudo rpm-ostree install libcap-ng-devel procps-ng-devel
INSTALL UKSMD
sudo rpm-ostree install uksmd
sudo systemctl reboot
ENABLE SERVICE
sudo systemctl enable uksmd.service
CHECKING THE CORRECT OPERATION OF THE UKSMD
uksmdstats
Active Releases
The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).
* Total number of packages downloaded in the last seven days.
This is a companion discussion topic for the original entry at https://copr.fedorainfracloud.org/coprs/andersrh/kernel-cachyos-addons