You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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"?
@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.
/* Protect the working set accessed within the last N milliseconds. */
#ifdef CONFIG_ZEN_INTERACTIVE
static unsigned long lru_gen_min_ttl = 3000;
#else
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!
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.
Activity
heftig commentedon Nov 10, 2021
Waiting for a port of MG-LRU.
hakavlad commentedon Nov 10, 2021
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?
hakavlad commentedon Nov 10, 2021
@yuzhaogoogle Do you plan to release mg-lru for 5.15?
damentz commentedon Nov 10, 2021
@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.
sirlucjan commentedon Nov 10, 2021
Could you add [1] to the 5.15/prjc branch?
[1] c2912e2
damentz commentedon Nov 10, 2021
@sirlucjan done, also prefixed the description with ZEN: so I don't miss it next time: 09b9774
heftig commentedon Nov 10, 2021
@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"?
damentz commentedon Nov 11, 2021
@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.
heftig commentedon Nov 11, 2021
@damentz Applying the v4 series + le9 + our tweaks results in different code, though. So I was wondering.
hakavlad commentedon Nov 11, 2021
@damentz I tested zen
5.15/master. Build warnings: https://pastebin.com/Mc11fdbqMG-LRU: OK;
min_ttl_msby default: 4000 (don't know why, found 1000 invmscan.c).le9: OK.
There are no more remarks. No problems found.
heftig commentedon Nov 11, 2021
Are you sure? That series is quite different from what's in ZEN. It wouldn't be difficult to replace.
hakavlad commentedon Nov 11, 2021
I set
Result:
¯_(ツ)_/¯
damentz commentedon Nov 11, 2021
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!
6 remaining items
damentz commentedon Nov 14, 2021
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.
Considering
linux-zenandlinux-lqxboth 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.
pfactum commentedon Nov 18, 2021
@yuzhaogoogle have you got any plans on rebasing mglru on top of v5.16-rc1 please?
pfactum commentedon Jan 8, 2022
Thank you. I'm already using it for a couple of days, and things look good.
netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE
selftest/bpf: Add various selftests for program limits
selftests/bpf: Test bpf_mprog query API via libbpf and raw syscall
selftests/bpf: Test query on empty mprog and pass revision into attach
net: iptunnel: fix stale transport header during tunnel decapsulation
net: iptunnel: fix stale transport header during tunnel decapsulation
dm-raid: bound array_position before indexing failed_devices
dm-raid: bound array_position before indexing failed_devices