mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 15:06:29 +00:00
Enable Multi-Gen LRU (#2392)
* Enable Multi-Gen LRU Multi-Gen LRU should improve performance under memory pressure. This is especially useful for embedded platforms where memory is scarce. * Add service to configure Multi-Gen LRU Use min_ttl_ms of 1 which is the least aggressive in terms of lag. Since we are a server application, we can tune trashing prevention with a higher acceptable lag.
This commit is contained in:
parent
ca63e7fd32
commit
2dcb59d43f
@ -15,7 +15,7 @@ CONFIG_ZSWAP_ZPOOL_DEFAULT_ZSMALLOC=y
|
||||
CONFIG_ZSMALLOC=y
|
||||
|
||||
CONFIG_LRU_GEN=y
|
||||
# CONFIG_LRU_GEN_ENABLED is not set
|
||||
CONFIG_LRU_GEN_ENABLED=y
|
||||
|
||||
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Configure multigenerational LRU
|
||||
ConditionPathExists=/sys/kernel/mm/lru_gen/enabled
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
||||
ExecStart=/bin/sh -c "echo 1 > /sys/kernel/mm/lru_gen/min_ttl_ms"
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
Loading…
x
Reference in New Issue
Block a user