I'd been experiencing swap thrashing on my laptop. It turns out the cause was a process called knotify4, which had allocated and presumably used over 800MB of RAM by itself. I've set up a shell script loop to kill it every 60 seconds, and things seem to be working fine now.
---linuxrocks123
---linuxrocks123