I have a KVM host running several virtual machines. The hardware is comprised of 24 cores w/ 40G of ram. This is the output of the
total used free shared buffers cached Mem: 41180500 32340344 8840156 0 2126008 36480 -/+ buffers/cache: 30177856 11002644 Swap: 3903484 3511516 391968
Why is the system swapping if it still has a lot of free RAM? Occupation has never been above 80% (nagios never reported more than that amount). And given that 20% of the RAM is 8G, it's still much more than the available swap (which is 4G).