I have seen weird excessive swapping on some machines even though there is plenty of memory. This has made those machines super, super slow. You might want to try changing registry key
LocalMachine > System > CurrentControlSet > Control > SessionManager > MemoryManagement > SystemPages
The bad value is 0xffffffff. The value should either be zero, or calculated based on your physical memory size by dividing by the page size (always 4096).
LocalMachine > System > CurrentControlSet > Control > SessionManager > MemoryManagement > SystemPages
The bad value is 0xffffffff. The value should either be zero, or calculated based on your physical memory size by dividing by the page size (always 4096).