Skip to content

[6.12] Track PF uksmd patches - #37

Closed
kakra wants to merge 2 commits into
base-6.12from
rebase-6.12/pf-ksm
Closed

[6.12] Track PF uksmd patches#37
kakra wants to merge 2 commits into
base-6.12from
rebase-6.12/pf-ksm

Conversation

@kakra

Copy link
Copy Markdown
Owner

Export patch series: https://github.com/kakra/linux/pull/37.patch

  • post-factum KSM patches: for use with uksmd, merges identical memory pages to reduce cache and memory pressure, useful when running similar containers in parallel

d7597f5 added a new API to enable per-process KSM control. It
however uses prctl, which doesn't allow controlling KSM from outside of
the current process.
Hence, expose this API via 3 syscalls: process_ksm_enable,
process_ksm_disable and process_ksm_status. Given sufficient privileges,
auto-KSM can be enable by another process.
Since these syscalls are not in the upstream kernel, also expose their
numbers under /sys/kernel/process_ksm so that userspace tooling like
uksmd knows how to use them.
Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
…id_task()
Link: https://git.kernel.org/linus/ee9955d61a0a
Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
@kakrakakra mentioned this pull request Nov 23, 2024
@kakrakakra added the done To be superseded by next LTS label Dec 13, 2025
@kakra

Copy link
Copy Markdown
OwnerAuthor

Superseded by #42

@kakrakakra closed this Dec 14, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doneTo be superseded by next LTS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@kakra@pfactum