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)
- Host: GitHub
- URL: https://github.com/cachyos/uksmd
- Owner: CachyOS
- License: gpl-3.0
- Created: 2022-12-23T13:20:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-25T06:21:21.000Z (about 2 years ago)
- Last Synced: 2024-10-29T14:22:29.242Z (over 1 year ago)
- Language: C
- Size: 107 KB
- Stars: 21
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING
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>