An open API service indexing awesome lists of open source software.

https://github.com/cachyos/uksmd

Userspace KSM helper daemon (CachyOS branding)
https://github.com/cachyos/uksmd

Last synced: about 1 year ago
JSON representation

Userspace KSM helper daemon (CachyOS branding)

Awesome Lists containing this project

README

          

### The project will no longer be developed. We recommend using [cachyos-ksm-settings](https://github.com/CachyOS/CachyOS-PKGBUILDS/tree/master/cachyos-ksm-settings)

uksmd
=====

Description
-----------

Userspace KSM helper daemon.

Principles
----------

The daemon goes through the list of userspace tasks regularly and tells them to set `MMF_VM_MERGE_ANY` flag for `struct mm_struct` for `ksmd` kthread to merge memory pages with the same content automatically. Only long-living tasks are processed. The mechanism is wrapped around the per-process KSM API that has been introduced in with the upstream commit `d7597f59d1`.

This requires `process_ksm_{enable,disable,status}()` syscalls, that are available in [pf-kernel](https://codeberg.org/pf-kernel/linux).

Building
--------

Install `procps-ng` and `libcap-ng`, then use `meson`.

Configuration
-------------

The daemon requires zero configuration.

Distribution and Contribution
-----------------------------

Distributed under terms and conditions of GNU GPL v3 (only).

Developers:

* Oleksandr Natalenko <oleksandr@natalenko.name>

CachyOS branding
----------------

The special version for CachyOS also includes `uksmdstats` .

Contributors:

* Piotr Gorski <piotrgorski@cachyos.org>
* Damian N. <nycko123@gmail.com>