bieszczaders/kernel-cachyos-addons

Project ID: 79220

Description

Userspace KSM helper daemon.

Announcement 2024/02/17: The uksmd-rawhide package has been deprecated. Please uninstall it and install uksmd instead.

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 --now 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 --now 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).

Release Architectures Repo Download
EPEL 9 x86_64 (3)* EPEL 9 (13 downloads)
Fedora 37 x86_64 (581)* Fedora 37 (0 downloads)
Fedora 38 x86_64 (4530)* Fedora 38 (2124 downloads)
Fedora 39 x86_64 (3409)* Fedora 39 (1775 downloads)
Fedora 40 x86_64 (748)* Fedora 40 (355 downloads)
Fedora rawhide x86_64 (360)* Fedora rawhide (120 downloads)

* Total number of downloaded packages.