Open A404M opened 1 month ago
Is this impacting the responsiveness of your system? Using swap in and of itself is not a problem unless it's actively causing issues with running applications.
We have some patches in our zen-sauce
branch that affect swappiness. For the most part, proactive compaction and other aggressive reclaim/compaction behavior is disabled since it disrupts foregrounds tasks too much under memory pressure. What you're seeing instead is that memory is pushed to swap preemptively as a side effect.
I do wonder what causes the ZEN kernel to swap so aggressively even with its default settings and plenty of unused RAM.
total used free shared buffers cache available
Mem: 29G 8.7G 14G 127M 106K 6.6G 20G
Swap: 10G 2.3G 8.4G
Total: 39G 11G 22G
Though I don't remember how the vanilla kernel behaves.
Is this impacting the responsiveness of your system? Using swap in and of itself is not a problem unless it's actively causing issues with running applications.
We have some patches in our
zen-sauce
branch that affect swappiness. For the most part, proactive compaction and other aggressive reclaim/compaction behavior is disabled since it disrupts foregrounds tasks too much under memory pressure. What you're seeing instead is that memory is pushed to swap preemptively as a side effect.
Yes it does actually affect my system responsiveness a lot Because I use 4 or 5 apps in foreground apps at the same time I have more than enough RAM for them (16GB but the apps are not that heavy) but It does move my active memory to swap and that hurts performance in my case I have been in Linux vanilla kernel after posting the issue till now and I really like it, the performance is much better here even when my whole ram and swap gets filled up
There's a few commits that could be the problem:
@A404M would you be able to try testing the tunables to see if they're related? Worst case it's the first commit I mentioned. Speaking of which, we've been rebasing these patches for a while now, might be worth seeing if anything has changed in kerneltoast's current branch: https://github.com/kerneltoast/kernel_x86_laptop/commits/v6.10-sultan/
After using linux-zen kernel for more than a year I realized that my system uses swap not in order that is optimized in any way. I realized that my ram usage is always around 69% (yes I'm curious and that's funny) that was because when my ram gets around 50% usage the kernel will start using swappiness and when it gets to 69% nearly all other allocations would move some pages to swap until my swap gets nearly full and the kernel will fill ram again, but my swappiness was 1 and no matter value value it has, the kernel will always do that. And as soon as I switched to vanilla linux kernel the problem went away. I wonder if this functionality is intended or not? I use the latest version of both kernels which comes in arch Linux repositories Because I use linux-zen because waydroid only works with kernels which come with binder modules and linux-zen has it. Thanks for your great efforts