Userspace KSM helper daemon
 
 
Go to file
Oleksandr Natalenko ec2bfd8858 bump version to v6.5.1
Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
2023-09-06 19:42:26 +02:00
.gitignore initial commit 2019-05-13 16:34:17 +02:00
COPYING this is GPLv3 code 2019-05-18 13:09:41 +02:00
README.md reflect upcoming pf-6.4 changes in README 2023-06-26 10:41:02 +02:00
meson.build bump version to v6.5.1 2023-09-06 19:42:26 +02:00
meson.options meson: add systemd option 2023-09-06 17:45:58 +01:00
uksmd.c mark p2pool as incompatible too 2023-07-09 09:10:19 +02:00
uksmd.service add set_mempolicy() to .service 2023-06-26 22:37:02 +02:00

README.md

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.

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>