Skip to content
Snippets Groups Projects
Verified Commit bf5c2c80 authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak
Browse files

defaults: Configure multi-gen LRU thrashing prevention

See https://www.kernel.org/doc/html/next/admin-guide/mm/multigen_lru.html

> Based on the average human detectable lag (~100ms), N=1000 usually eliminates
> intolerable janks due to thrashing. Larger values like N=3000 make janks less
> noticeable at the risk of premature OOM kills.
parent 5aa6458d
No related branches found
No related tags found
1 merge request!377defaults: Configure multi-gen LRU thrashing prevention
Pipeline #87986 failed
[Unit]
Description=Configure multi-gen LRU thrashing prevention
Documentation=https://www.kernel.org/doc/html/next/admin-guide/mm/multigen_lru.html
ConditionPathExists=/sys/kernel/mm/lru_gen/min_ttl_ms
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sh -c 'echo 1000 > /sys/kernel/mm/lru_gen/min_ttl_ms'
ExecStop=/bin/sh -c 'echo 0 > /sys/kernel/mm/lru_gen/min_ttl_ms'
[Install]
WantedBy=basic.target
......@@ -18,6 +18,7 @@ override_dh_installsystemd:
dh_installsystemd --no-start --name=usb_gadget
dh_installsystemd --no-start --name=bluetooth-brcmfmac
dh_installsystemd --no-start --name=librem5-lockdown-support
dh_installsystemd --no-start --name=librem5-mglru
override_dh_installsystemduser:
dh_installsystemduser --name=mpris-proxy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment