Announcement

Collapse
No announcement yet.

An MGLRU Performance Regression Fix Is On The Way Plus Another Optimization

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    Originally posted by FPScholten View Post

    To see if it is enabled use the following:
    Code:
    cat /sys/kernel/mm/lru_gen/enabled
    if this is 0 mglru is disabled 1 up to 7 means it is enabled, 7 is with all features on, for exact specifications, read the documentation. Most users should enable all functions.
    To enable mglru with all functions on use the following as root:
    Code:
    echo y >/sys/kernel/mm/lru_gen/enabled
    To disable substitute y with 0, to limit functionality substitute y with a number between 1 and 7
    And what's up with this?:

    echo 1000 > /sys/kernel/mm/lru_gen/min_ttl_ms

    Comment


    • #12
      Originally posted by nuetzel View Post

      And what's up with this?:

      echo 1000 > /sys/kernel/mm/lru_gen/min_ttl_ms
      Try actually reading the documentation...

      Thrashing prevention
      --------------------
      Personal computers are more sensitive to thrashing because it can
      cause janks (lags when rendering UI) and negatively impact user
      experience. The multi-gen LRU offers thrashing prevention to the
      majority of laptop and desktop users who do not have ``oomd``.

      Users can write ``N`` to ``min_ttl_ms`` to prevent the working set of
      ``N`` milliseconds from getting evicted. The OOM killer is triggered
      if this working set cannot be kept in memory. In other words, this
      option works as an adjustable pressure relief valve, and when open, it
      terminates applications that are hopefully not being used.

      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.

      The default value ``0`` means disabled.

      Comment

      Working...
      X