And I think that, sadly, it's not even a full solution, because linux can manage to get thrashing even without swap. It pages in and out things like memory mapped files or the content of executables of stopped processes. See for instance:
https://serverfault.com/questions/898388/how-to-prevent-kern...