Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    Enables Multi-Gen LRU (improved page reclaim and caching policy).
    Prevents thrashing, improves loading speeds under low ram conditions.
    Requires kernel 6.1+.
    Has dramatic effect especially on slower HDDs.
    For slower HDDs, consider 1000 instead of 300 for min_ttl_ms.

    sudo tee /etc/tmpfiles.d/mglru.conf <<EOF
    w-      /sys/kernel/mm/lru_gen/enabled          -       -       -       -       y
    w-      /sys/kernel/mm/lru_gen/min_ttl_ms       -       -       -       -       300
    EOF


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: