Skip to content

le9 and 5.15 #256

Closed
Closed

Description

@hakavlad

Seems like le9 patch is not in 5.15-zen. Why?

Activity

  1. heftig commented on Nov 10, 2021

    @heftig

    Waiting for a port of MG-LRU.

  2. hakavlad commented on Nov 10, 2021

    @hakavlad
    Author

    But le9 can be applied without MG-LRU. You're not canceling any other patches because MG-LRU hasn't been released yet, are you?

  3. hakavlad commented on Nov 10, 2021

    @hakavlad
    Author

    @yuzhaogoogle Do you plan to release mg-lru for 5.15?

  4. damentz commented on Nov 10, 2021

    @damentz
    Member

    @hakavlad I rebased 5.14/lru-v5 to v5.15 on branch 5.15/lru, it's in 5.15/master as of now: ffa18c9

    Can you test and make sure it works? So far I've only build tested to make sure there's no errors at build-time.

  5. sirlucjan commented on Nov 10, 2021

    @sirlucjan

    Could you add [1] to the 5.15/prjc branch?

    [1] c2912e2

  6. damentz commented on Nov 10, 2021

    @damentz
    Member

    @sirlucjan done, also prefixed the description with ZEN: so I don't miss it next time: 09b9774

  7. heftig commented on Nov 10, 2021

    @heftig

    @yuzhaogoogle Is there are newer patch series for multi-generational lru available? Apparently we have "v5", while the last submission to linux-mm was "v4"?

  8. damentz commented on Nov 11, 2021

    @damentz
    Member

    @heftig v5 was my internal naming, since I went through a few combination of patches. The latest lru-v5 branch in the 5.14 branches is based on the v4 patch + le9, That's also the same branch that I used for 5.15/lru.

  9. heftig commented on Nov 11, 2021

    @heftig

    @damentz Applying the v4 series + le9 + our tweaks results in different code, though. So I was wondering.

  10. hakavlad commented on Nov 11, 2021

    @hakavlad
    Author

    Can you test and make sure it works?

    @damentz I tested zen 5.15/master. Build warnings: https://pastebin.com/Mc11fdbq

    MG-LRU: OK; min_ttl_ms by default: 4000 (don't know why, found 1000 in vmscan.c).

    le9: OK.

    There are no more remarks. No problems found.

  11. heftig commented on Nov 11, 2021

    @heftig

    FYI: v5 posted here

    No action needed for Zen 5.15.

    Are you sure? That series is quite different from what's in ZEN. It wouldn't be difficult to replace.

  12. hakavlad commented on Nov 11, 2021

    @hakavlad
    Author

    I set

    /* Protect the working set accessed within the last N milliseconds. */
    #ifdef CONFIG_ZEN_INTERACTIVE
    static unsigned long lru_gen_min_ttl = 3000;
    #else
    

    Result:

    $ cat /sys/kernel/mm/lru_gen/min_ttl_ms
    12000
    

    ¯_(ツ)_/¯

  13. damentz commented on Nov 11, 2021

    @damentz
    Member

    Ok, considering 5.14 isn't EOL yet and we're only on 5.15.1, I replaced the 5.15/lru branch with @yuzhaogoogle's v5 patch series and le9 on top.

    In master, reverted original 5.15/lru merge (d272c12), and merged new version (d4c4863)

    With that, a successful build should mean this is resolved. I'll leave the issue open for another day or two in-case we made a mistake, but otherwise, I think we're done here. Thanks everyone!

  14. 6 remaining items

  15. damentz commented on Nov 14, 2021

    @damentz
    Member

    Are you sure? That series is quite different from what's in ZEN. It wouldn't be difficult to replace.

    The version in Zen 5.14 was well tested and benchmarked by our partners. The new series I posted for 5.15 hasn't gone through the same process yet. But if you are interested in having the new series in Zen 5.15, I'd be glad to provide any assistance if Zen users report any problems. Thanks!

    Yep, for the most part we want to run the latest version unless there's a known issue. Sometimes this does introduce regressions (early adoption of futex2 comes to mind), but the payoff is usually worth the short term hassle.

    @yuzhaogoogle Also means the comment (/* Protect the working set accessed within the last N milliseconds. */) for the variable is wrong and should mention jiffies instead of milliseconds.

    Considering linux-zen and linux-lqx both use 1000hz, this issue is technically benign. Even if the actual value used is different than what was specified at boot, the behavior of MG-LRU is still directionally correct, protecting recent file cache.

    Ok, other than that, I I think we're good here! Marking as closed.

  16. pfactum commented on Nov 18, 2021

    @pfactum

    @yuzhaogoogle have you got any plans on rebasing mglru on top of v5.16-rc1 please?

  17. pfactum commented on Jan 8, 2022

    @pfactum

    For 5.16: https://lore.kernel.org/linux-mm/[email protected]/

    Thank you. I'm already using it for a couple of days, and things look good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions