I wish that I could find the article(s) that blindly recommended setting vm.swappiness=10 to improve performance. Too many users blindly change this value without really understanding what they're doing, and system performance usually suffers.
In short, vm.swappiness values approaching zero favor RAM usage, and values approaching one hundred favor swapping.
With 4G or 8G RAM, you should leave vm.swappiness=60 (the default) alone, or maybe change vm.swappiness to around 80 to encourage more swapping.
With 16G or more RAM, or in a server environment, you could set vm.swappiness=10 to favor RAM, reduce system latency, and discourage swapping.