As I understand it, swappiness controls priority for evicting anonymous vs. file-backed pages. Both are equally effective at reducing memory pressure, and both are effectively "swapping". But if I'm using swap on zram then reading file-backed pages from files is slower than swapping from compressed ram.
> reading file-backed pages from files is slower than swapping from compressed ram
Which, in turn, is slower than not swapping at all. To avoid swapping unless absolutely needed, you set swappiness to 0. On the opposite side, to swap as soon as the kernel sees an opportunity, you tune swappiness to 200.
I'm going by the ArchWiki:
https://wiki.archlinux.org/title/Swap#Swappiness
"There is a common misconception that swappiness affects the memory threshold or prevents using swap space, but it only affects the preference for freeing up file pages over swap."
As I understand it, Linux does not preemptively evict idle pages, only as a response to memory pressure.
I can't follow your reasoning. On the one hand you want the fastest access, on the other you advocate for high swappiness.
I think you should want swappiness=0, then the swap device can be whatever: it will be hardly ever used.