Comment on Help with understanding memory usage discrepancy
a_fancy_kiwi@lemmy.world 1 day agoFrom what I can tell, my system isn’t currently using swap at all but it does have 8GB of available swap if needed.
To make sure I’m following what you are saying, if I upgraded my system to 64GB and changed nothing else, and let’s assume ZFS didn’t trying caching more stuff, would there still be a potential for my system to use swap just because the system wanted to even if it wasn’t memory constrained?
eager_eagle@lemmy.world 1 day ago
yes, the system will likely use some swap if available even when there’s plenty of free RAM left:
Src: www.kernel.org/doc/gorman/…/understand014.html
In my recently booted system with 32GB and half of that free (not even “available”), I can already see 10s of MB of swap used.
As rule of thumb, it’s only a concern or indication that the system is/was starved of memory if a significant share of swap is in use. But even then, it might just be some cached pages hanging around because the kernel decided to keep instead of evicting them.
a_fancy_kiwi@lemmy.world 20 hours ago
TIL. Thanks for the information