

cache is good, but you shouldn’t have that much swap usage with that overall memory utilization. 8t seems the kernel is making a decision to move a significant amount of memory to swap to have just a little bit more cache. that could make sense in some situations, especially with lots of RAM and a slow disk that is frequently accessed… but probably not on your system. I see you have already reduced swappiness to 10, so maybe all that was snapped out is really rarely used memory, but I wouldn’t want even that on an SSD so you could try setting swappiness to 0. that way it should only use the swap when there is no more cache to free, I think, but the behaviour of this sysctl was not always clear like that.
https://docs.kernel.org/admin-guide/sysctl/vm.html?highlight=swappiness#swappiness





also: I did not realize until now, and also it might just he a coincidence, but it looks like as if your max swap usage with plenty of cached memory would be 10% of your RAM. I wonder if it would top out at half of that with a swappiness setting of 5. if you try it, load back all your swapped memory first.